From 6d5921d1f090b267d0a6e9a52f8556cbf643323c Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Thu, 15 Jun 2023 00:18:22 -0400 Subject: [PATCH] sb: hook up back off --- games/sb/Makefile | 1 + games/sb/asplode.s | 10 ++++++++-- games/sb/qload.s | 10 +++++----- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/games/sb/Makefile b/games/sb/Makefile index 78786420..1ca18155 100644 --- a/games/sb/Makefile +++ b/games/sb/Makefile @@ -25,6 +25,7 @@ sb.dsk: QBOOT QLOAD TITLE DUCK_POND ROOF ASPLODE BACK_OFF TARGET CLIFF RAT $(DOS33_RAW) sb.dsk 20 0 TARGET 0 0 $(DOS33_RAW) sb.dsk 25 0 CLIFF 0 0 $(DOS33_RAW) sb.dsk 30 0 RAT 0 0 + $(DOS33_RAW) sb.dsk 32 0 BACK_OFF 0 0 #### diff --git a/games/sb/asplode.s b/games/sb/asplode.s index e144d813..2c7b1b83 100644 --- a/games/sb/asplode.s +++ b/games/sb/asplode.s @@ -629,8 +629,8 @@ check_keypress: cmp #'D' ; shield right beq shield_right -; cmp #'X' -; beq asplode_asplode + cmp #'O' + beq back_off cmp #8 ; left beq move_left @@ -684,12 +684,18 @@ asplode_asplode: jmp reset_loop + +back_off: + lda #7 + bne really_done_game ; bra + ;========================== ; done game ;========================== done_game: lda #0 +really_done_game: sta WHICH_LOAD rts diff --git a/games/sb/qload.s b/games/sb/qload.s index a525c6ae..b92ef135 100644 --- a/games/sb/qload.s +++ b/games/sb/qload.s @@ -167,26 +167,26 @@ error_string: which_disk_array: .byte 1,1,1,1 ; TITLE, DUCK, ROOF, ASPLODE - .byte 1,1,1 ; TARGET, CLIFF, RAT + .byte 1,1,1,1 ; TARGET, CLIFF, RAT, BACK_OFF load_address_array: .byte $60,$60,$60,$40 ; TITLE, DUCK, ROOF, ASPLODE - .byte $60,$60,$60 ; TARGET, CLIFF, RAT + .byte $60,$60,$60,$60 ; TARGET, CLIFF, RAT, BACK_OFF track_array: .byte 2, 5,10,15 ; TITLE, DUCK, ROOF, ASPLODE - .byte 20,25,30 ; TARGET, CLIFF, RAT + .byte 20,25,30,32 ; TARGET, CLIFF, RAT, BACK_OFF sector_array: .byte 0, 0, 0, 0 ; TITLE, DUCK, ROOF, ASPLODE - .byte 0, 0, 0 ; TARGET, CLIFF, RAT + .byte 0, 0, 0, 0 ; TARGET, CLIFF, RAT, BACK_OFF length_array: .byte 40, 16, 16, 70 ; TITLE, DUCK, ROOF, ASPLODE - .byte 32, 32, 32 ; TARGET, CLIFF, RAT + .byte 32, 32, 32, 45 ; TARGET, CLIFF, RAT, BACK_OFF qload_end: