Update boot test to check registers on completion of boot
This commit is contained in:
@@ -31,8 +31,6 @@ runto 0xc
|
|||||||
assert $pc == 0xc
|
assert $pc == 0xc
|
||||||
assert $hl == 0x7fff
|
assert $hl == 0x7fff
|
||||||
|
|
||||||
# TODO: There is a bug in GBDB where breakpoints fire at the start of an
|
|
||||||
# instruction and "step" stops at the end of an instruction
|
|
||||||
step; step
|
step; step
|
||||||
assert $pc == 0xf
|
assert $pc == 0xf
|
||||||
assert $hl == 0xff26
|
assert $hl == 0xff26
|
||||||
@@ -208,10 +206,22 @@ assert $pc == 0xe0
|
|||||||
runto 0xf4
|
runto 0xf4
|
||||||
assert $pc == 0xf4
|
assert $pc == 0xf4
|
||||||
|
|
||||||
|
#
|
||||||
|
# Based on http://bgb.bircd.org/pandocs.htm#powerupsequence these are the values
|
||||||
|
# the registers should hold after the boot process is done
|
||||||
|
#
|
||||||
|
|
||||||
runto 0x100
|
runto 0x100
|
||||||
assert $pc == 0x100
|
assert $pc == 0x100
|
||||||
echo Test passed!
|
assert $af == 0x01b0
|
||||||
|
assert $bc == 0x0013
|
||||||
|
assert $de == 0x00d8
|
||||||
|
assert $hl == 0x014d
|
||||||
|
|
||||||
|
#
|
||||||
|
runto 0x2213
|
||||||
|
|
||||||
regs
|
regs
|
||||||
stat
|
stat
|
||||||
|
|
||||||
exit
|
# exit
|
||||||
|
|||||||
Reference in New Issue
Block a user