diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2016-09-26 13:52:24 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2016-09-26 13:52:24 +0300 |
commit | b6f5910e6b8935555d6291903475f3953603a77f (patch) | |
tree | f2929af91c825e731d7f4261726e0d986b3196c9 /menu.asm | |
parent | d52156a9cf3adafadcfe9fccc3a4bf721ea305c1 (diff) |
String trimming
Diffstat (limited to 'menu.asm')
-rw-r--r-- | menu.asm | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -423,12 +423,8 @@ button_up: jsr check_separator_up jmp button_done button_up_ovf: - lda games_count - sec - sbc #1 + lda #0 sta SELECTED_GAME - lda games_count+1 - sbc #0 sta SELECTED_GAME+1 jmp button_done @@ -453,9 +449,13 @@ button_down_not_ovf: jsr check_separator_down jmp button_done button_down_ovf: - lda #0 + lda games_count + sec + sbc #1 sta SELECTED_GAME - sta SELECTED_GAME+1 + lda games_count+1 + sbc #0 + sta SELECTED_GAME+1 jmp button_done button_left: |