Skip to content

Commit

Permalink
shave some bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
a2-4am committed Oct 8, 2019
1 parent d23ed3e commit f9bd909
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/constants.a
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
; D000..E611 - persistent data structures (per-game cheat categories,
; gGlobalPrefsStore, gGamesListStore)
; ...unused...
; EBEC..FFF9 - main program code
; EBF2..FFF9 - main program code
; FFFA..FFFF - NMI, reset, IRQ vectors
;
; LC RAM BANK 2
Expand Down
23 changes: 9 additions & 14 deletions src/ui.credits.a
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,23 @@ Credits
jsr DrawPage ; draw credits
jsr ShowOtherPage ; show credits
jsr WaitForKeyFor30Seconds; wait
bit CLEARKBD ; don't care about key
-- bit CLEARKBD ; don't care about key
jsr ShowOtherPage ; back to previous page
clc ; if called from search mode, tell caller not to refresh
- clc ; if called from search mode, tell caller not to refresh
rts

Help
; clobbers all
jsr LoadHelpOffscreen
jsr ShowOtherPage
jsr WaitForKeyFor30Seconds
cmp #$88
beq +
cmp #$83
beq @exitWithoutShowingOtherPage
beq -
jsr IsUpDownOrRightArrow
beq @exitWithoutShowingOtherPage
cmp #$88
beq @exitViaBrowse
beq -
jsr IsSearchKey
beq @exitWithoutShowingOtherPage
bit CLEARKBD
jsr ShowOtherPage
@exitWithoutShowingOtherPage
clc
rts
@exitViaBrowse
jmp BrowseMode
beq -
bne --
+ jmp BrowseMode

0 comments on commit f9bd909

Please sign in to comment.