From 4ca3e0c1404a4f004cd68bcb225b44f276888335 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Mon, 9 Apr 2018 20:55:26 -0700 Subject: [PATCH] coding style fix --- desk.acc/this.apple.s | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/desk.acc/this.apple.s b/desk.acc/this.apple.s index b46f31d..f6875bd 100644 --- a/desk.acc/this.apple.s +++ b/desk.acc/this.apple.s @@ -1064,8 +1064,7 @@ notpas: ;;; ============================================================ ;;; Calculate RamWorks memory; returns number of banks in Y ;;; (256 banks = 0) -;;; non-destructive version -;;; note the bus floats for RamWorks RAM when the bank has no RAM. +;;; Note the bus floats for RamWorks RAM when the bank has no RAM. ;;; RamWorks-style cards are not guaranteed to have contiguous banks. ;;; a user can install 64Kb or 256Kb chips in a physical bank, in the ;;; former case, a gap in banks will appear. Additionally, the piggy @@ -1087,9 +1086,9 @@ notpas: ldx #0 ; bank we are checking ldy #0 ; bank count -: stx RWBANK ; select bank +loop: stx RWBANK ; select bank lda $00 ; save existing data - pha ; on stack + pha ; on stack lda $01 pha txa ; bank number as first check byte @@ -1106,7 +1105,7 @@ notpas: pla sta $00 inx ; next bank - bne :-- ; if we hit 256 banks, make sure we exit + bne loop ; if we hit 256 banks, make sure we exit ;; Switch back to RW bank 0 (normal aux memory) done: lda #0