mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 19: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:
parent
4f6c230dc8
commit
13028d431e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user