Skip to content

Commit

Permalink
rst optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
vulcandth committed Feb 11, 2025
1 parent 429a479 commit 6c0eacd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion engine/pokemon/summary/blue_page.asm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SummaryScreen_BluePage:
ld [wTextboxFlags], a
hlbgcoord 0, 0, wSummaryScreenWindowBuffer
ld de, .HPString
call PlaceString
rst PlaceString
hlbgcoord 0, 2, wSummaryScreenWindowBuffer
ld bc, 8
farcall PrintTempMonStats
Expand Down
4 changes: 2 additions & 2 deletions engine/pokemon/summary/green_page.asm
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ endr
dec a
ld hl, 0
ld bc, 20
call AddNTimes
rst AddNTimes
ld a, 31
add l
ld c, a
Expand All @@ -164,7 +164,7 @@ endr
push af
ld hl, 0
ld bc, 20
call AddNTimes
rst AddNTimes
ld a, 31
add l
ld c, a
Expand Down
4 changes: 2 additions & 2 deletions engine/pokemon/summary/orange_page.asm
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ SummaryScreen_OrangePage:
.PlaceNatureInfo:
ld de, .NatureString
hlbgcoord 0, 0, wSummaryScreenWindowBuffer
call PlaceString
rst PlaceString
ld de, .CharacterString
hlbgcoord 0, 2, wSummaryScreenWindowBuffer
call PlaceString
rst PlaceString
ld a, [wTempMonNature]
ld b, a
call GetNature
Expand Down
2 changes: 1 addition & 1 deletion engine/printer/printer.asm
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ PlacePrinterStatusString:
rst PlaceString
hlcoord 2, 15
ld de, String_PressBToCancel
call PlaceString
rst PlaceString
ld a, $1
ldh [hBGMapMode], a
xor a
Expand Down
2 changes: 1 addition & 1 deletion engine/printer/printer_serial.asm
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ Printer_Get2bpp:
jr nc, .loop
call SwapHLDE
ld bc, 16
call CopyBytes
rst CopyBytes
reti

PrinterDataPacket1:
Expand Down

0 comments on commit 6c0eacd

Please sign in to comment.