diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-12-28 23:56:34 -0800 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-12-28 23:56:34 -0800 |
commit | 983ef29fd0e3645cb6335ee8bb172312790a56e2 (patch) | |
tree | 93d198b963f6142ac35a99c503cff21680065b49 /home/menu.asm | |
parent | 0fdbdb43a794358b5ed484114486e2992d520338 (diff) | |
parent | a8cb73b654af67bb3caad2c6d45edce7436032b1 (diff) |
Merge pull request #221 from yenatch/more-objects
analyze the bytes
Diffstat (limited to 'home/menu.asm')
-rw-r--r-- | home/menu.asm | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/home/menu.asm b/home/menu.asm index bb613b8b8..6a8b8628a 100644 --- a/home/menu.asm +++ b/home/menu.asm @@ -124,19 +124,20 @@ Function1db8: ; 0x1db8 ; 0x1dcf -Function1dcf: ; 1dcf - ld bc, $0e07 +YesNoBox: ; 1dcf + lb bc, 14, 7 -Function1dd2: ; 1dd2 - jr Function1dd9 +PlaceYesNoBox: ; 1dd2 + jr _YesNoBox Function1dd4: ; 1dd4 call LoadMenuDataHeader jr Function1dfe -Function1dd9: ; 1dd9 +_YesNoBox: ; 1dd9 +; Return nc (yes) or c (no). push bc - ld hl, MenuDataHeader_0x1e1d + ld hl, YesNoMenuDataHeader call Function1d3c pop bc ld a, b @@ -165,7 +166,7 @@ Function1dfe: ; 1dfe pop af jr c, .asm_1e16 ld a, [$cfa9] - cp $2 + cp 2 ; no jr z, .asm_1e16 and a ret @@ -177,15 +178,15 @@ Function1dfe: ; 1dfe ret ; 1e1d -MenuDataHeader_0x1e1d: ; 1e1d +YesNoMenuDataHeader: ; 1e1d db $40 ; tile backup db 5, 10 ; start coords db 9, 15 ; end coords - dw MenuData2_0x1e25 + dw YesNoMenuData2 db 1 ; default option ; 1e25 -MenuData2_0x1e25: ; 1e25 +YesNoMenuData2: ; 1e25 db $c0 ; flags db 2 db "YES@" |