explained all similarities >3, some minor cleanups
This commit is contained in:
1 parent
53e4babbe3
commit
49e8b75b85
44 files changed
+208
-12
No files matched your search
+4
-4
@@ -12,13 +12,13 @@ MEMTOP:
|
||||
|
||||
bcc memtop_set
|
||||
|
||||
ldy MEMEND+1
|
||||
ldx MEMEND+0
|
||||
ldy MEMSIZK+1
|
||||
ldx MEMSIZK+0
|
||||
rts
|
||||
|
||||
memtop_set:
|
||||
|
||||
sty MEMEND+1
|
||||
stx MEMEND+0
|
||||
sty MEMSIZK+1
|
||||
stx MEMSIZK+0
|
||||
|
||||
rts
|
||||
+4
-4
@@ -61,14 +61,14 @@ ramtas_l2:
|
||||
ldx #>$0400
|
||||
stx HIBASE
|
||||
|
||||
// Work out RAM size and put in MEMSTR and MEMEND
|
||||
// Work out RAM size and put in MEMSTR and MEMSIZK
|
||||
// "Compute's Mapping the 64", p54
|
||||
// http://unusedino.de/ec64/technical/project64/mapping_c64.html
|
||||
ldx #>$0800
|
||||
stx MEMSTR+1
|
||||
ldx #$00
|
||||
stx MEMSTR+0
|
||||
stx MEMEND+0
|
||||
stx MEMSIZK+0
|
||||
// Try to modify $8000, if it fails then RAM ends at $7FFF, else $9FFF
|
||||
lda $8000
|
||||
eor #$FF
|
||||
@@ -79,12 +79,12 @@ ramtas_l2:
|
||||
beq ramtas_32K_RAM
|
||||
sta $8000
|
||||
ldx #$A0
|
||||
stx MEMEND+1
|
||||
stx MEMSIZK+1
|
||||
jmp ramtas_RAM_sized
|
||||
ramtas_32K_RAM:
|
||||
sta $8000 // in case RAM is hiding beneath a ROM
|
||||
ldx #$80
|
||||
stx MEMEND+1
|
||||
stx MEMSIZK+1
|
||||
// Fall through
|
||||
ramtas_RAM_sized:
|
||||
|
||||
|
||||
Reference in new issue
Block a user