Fix check whether there is enough memory btw. MEMLO and the program

load address to move screen buffer there.
This commit is contained in:
Christian Groessler
2013-06-20 23:31:41 +02:00
parent 96b0ca0524
commit 6ed1b07e59
3 changed files with 101 additions and 30 deletions

View File

@@ -107,26 +107,18 @@ sramprep:
ora #2
sta PORTB
.include "xlmemchk.inc"
; ... change system memory variables bla
CMPVAL = 64+255+992 ; you may ask, why these values... @@@ document
sys_ok: lda #<__SAVEAREA_LOAD__
sec
sbc #<CMPVAL
sta MEMTOP
sta APPMHI
lda #>__SAVEAREA_LOAD__
sbc #>CMPVAL
ldx tstadr2
stx MEMTOP
stx APPMHI
lda tstadr2+1
sta MEMTOP+1
sta APPMHI+1
lda #>__SAVEAREA_LOAD__ - 1
lda lowadr+1
sta RAMTOP
; ... issue a GRAPHICS 0 call (copied'n'pasted from TGI drivers)