This commit is contained in:
yenatch 2013-12-04 02:49:12 -05:00
parent 099e17bbaf
commit be0c7962b0
5 changed files with 65 additions and 64 deletions

View File

@ -455,7 +455,7 @@ Script_keeptextopen: ; 0x96edc
Script_yesorno: ; 0x96eed Script_yesorno: ; 0x96eed
; script command 0x4e ; script command 0x4e
call Function1dcf call YesNoBox
ld a, $0 ld a, $0
jr c, .asm_96ef6 ; 0x96ef2 $2 jr c, .asm_96ef6 ; 0x96ef2 $2
ld a, $1 ld a, $1
@ -792,7 +792,7 @@ Script_askforphonenumber: ; 0x970be
; parameters: ; parameters:
; number (SingleByteParam) ; number (SingleByteParam)
call Function1dcf call YesNoBox
jr c, .asm_970d6 ; 0x970c1 $13 jr c, .asm_970d6 ; 0x970c1 $13
call GetScriptByte call GetScriptByte
ld c, a ld c, a

View File

@ -1,7 +1,7 @@
NameRater: ; fb6ed NameRater: ; fb6ed
ld hl, UnknownText_0xfb80f ld hl, UnknownText_0xfb80f
call PrintText call PrintText
call Function1dcf call YesNoBox
jp c, .asm_fb77e jp c, .asm_fb77e
ld hl, UnknownText_0xfb814 ld hl, UnknownText_0xfb814
call PrintText call PrintText
@ -15,7 +15,7 @@ NameRater: ; fb6ed
jr c, .asm_fb779 jr c, .asm_fb779
ld hl, UnknownText_0xfb819 ld hl, UnknownText_0xfb819
call PrintText call PrintText
call Function1dcf call YesNoBox
jr c, .asm_fb77e jr c, .asm_fb77e
ld hl, UnknownText_0xfb81e ld hl, UnknownText_0xfb81e
call PrintText call PrintText

View File

@ -124,19 +124,20 @@ Function1db8: ; 0x1db8
; 0x1dcf ; 0x1dcf
Function1dcf: ; 1dcf YesNoBox: ; 1dcf
ld bc, $0e07 lb bc, 14, 7
Function1dd2: ; 1dd2 PlaceYesNoBox: ; 1dd2
jr Function1dd9 jr _YesNoBox
Function1dd4: ; 1dd4 Function1dd4: ; 1dd4
call LoadMenuDataHeader call LoadMenuDataHeader
jr Function1dfe jr Function1dfe
Function1dd9: ; 1dd9 _YesNoBox: ; 1dd9
; Return nc (yes) or c (no).
push bc push bc
ld hl, MenuDataHeader_0x1e1d ld hl, YesNoMenuDataHeader
call Function1d3c call Function1d3c
pop bc pop bc
ld a, b ld a, b
@ -165,7 +166,7 @@ Function1dfe: ; 1dfe
pop af pop af
jr c, .asm_1e16 jr c, .asm_1e16
ld a, [$cfa9] ld a, [$cfa9]
cp $2 cp 2 ; no
jr z, .asm_1e16 jr z, .asm_1e16
and a and a
ret ret
@ -177,15 +178,15 @@ Function1dfe: ; 1dfe
ret ret
; 1e1d ; 1e1d
MenuDataHeader_0x1e1d: ; 1e1d YesNoMenuDataHeader: ; 1e1d
db $40 ; tile backup db $40 ; tile backup
db 5, 10 ; start coords db 5, 10 ; start coords
db 9, 15 ; end coords db 9, 15 ; end coords
dw MenuData2_0x1e25 dw YesNoMenuData2
db 1 ; default option db 1 ; default option
; 1e25 ; 1e25
MenuData2_0x1e25: ; 1e25 YesNoMenuData2: ; 1e25
db $c0 ; flags db $c0 ; flags
db 2 db 2
db "YES@" db "YES@"

View File

