mirror of
https://github.com/mi57730/a2d.git
synced 2024-11-29 07:49:20 +00:00
coding style fix
This commit is contained in:
parent
c05fd1a669
commit
4ca3e0c140
@ -1064,8 +1064,7 @@ notpas:
|
|||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
;;; Calculate RamWorks memory; returns number of banks in Y
|
;;; Calculate RamWorks memory; returns number of banks in Y
|
||||||
;;; (256 banks = 0)
|
;;; (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.
|
;;; RamWorks-style cards are not guaranteed to have contiguous banks.
|
||||||
;;; a user can install 64Kb or 256Kb chips in a physical bank, in the
|
;;; 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
|
;;; former case, a gap in banks will appear. Additionally, the piggy
|
||||||
@ -1087,7 +1086,7 @@ notpas:
|
|||||||
|
|
||||||
ldx #0 ; bank we are checking
|
ldx #0 ; bank we are checking
|
||||||
ldy #0 ; bank count
|
ldy #0 ; bank count
|
||||||
: stx RWBANK ; select bank
|
loop: stx RWBANK ; select bank
|
||||||
lda $00 ; save existing data
|
lda $00 ; save existing data
|
||||||
pha ; on stack
|
pha ; on stack
|
||||||
lda $01
|
lda $01
|
||||||
@ -1106,7 +1105,7 @@ notpas:
|
|||||||
pla
|
pla
|
||||||
sta $00
|
sta $00
|
||||||
inx ; next bank
|
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)
|
;; Switch back to RW bank 0 (normal aux memory)
|
||||||
done: lda #0
|
done: lda #0
|
||||||
|
Loading…
Reference in New Issue
Block a user