This commit is contained in:
Paul Gardner-Stephen committed 2019-04-19 21:42:05 +09:30
1 parent e538bfee0e
commit e80df3ff53
3 files changed
+23 -5

No files matched your search

+10 -3
View File
@@ -1,7 +1,14 @@
; Function defined on pp272-273 of C64 Programmers Reference Guide ; Function defined on pp272-273 of C64 Programmers Reference Guide
membot: membot:
; p287 C64 Programmers reference guide ; p287 C64 Programmers reference guide
; For now, we only read it, not allow setting it ;; http://unusedino.de/ec64/technical/project64/mapping_c64.html
LDX #<$0800 bcc membot_set
LDY #>$0800
LDX MEMSTR+0
LDY MEMSTR+1
rts
membot_set:
stx MEMSTR+0
stx MEMSTR+1
rts rts
+10 -2
View File
@@ -2,6 +2,14 @@
memtop: memtop:
; p288 C64 Programmer's reference guide ; p288 C64 Programmer's reference guide
; but for now we only support reading it ; but for now we only support reading it
LDX #<$9FFF ;; http://unusedino.de/ec64/technical/project64/mapping_c64.html
LDY #>$9FFF bcc memtop_set
LDX MEMSIZ+0
LDY MEMSIZ+1
rts
memtop_set:
stx MEMSIZ+0
stx MEMSIZ+1
rts rts
+3
View File
@@ -45,6 +45,9 @@ ramtas_l2:
;; Work out RAM size and put in MEMSTR and MEMSIZ ;; Work out RAM size and put in MEMSTR and MEMSIZ
;; "Compute's Mapping the 64", p54 ;; "Compute's Mapping the 64", p54
;; http://unusedino.de/ec64/technical/project64/mapping_c64.html
lda #>$0800
sta MEMSTR+1
lda #$00 lda #$00
sta MEMSTR+0 sta MEMSTR+0
sta MEMSIZ+0 sta MEMSIZ+0