mirror of
https://github.com/digarok/MiniMemoryTester.git
synced 2024-12-22 15:31:03 +00:00
trying to strip out helper functions ... also add PrintInt
This commit is contained in:
parent
cf23621175
commit
5bd1671d11
33
src/mmt.s
33
src/mmt.s
@ -902,12 +902,43 @@ DetectRam
|
|||||||
inx
|
inx
|
||||||
bra :highloop
|
bra :highloop
|
||||||
|
|
||||||
:done rts
|
:done bra :findKB
|
||||||
|
|
||||||
:notused lda #BankNoRAM
|
:notused lda #BankNoRAM
|
||||||
sta BankMap,x
|
sta BankMap,x
|
||||||
bra :continue
|
bra :continue
|
||||||
|
|
||||||
|
:findKB
|
||||||
|
lda BankExpansionRam ;number of banks
|
||||||
|
clc
|
||||||
|
xce
|
||||||
|
rep #$30
|
||||||
|
mx %00
|
||||||
|
and #$00FF ;clear artifacts? can't remember state of B
|
||||||
|
asl ;*2
|
||||||
|
asl ;*4
|
||||||
|
asl ;*8
|
||||||
|
asl ;*16
|
||||||
|
asl ;*32
|
||||||
|
asl ;*64
|
||||||
|
sta BankExpansionRamKB
|
||||||
|
|
||||||
|
lda GSROM ;now check (hardcode really) build-in ram
|
||||||
|
cmp #3
|
||||||
|
bne :notrom3
|
||||||
|
:rom3 lda #1024
|
||||||
|
sta BankBuiltInRamKB
|
||||||
|
rts
|
||||||
|
:notrom3 lda #256K
|
||||||
|
sta BankBuiltInRamKB
|
||||||
|
sep #$30
|
||||||
|
|
||||||
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
BankExpansionRamKB ds 2
|
||||||
|
BankBuiltInRamKB ds 2
|
||||||
BankExpansionRam ds 1
|
BankExpansionRam ds 1
|
||||||
BankExpansionLowest ds 1
|
BankExpansionLowest ds 1
|
||||||
BankExpansionHighest ds 1
|
BankExpansionHighest ds 1
|
||||||
|
Loading…
Reference in New Issue
Block a user