mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Remove remaining raw $xxxx values, and replace "+ -1" with "- 1" (supported by rgbds 0.4.0)
This commit is contained in:
parent
7e92d5ba8c
commit
e4e0af4d67
29 changed files with 172 additions and 158 deletions
|
|
@ -43,7 +43,7 @@ DisplayTextIDInit::
|
|||
; the original direction they were facing must be restored after the dialogue is over
|
||||
ld hl, wSpriteStateData1 + $19
|
||||
ld c, $0f
|
||||
ld de, $0010
|
||||
ld de, $10
|
||||
.spriteFacingDirectionCopyLoop
|
||||
ld a, [hl]
|
||||
inc h
|
||||
|
|
@ -55,7 +55,7 @@ DisplayTextIDInit::
|
|||
; loop to force all the sprites in the middle of animation to stand still
|
||||
; (so that they don't like they're frozen mid-step during the dialogue)
|
||||
ld hl, wSpriteStateData1 + 2
|
||||
ld de, $0010
|
||||
ld de, $10
|
||||
ld c, e
|
||||
.spriteStandStillLoop
|
||||
ld a, [hl]
|
||||
|
|
|
|||
|
|
@ -702,7 +702,7 @@ ClearSAV:
|
|||
|
||||
PadSRAM_FF:
|
||||
ld [MBC1SRamBank], a
|
||||
ld hl, $a000 ; start of SRAM
|
||||
ld bc, $2000 ; size of SRAM
|
||||
ld hl, SRAM_Begin
|
||||
ld bc, SRAM_End - SRAM_Begin
|
||||
ld a, $ff
|
||||
jp FillMemory
|
||||
|
|
|
|||
|
|
@ -491,12 +491,12 @@ DrawTrainerInfo:
|
|||
call CopyData
|
||||
ld hl, TrainerInfoTextBoxTileGraphics ; trainer info text box tile patterns
|
||||
ld de, vChars2 + $770
|
||||
ld bc, $0080
|
||||
ld bc, $80
|
||||
push bc
|
||||
call TrainerInfo_FarCopyData
|
||||
ld hl, BlankLeaderNames
|
||||
ld de, vChars2 + $600
|
||||
ld bc, $0170
|
||||
ld bc, $170
|
||||
call TrainerInfo_FarCopyData
|
||||
pop bc
|
||||
ld hl, BadgeNumbersTileGraphics ; badge number tile patterns
|
||||
|
|
@ -504,14 +504,14 @@ DrawTrainerInfo:
|
|||
call TrainerInfo_FarCopyData
|
||||
ld hl, GymLeaderFaceAndBadgeTileGraphics ; gym leader face and badge tile patterns
|
||||
ld de, vChars2 + $200
|
||||
ld bc, $0400
|
||||
ld bc, $400
|
||||
ld a, $03
|
||||
call FarCopyData2
|
||||
ld hl, TextBoxGraphics
|
||||
ld de, $00d0
|
||||
ld de, $d0
|
||||
add hl, de ; hl = colon tile pattern
|
||||
ld de, vChars1 + $560
|
||||
ld bc, $0010
|
||||
ld bc, $10
|
||||
ld a, $04
|
||||
push bc
|
||||
call FarCopyData2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue