1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-24 14:28:06 +11:00

recipes/sms/romasm: limit mmap size

Otherwise, we overflow into the RAM mirror, which means we
overwrite the beginning of the RAM.
This commit is contained in:
Virgil Dupras 2019-07-23 23:01:17 -04:00
parent 4f6c230dc8
commit 13028d431e

View File

@ -54,6 +54,7 @@
#include "stdio.asm"
.equ MMAP_START 0xd800
.equ MMAP_LEN RAMEND-MMAP_START
#include "mmap.asm"
.equ BLOCKDEV_RAMSTART STDIO_RAMEND
@ -94,16 +95,19 @@ init:
inc hl
ld a, 'S'
ld (hl), a
call fsInit
xor a
call blkSel
call kbdInit
call vdpInit
ld hl, kbdGetC
ld de, vdpPutC
call stdioInit
call fsInit
xor a
ld de, BLOCKDEV_SEL
call blkSel
call fsOn
call kbdInit
call vdpInit
call shellInit
jp shellLoop