From a4df6411cabe8b6996a0ec735a1e261fffdd77cb Mon Sep 17 00:00:00 2001 From: Max Regan Date: Sun, 17 Jun 2018 10:49:12 -0700 Subject: [PATCH] Update boot test to check registers on completion of boot --- gbdb_boot_test | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/gbdb_boot_test b/gbdb_boot_test index d8dbf66..7ef5297 100644 --- a/gbdb_boot_test +++ b/gbdb_boot_test @@ -31,8 +31,6 @@ runto 0xc assert $pc == 0xc 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 assert $pc == 0xf assert $hl == 0xff26 @@ -208,10 +206,22 @@ assert $pc == 0xe0 runto 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 assert $pc == 0x100 -echo Test passed! +assert $af == 0x01b0 +assert $bc == 0x0013 +assert $de == 0x00d8 +assert $hl == 0x014d + +# +runto 0x2213 + regs stat -exit +# exit