From 4d7e53be215945c564594185c96f2c63d1ef8a36 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Mon, 21 May 2018 10:57:38 -0400 Subject: [PATCH] sa: trim off unneeded stuff --- still_alive/still_alive.s | 57 +++++---------------------------------- 1 file changed, 7 insertions(+), 50 deletions(-) diff --git a/still_alive/still_alive.s b/still_alive/still_alive.s index 6cf1d57d..3cff4019 100644 --- a/still_alive/still_alive.s +++ b/still_alive/still_alive.s @@ -26,10 +26,6 @@ NUM_FILES EQU 15 sta MB_CHUNK_OFFSET sta DECODE_ERROR - - lda #0 - sta WHICH_FILE - ; print detection message lda #krw_file + sta INH lda #8 sta CH @@ -455,47 +453,7 @@ page_copy_loop: ; 2+14*256+6+29= 3621 - ;================== - ; Get filename - ;================== - ; WHICH_FILE holds number - ; MAX_FILES has max - ; Scroll through until find - ; point INH:INL to it -get_filename: - ldy #0 - ldx WHICH_FILE - - lda #krw_file - sta INH - -get_filename_loop: - cpx #0 - beq filename_found - -inner_loop: - iny - lda (INL),Y - bne inner_loop - - iny - - dex - jmp get_filename_loop - -filename_found: - tya - clc - adc INL - sta INL - lda INH - adc #0 - sta INH - - rts ;=============================== ; Increment file we want to load @@ -540,7 +498,6 @@ krw_file: .include "../asm_routines/pageflip.s" .include "../asm_routines/gr_setpage.s" .include "../asm_routines/dos33_routines.s" -.include "../asm_routines/gr_hlin.s" .include "../asm_routines/lz4_decode.s" .include "../asm_routines/keypress_minimal.s"