mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Improve testing PC
This commit is contained in:
@@ -52,6 +52,8 @@ SECTION "fixed PC", ROM0[420]
|
|||||||
; Diffing PC and a label from here should work
|
; Diffing PC and a label from here should work
|
||||||
LocalFixed:
|
LocalFixed:
|
||||||
print_diff LocalFixed, @
|
print_diff LocalFixed, @
|
||||||
|
ds 69
|
||||||
|
print_diff LocalFixed, @
|
||||||
|
|
||||||
SECTION "Floating PC", ROM0
|
SECTION "Floating PC", ROM0
|
||||||
; Diffing a constant and PC cannot work
|
; Diffing a constant and PC cannot work
|
||||||
@@ -65,3 +67,5 @@ SECTION "Floating PC", ROM0
|
|||||||
; Diffing PC and a label from here should work
|
; Diffing PC and a label from here should work
|
||||||
LocalFloating:
|
LocalFloating:
|
||||||
print_diff LocalFloating, @
|
print_diff LocalFloating, @
|
||||||
|
ds 42
|
||||||
|
print_diff LocalFloating, @
|
||||||
|
|||||||
@@ -22,16 +22,16 @@ ERROR: label-diff.asm(49) -> label-diff.asm::print_diff(20):
|
|||||||
Expected constant expression: 'Unknown' is not constant at assembly time
|
Expected constant expression: 'Unknown' is not constant at assembly time
|
||||||
ERROR: label-diff.asm(49) -> label-diff.asm::print_diff(22):
|
ERROR: label-diff.asm(49) -> label-diff.asm::print_diff(22):
|
||||||
Expected constant expression: 'Unknown' is not constant at assembly time
|
Expected constant expression: 'Unknown' is not constant at assembly time
|
||||||
ERROR: label-diff.asm(58) -> label-diff.asm::print_diff(20):
|
|
||||||
Expected constant expression: PC is not constant at assembly time
|
|
||||||
ERROR: label-diff.asm(58) -> label-diff.asm::print_diff(22):
|
|
||||||
Expected constant expression: PC is not constant at assembly time
|
|
||||||
ERROR: label-diff.asm(60) -> label-diff.asm::print_diff(20):
|
ERROR: label-diff.asm(60) -> label-diff.asm::print_diff(20):
|
||||||
Expected constant expression: 'Known' is not constant at assembly time
|
Expected constant expression: PC is not constant at assembly time
|
||||||
ERROR: label-diff.asm(60) -> label-diff.asm::print_diff(22):
|
ERROR: label-diff.asm(60) -> label-diff.asm::print_diff(22):
|
||||||
Expected constant expression: PC is not constant at assembly time
|
Expected constant expression: PC is not constant at assembly time
|
||||||
ERROR: label-diff.asm(62) -> label-diff.asm::print_diff(20):
|
ERROR: label-diff.asm(62) -> label-diff.asm::print_diff(20):
|
||||||
Expected constant expression: 'Unknown' is not constant at assembly time
|
Expected constant expression: 'Known' is not constant at assembly time
|
||||||
ERROR: label-diff.asm(62) -> label-diff.asm::print_diff(22):
|
ERROR: label-diff.asm(62) -> label-diff.asm::print_diff(22):
|
||||||
Expected constant expression: PC is not constant at assembly time
|
Expected constant expression: PC is not constant at assembly time
|
||||||
|
ERROR: label-diff.asm(64) -> label-diff.asm::print_diff(20):
|
||||||
|
Expected constant expression: 'Unknown' is not constant at assembly time
|
||||||
|
ERROR: label-diff.asm(64) -> label-diff.asm::print_diff(22):
|
||||||
|
Expected constant expression: PC is not constant at assembly time
|
||||||
error: Assembly aborted (18 errors)!
|
error: Assembly aborted (18 errors)!
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ $0
|
|||||||
$0
|
$0
|
||||||
$0
|
$0
|
||||||
$0
|
$0
|
||||||
|
$FFFFFFBB
|
||||||
|
$45
|
||||||
$0
|
$0
|
||||||
$0
|
$0
|
||||||
$0
|
$0
|
||||||
@@ -30,3 +32,5 @@ $0
|
|||||||
$0
|
$0
|
||||||
$0
|
$0
|
||||||
$0
|
$0
|
||||||
|
$FFFFFFD6
|
||||||
|
$2A
|
||||||
|
|||||||
10
test/asm/pc.asm
Normal file
10
test/asm/pc.asm
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
SECTION "fixed", ROM0[420]
|
||||||
|
PRINTT "{@}\n"
|
||||||
|
ds 69
|
||||||
|
PRINTT "{@}\n"
|
||||||
|
|
||||||
|
; FIXME: expected to land at $0000
|
||||||
|
SECTION "floating", ROM0
|
||||||
|
db @
|
||||||
|
ds 42
|
||||||
|
db @
|
||||||
0
test/asm/pc.err
Normal file
0
test/asm/pc.err
Normal file
2
test/asm/pc.out
Normal file
2
test/asm/pc.out
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
$1A4
|
||||||
|
$1E9
|
||||||
BIN
test/asm/pc.out.bin
Normal file
BIN
test/asm/pc.out.bin
Normal file
Binary file not shown.
Reference in New Issue
Block a user