upper memory limit
git-svn-id: svn://svn.cc65.org/cc65/trunk@3569
b7a2c559-68d2-44c3-8de9-
860c34a00d81
.import zerobss, pushax
.import _main, __filetab, getfd
.import __LOWCODE_LOAD__, __BSS_LOAD__
+ .import __RESERVED_MEMORY__
.ifdef DYNAMIC_DD
.import __getdefdev
.endif
lda APPMHI+1
sta appmsav+1
+ sec
lda MEMTOP
+ sbc #<__RESERVED_MEMORY__
sta APPMHI ; initialize our APPMHI value
- ldx MEMTOP+1
- stx APPMHI+1
+ lda MEMTOP+1
+ sbc #>__RESERVED_MEMORY__
+ sta APPMHI+1
; Call module constructors