aboutsummaryrefslogtreecommitdiff
path: root/memsetup.asm
blob: 314a7df88e45482dfbc58e75d21165b9e79bc6f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 *= $2000
memsetup
 lda #$80
 sta $6a    ; RAMTOP
 sta $02e6  ; MEMTOP high
 lda #0
 sta $02e5  ; MEMTOP low
 sta $022f  ; SDMCTL (turn off screen)
 lda $14    ; RTCLOK+2
loop
 cmp $14    ; wait until next frame
 beq loop
 rts

 *= $02e2  ; INITAD
 .word memsetup