add code to add free shadow memory to heap (currently disabled)
This commit is contained in:
@@ -41,7 +41,7 @@ MEMORY {
|
|||||||
CHARGEN: file = "", define = yes, start = $D800, size = $0400;
|
CHARGEN: file = "", define = yes, start = $D800, size = $0400;
|
||||||
|
|
||||||
# memory beneath the ROM
|
# memory beneath the ROM
|
||||||
RAM_BELOW_ROM: file = "", start = $DC00, size = $FFF0 - $DC00;
|
RAM_BELOW_ROM: file = "", define = yes, start = $DC00, size = $FFF0 - $DC00;
|
||||||
}
|
}
|
||||||
|
|
||||||
SEGMENTS {
|
SEGMENTS {
|
||||||
|
|||||||
@@ -97,6 +97,23 @@
|
|||||||
|
|
||||||
jsr initlib
|
jsr initlib
|
||||||
|
|
||||||
|
.if 0
|
||||||
|
.if .defined(__ATARIXL__)
|
||||||
|
.import __heapadd
|
||||||
|
.import pushax
|
||||||
|
.import __RAM_BELOW_ROM_START__
|
||||||
|
.import __RAM_BELOW_ROM_SIZE__
|
||||||
|
.import __RAM_BELOW_ROM_LAST__
|
||||||
|
|
||||||
|
lda #<__RAM_BELOW_ROM_LAST__
|
||||||
|
ldx #>__RAM_BELOW_ROM_LAST__
|
||||||
|
jsr pushax
|
||||||
|
lda #<(__RAM_BELOW_ROM_SIZE__ - (__RAM_BELOW_ROM_LAST__ - __RAM_BELOW_ROM_START__))
|
||||||
|
ldx #>(__RAM_BELOW_ROM_SIZE__ - (__RAM_BELOW_ROM_LAST__ - __RAM_BELOW_ROM_START__))
|
||||||
|
jsr __heapadd
|
||||||
|
.endif
|
||||||
|
.endif
|
||||||
|
|
||||||
; Set left margin to 0
|
; Set left margin to 0
|
||||||
|
|
||||||
lda LMARGN
|
lda LMARGN
|
||||||
|
|||||||
Reference in New Issue
Block a user