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:
ISSOtm
2020-03-15 00:12:54 +01:00
parent 7b54312d97
commit 2f16e82cf7
5 changed files with 36 additions and 23 deletions

13
test/asm/pc-operand.asm Normal file
View 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