@ -367,7 +367,7 @@ ParkBall: ; e8a2
ld [$d265], a ld [$d265], a
call $343b call $343b
call $1dcf call YesNoBox
jp c, $6be2 jp c, $6be2
@ -430,7 +430,7 @@ ParkBall: ; e8a2
ld [$d265], a ld [$d265], a
call $343b call $343b
call $1dcf call YesNoBox
jr c, .asm_ebaf jr c, .asm_ebaf

View File

@ -5507,7 +5507,7 @@ Function6520: ; 6520
Function65b5: ; 65b5 Function65b5: ; 65b5
ld hl, UnknownText_0x6675 ld hl, UnknownText_0x6675
call PrintText call PrintText
call Function1dcf call YesNoBox
jp c, Function6520 jp c, Function6520
ld hl, UnknownText_0x667a ld hl, UnknownText_0x667a
call PrintText call PrintText
@ -5526,7 +5526,7 @@ Function65d3: ; 65d3
push hl push hl
ld hl, UnknownText_0x667f ld hl, UnknownText_0x667f
call PrintText call PrintText
call Function1dcf call YesNoBox
pop hl pop hl
ret c ret c
ld bc, $fffc ld bc, $fffc
@ -14021,8 +14021,8 @@ Functione6ce: ; e6ce
ld [$d265], a ld [$d265], a
callba Functioncc0c7 callba Functioncc0c7
callba Functioncc000 callba Functioncc000
ld bc, $0e07 lb bc, 14, 7
call Function1dd2 call PlaceYesNoBox
ret c ret c
.asm_e6ea .asm_e6ea
@ -18704,7 +18704,7 @@ Function129f4: ; 129f4
jr c, .asm_12a42 jr c, .asm_12a42
ld hl, $6a4a ld hl, $6a4a
call Function1d4f call Function1d4f
call Function1dcf call YesNoBox
push af push af
call Function1c07 call Function1c07
pop af pop af
@ -19138,7 +19138,7 @@ Function12cea: ; 12cea (4:6cea)
Function12cf5: ; 12cf5 Function12cf5: ; 12cf5
call Function1d4f call Function1d4f
call Function1dcf call YesNoBox
jp Function1c07 jp Function1c07
; 12cfe ; 12cfe
@ -22788,7 +22788,7 @@ Function14a83: ; 14a83 (5:4a83)
push de push de
ld hl, $52a1 ld hl, $52a1
call Function1d4f call Function1d4f
call Function1dcf call YesNoBox
call Function1c07 call Function1c07
jr c, .asm_14ab0 jr c, .asm_14ab0
call Function14b89 call Function14b89
@ -22895,8 +22895,8 @@ Function14baf: ; 14baf
ld b, $5 ld b, $5
call Function269a call Function269a
call Function1d58 call Function1d58
ld bc, $0007 lb bc, 0, 7
call Function1dd2 call PlaceYesNoBox
ld a, [$cfa9] ld a, [$cfa9]
dec a dec a
call Function1c17 call Function1c17
@ -25101,7 +25101,7 @@ Function15d97: ; 15d97
call Predef call Predef
ld a, $1 ld a, $1
call Function15c7d call Function15c7d
call Function1dcf call YesNoBox
ret ret
; 15da5 ; 15da5
@ -25264,7 +25264,7 @@ Function15efd: ; 15efd
call ClearBox call ClearBox
ld hl, UnknownText_0x15f78 ld hl, UnknownText_0x15f78
call PrintTextBoxText call PrintTextBoxText
call Function1dcf call YesNoBox
jr c, .asm_15f6e jr c, .asm_15f6e
ld de, Money ld de, Money
ld bc, $ffc3 ld bc, $ffc3
@ -25664,14 +25664,14 @@ Function16781: ; 16781
.asm_16788 .asm_16788
call Function1689b call Function1689b
call Function1dcf call YesNoBox
ret ret
; 1678f ; 1678f
Function1678f: ; 1678f Function1678f: ; 1678f
set 7, [hl] set 7, [hl]
call Function1689b call Function1689b
call Function1dcf call YesNoBox
ret ret
; 16798 ; 16798
@ -25746,18 +25746,18 @@ Function16807: ; 16807
jr nz, .asm_16819 jr nz, .asm_16819
ld a, $f ld a, $f
call Function1689b call Function1689b
call Function1dcf call YesNoBox
jr c, .asm_16844 jr c, .asm_16844
jr .asm_1682d jr .asm_1682d
.asm_16819 .asm_16819
ld a, $b ld a, $b
call Function1689b call Function1689b
call Function1dcf call YesNoBox
jr c, .asm_16844 jr c, .asm_16844
ld a, $c ld a, $c
call Function1689b call Function1689b
call Function1dcf call YesNoBox
jr c, .asm_16844 jr c, .asm_16844
.asm_1682d .asm_1682d
@ -25856,7 +25856,7 @@ Function16936: ; 16936
.asm_16949 .asm_16949
ld hl, $6993 ld hl, $6993
call PrintText call PrintText
call Function1dcf call YesNoBox
jr c, .asm_1697c jr c, .asm_1697c
ld a, [PartyCount] ld a, [PartyCount]
cp $6 cp $6
@ -26762,7 +26762,7 @@ Function16f7a: ; 16f7a (5:6f7a)
push de push de
ld hl, $70ba ld hl, $70ba
call PrintText call PrintText
call Function1dcf call YesNoBox
pop de pop de
jr c, .asm_17074 jr c, .asm_17074
ld a, $1 ld a, $1
@ -27494,7 +27494,7 @@ Function20051: ; 20051 (8:4051)
call Function2011f call Function2011f
ld hl, $40b0 ld hl, $40b0
call PrintText call PrintText
call Function1dcf call YesNoBox
jr c, .asm_200ad jr c, .asm_200ad
ld a, [$d1ed] ld a, [$d1ed]
ld [StringBuffer2], a ; $d086 ld [StringBuffer2], a ; $d086
@ -30871,7 +30871,7 @@ INCBIN "baserom.gbc",$254a7,$265d3 - $254a7
ProfOaksPC: ; 0x265d3 ProfOaksPC: ; 0x265d3
ld hl, OakPCText1 ld hl, OakPCText1
call Function1d4f call Function1d4f
call Function1dcf call YesNoBox
jr c, .shutdown jr c, .shutdown
call ProfOaksPCBoot ; player chose "yes"? call ProfOaksPCBoot ; player chose "yes"?
.shutdown .shutdown
@ -36330,7 +36330,7 @@ Function2c545: ; 2c545 (b:4545)
Function2c547: ; 2c547 Function2c547: ; 2c547
ld hl, $45ef ld hl, $45ef
call PrintText call PrintText
call Function1dcf call YesNoBox
jr c, .asm_2c5c3 jr c, .asm_2c5c3
ld hl, $45f4 ld hl, $45f4
call PrintText call PrintText
@ -36361,7 +36361,7 @@ Function2c547: ; 2c547
call GetMoveName call GetMoveName
ld hl, $45d6 ld hl, $45d6
call PrintText call PrintText
call Function1dcf call YesNoBox
pop bc pop bc
jr c, .asm_2c5c3 jr c, .asm_2c5c3
call Function2c5f9 call Function2c5f9
@ -36671,7 +36671,7 @@ Function2c7bf: ; 2c7bf (b:47bf)
call PrintText call PrintText
ld hl, $48c9 ld hl, $48c9
call PrintText call PrintText
call Function1dcf call YesNoBox
.asm_2c7f5 .asm_2c7f5
pop bc pop bc
ld a, b ld a, b
@ -41446,8 +41446,8 @@ Function3d1f8: ; 3d1f8
ld hl, BattleText_0x80a83 ld hl, BattleText_0x80a83
call StdBattleTextBox call StdBattleTextBox
.asm_3d20a .asm_3d20a
ld bc, $0107 lb bc, 1, 7
call Function1dd2 call PlaceYesNoBox
ld a, [$cfa9] ld a, [$cfa9]
jr c, .asm_3d217 jr c, .asm_3d217
and a and a
@ -42253,8 +42253,8 @@ Function3d74b: ; 3d74b
callab Function39939 callab Function39939
ld hl, BattleText_0x80aca ld hl, BattleText_0x80aca
call StdBattleTextBox call StdBattleTextBox
ld bc, $0107 lb bc, 1, 7
call Function1dd2 call PlaceYesNoBox
ld a, [$cfa9] ld a, [$cfa9]
dec a dec a
jr nz, .asm_3d79a jr nz, .asm_3d79a
@ -51746,7 +51746,7 @@ Function4484a: ; 0x4484a
.PutInPack ; 0x44877 .PutInPack ; 0x44877
ld hl, .MessageLostText ld hl, .MessageLostText
call Function1d4f call Function1d4f
call Function1dcf call YesNoBox
call Function1c07 call Function1c07
ret c ret c
ld a, [MenuSelection] ld a, [MenuSelection]
@ -55963,7 +55963,7 @@ Function4a9d7: ; 4a9d7
call CopyBytes call CopyBytes
ld hl, $6a1d ld hl, $6a1d
call PrintText call PrintText
call Function1dcf call YesNoBox
ret ret
; 4aa1d ; 4aa1d
@ -56576,7 +56576,7 @@ Function4ae12: ; 4ae12
Function4ae1f: ; 4ae1f Function4ae1f: ; 4ae1f
ld bc, $0e07 ld bc, $0e07
push bc push bc
ld hl, MenuDataHeader_0x1e1d ld hl, YesNoMenuDataHeader
call Function1d3c call Function1d3c
pop bc pop bc
ld a, b ld a, b
@ -58012,7 +58012,7 @@ Function4db35: ; 4db35
Function4db3b: ; 4db3b Function4db3b: ; 4db3b
ld hl, $5b44 ld hl, $5b44
call PrintText call PrintText
jp Function1dcf jp YesNoBox
; 4db44 ; 4db44
INCBIN "baserom.gbc",$4db44,$4db49 - $4db44 INCBIN "baserom.gbc",$4db44,$4db49 - $4db44
@ -71541,7 +71541,7 @@ Function8afd4: ; 8afd4
call GetItemName call GetItemName
ld hl, $7077 ld hl, $7077
call Function105a call Function105a
call Function1dcf call YesNoBox
jr c, .asm_8afeb jr c, .asm_8afeb
ld a, [$cf75] ld a, [$cf75]
call Function8b154 call Function8b154
@ -77268,7 +77268,7 @@ Function90672: ; 90672 (24:4672)
call Function90783 call Function90783
ld hl, $4886 ld hl, $4886
call PrintText call PrintText
call Function1dcf call YesNoBox
jr nc, .asm_9072e jr nc, .asm_9072e
call Function90783 call Function90783
jr .asm_906e8 jr .asm_906e8
@ -77295,7 +77295,7 @@ Function90672: ; 90672 (24:4672)
call Function90783 call Function90783
ld hl, $48a4 ld hl, $48a4
call PrintText call PrintText
call Function1dcf call YesNoBox
jr nc, .asm_90773 jr nc, .asm_90773
call Function90783 call Function90783
jr .asm_9072e jr .asm_9072e
@ -77543,7 +77543,7 @@ Function90913: ; 90913
call Function1ad2 call Function1ad2
ld hl, $4a44 ld hl, $4a44
call PrintText call PrintText
call Function1dcf call YesNoBox
jr c, .asm_90936 jr c, .asm_90936
ld a, [DefaultFlypoint] ld a, [DefaultFlypoint]
ld [StringBuffer2], a ld [StringBuffer2], a
@ -81382,8 +81382,8 @@ Function930e9: ; 930e9 (24:70e9)
ld hl, UnknownText_9311f ld hl, UnknownText_9311f
call PrintText call PrintText
call Function1d58 call Function1d58
ld bc, $e0c lb bc, 14, 12
call Function1dd2 call PlaceYesNoBox
ld a, [$cfa9] ld a, [$cfa9]
dec a dec a
call Function1c17 call Function1c17
@ -94973,7 +94973,7 @@ Functione01b0: ; e01b0
Functione01b5: ; e01b5 Functione01b5: ; e01b5
ld hl, UnknownText_0xe01cd ld hl, UnknownText_0xe01cd
call Functione0489 call Functione0489
call Function1dcf call YesNoBox
jr c, .asm_e01c7 jr c, .asm_e01c7
call Functione0366 call Functione0366
call Functione01b0 call Functione01b0
@ -95177,7 +95177,7 @@ Functione031e: ; e031e
call ClearSprites call ClearSprites
ld hl, UnknownText_0xe0356 ld hl, UnknownText_0xe0356
call Functione0489 call Functione0489
call Function1dcf call YesNoBox
jr nc, .asm_e0330 jr nc, .asm_e0330
call Functione01b0 call Functione01b0
ret ret
@ -96629,8 +96629,8 @@ Functione24e0: ; e24e0 (38:64e0)
ld de, $74f4 ld de, $74f4
call Functione2a6e call Functione2a6e
call Function1d6e call Function1d6e
ld bc, $e0b lb bc, 14, 11
call Function1dd2 call PlaceYesNoBox
ld a, [$cfa9] ld a, [$cfa9]
dec a dec a
call Function1c07 call Function1c07
@ -96867,8 +96867,8 @@ Functione26d8: ; e26d8 (38:66d8)
ld de, $74f4 ld de, $74f4
call Functione2a6e call Functione2a6e
call Function1d6e call Function1d6e
ld bc, $e0b lb bc, 14, 11
call Function1dd2 call PlaceYesNoBox
ld a, [$cfa9] ld a, [$cfa9]
dec a dec a
call Function1c07 call Function1c07
@ -102762,7 +102762,7 @@ Functionfcba8: ; fcba8
jr nz, .asm_fcc03 jr nz, .asm_fcc03
ld a, $0 ld a, $0
call Functionfcf38 call Functionfcf38
call Function1dcf call YesNoBox
ld a, $1 ld a, $1
jr c, .asm_fcc03 jr c, .asm_fcc03
ld b, $6 ld b, $6
@ -105583,7 +105583,7 @@ Function102142: ; 102142
call Function10219f call Function10219f
ld hl, $61d6 ld hl, $61d6
call Function1d4f call Function1d4f
call Function1dcf call YesNoBox
call Function1c07 call Function1c07
jr c, .asm_10217c jr c, .asm_10217c
call Function1021b8 call Function1021b8
@ -105686,7 +105686,7 @@ Function10366e: ; 10366e
jr z, .asm_10369b jr z, .asm_10369b
ld hl, $775d ld hl, $775d
call PrintText call PrintText
call Function1dcf call YesNoBox
jr c, .asm_103696 jr c, .asm_103696
callba Function8b1e1 callba Function8b1e1
jr nc, .asm_103690 jr nc, .asm_103690
@ -105710,7 +105710,7 @@ Function10366e: ; 10366e
jr nz, .asm_1036b5 jr nz, .asm_1036b5
ld hl, $7762 ld hl, $7762
call PrintText call PrintText
call Function1dcf call YesNoBox
jr c, .asm_1036b5 jr c, .asm_1036b5
call Function1036f9 call Function1036f9
call Functiona36 call Functiona36
@ -105857,7 +105857,7 @@ Function1037c2: ; 1037c2
jr z, .asm_1037de jr z, .asm_1037de
ld hl, $77e6 ld hl, $77e6
call PrintText call PrintText
call Function1dcf call YesNoBox
jr c, .asm_1037de jr c, .asm_1037de
ld a, $1 ld a, $1
ld [ScriptVar], a ld [ScriptVar], a