aboutsummaryrefslogtreecommitdiff
path: root/checkmem.s
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-02-06 17:51:59 -0500
committerB. Watson <yalhcru@gmail.com>2016-02-06 17:51:59 -0500
commita57be4c9966f5824bc2ba440684496af663077de (patch)
tree10cec4f65eeff98e6d90dc9a37f6716942cfaa33 /checkmem.s
parent5823ba3b17a6b65b910fe248c7dff1354bee1b18 (diff)
downloadtaipan-a57be4c9966f5824bc2ba440684496af663077de.tar.gz
trying to get taipan to load with atarimax flash cart xex loader
Diffstat (limited to 'checkmem.s')
-rw-r--r--checkmem.s8
1 files changed, 6 insertions, 2 deletions
diff --git a/checkmem.s b/checkmem.s
index 06c7917..90d21db 100644
--- a/checkmem.s
+++ b/checkmem.s
@@ -21,6 +21,11 @@ msglen = * - msg - 1
S: .byte "S:",0
init:
+ lda RAMSIZ
+ cmp #$c0
+ php
+ sta RAMTOP
+
ldx #6*$10 ; CLOSE #6
lda #CLOSE
sta ICCOM,x
@@ -40,8 +45,7 @@ init:
sta ICBAH,x
jsr CIOV
- lda RAMTOP
- cmp #$c0
+ plp
bcc have_cart
; if ramtop is $c000 or higher, we're OK, just exit.