mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Improve PC offset management
Basically make it always point to the instruction's first byte. This was the behavior all whom I asked to intuitively expected.
This commit is contained in:
13
test/asm/pc-operand.asm
Normal file
13
test/asm/pc-operand.asm
Normal file
@@ -0,0 +1,13 @@
|
||||
SECTION "fixed", ROM0[0]
|
||||
|
||||
rst @ ; rst 0
|
||||
ld de, @ ; ld de, 1
|
||||
bit @, h ; bit 4, h
|
||||
db @, @ ; db 6, 7
|
||||
|
||||
SECTION "floating", ROM0
|
||||
|
||||
rst @ ; rst 8
|
||||
ld l, @ ; ld l, 9
|
||||
dw @, @ ; dw 11, 13
|
||||
dl @, @ ; dl 15, 19
|
||||
Reference in New Issue
Block a user