Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dcc6502 does not know when to stop #6

Open
wu2z opened this issue Mar 17, 2023 · 3 comments
Open

dcc6502 does not know when to stop #6

wu2z opened this issue Mar 17, 2023 · 3 comments
Assignees

Comments

@wu2z
Copy link

wu2z commented Mar 17, 2023

I run dcc6502 on a 32k file and it just keeps on going and going and going, re-doing the same file over and over. I aborted it and I had over a million lines in my file.

I looked at the code and haven't figured out what is going on yet.

Keith Sproul
ksproul@skychariot.com

@MarijnStevens
Copy link

Try with "-o 0", this must not finish it seems:

while((pc <= 0xFFFFu) && ((pc - options.org) < byte_count)) {

@tcarmelveilleux
Copy link
Owner

@wu2z do you have the specific command line you used? Was the file exactly 32768 bytes?

@tcarmelveilleux tcarmelveilleux self-assigned this Sep 24, 2023
@MarijnStevens
Copy link

$ ./dcc6502 -c -n -o 0 Super\ Mario\ Bros.\ (World).prg

        BRK             ; $7FFC Cycles: 7
        .byte $80       ; INVALID OPCODE !!!

        BEQ $7FFF       ; $7FFE Cycles: 3/4
        BRK             ; $8000 Cycles: 7

$ du -sb Super\ Mario\ Bros.\ (World).prg
32768 Super Mario Bros. (World).prg

I've found the pc variable and the loop just weird, and clearly when you need another orgin the loop never finishes.

On my first attempt using dcc6502 I used the command to > file.s... that became 4+ gb before I found this issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants