1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-27 17:58: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" #include "stdio.asm"
.equ MMAP_START 0xd800 .equ MMAP_START 0xd800
.equ MMAP_LEN RAMEND-MMAP_START
#include "mmap.asm" #include "mmap.asm"
.equ BLOCKDEV_RAMSTART STDIO_RAMEND .equ BLOCKDEV_RAMSTART STDIO_RAMEND
@ -94,16 +95,19 @@ init:
inc hl inc hl
ld a, 'S' ld a, 'S'
ld (hl), a ld (hl), a
call fsInit
xor a
call blkSel
call kbdInit
call vdpInit
ld hl, kbdGetC ld hl, kbdGetC
ld de, vdpPutC ld de, vdpPutC
call stdioInit call stdioInit
call fsInit
xor a
ld de, BLOCKDEV_SEL
call blkSel
call fsOn
call kbdInit
call vdpInit
call shellInit call shellInit
jp shellLoop jp shellLoop