You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi - commit 11d86f1 seems to have introduced a regression in the v6502 disassembly command. Here's a disassembly of the snake.o object file using this commit:
Note how all the lda/sta instructions are displaying the opcode of the next instruction as their operand, even though the operand is correct in the hex listing.
Here's the same disassembly of snake.o with the previous commit (96079aa):
Hi - commit 11d86f1 seems to have introduced a regression in the v6502 disassembly command. Here's a disassembly of the snake.o object file using this commit:
(0x600) dis
0x0600: 20 06 06 - jsr $0606
0x0603: 20 38 06 - jsr $3806
0x0606: 20 0d 06 - jsr $0d06
0x0609: 20 2a 06 - jsr $2a06
0x060c: 60 - rts
0x060d: a9 02 - lda #$85
0x060f: 85 02 - sta *$a9
0x0611: a9 04 - lda #$85
0x0613: 85 03 - sta *$a9
0x0615: a9 11 - lda #$85
Note how all the lda/sta instructions are displaying the opcode of the next instruction as their operand, even though the operand is correct in the hex listing.
Here's the same disassembly of snake.o with the previous commit (96079aa):
(0x600) dis
0x0600: 20 06 06 - jsr $0606
0x0603: 20 38 06 - jsr $0638
0x0606: 20 0d 06 - jsr $060d
0x0609: 20 2a 06 - jsr $062a
0x060c: 60 - rts
0x060d: a9 02 - lda #$02
0x060f: 85 02 - sta *$02
0x0611: a9 04 - lda #$04
0x0613: 85 03 - sta *$03
0x0615: a9 11 - lda #$11
Note how things line up correctly in this version.
The problem seems to only happen with the v6502 disassembly command - the disassembly from dis6502 is correct.
The machine used for this test is running Debian 10, kernel 4.19.0-12-amd64.
Let me know if I can be of further assistance.
The text was updated successfully, but these errors were encountered: