1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-17 10:28:06 +11:00
collapseos/apps/ed/glue.asm

46 lines
721 B
NASM
Raw Normal View History

; *** Requirements ***
; BLOCKDEV_SIZE
; FS_HANDLE_SIZE
; _blkGetB
; _blkPutB
; _blkSeek
; _blkTell
; fsFindFN
; fsOpen
; fsGetB
; fsPutB
; fsSetSize
; printstr
; printcrlf
; stdioReadLine
; stdioPutC
;
.inc "user.h"
; *** Overridable consts ***
; Maximum number of lines allowed in the buffer.
.equ ED_BUF_MAXLINES 0x800
; Size of our scratchpad
.equ ED_BUF_PADMAXLEN 0x1000
; ******
.inc "err.h"
.inc "fs.h"
.inc "blkdev.h"
2019-07-13 23:57:37 +10:00
jp edMain
.inc "core.asm"
.inc "lib/util.asm"
.inc "lib/parse.asm"
.inc "ed/util.asm"
2019-07-14 01:29:06 +10:00
.equ IO_RAMSTART USER_RAMSTART
.inc "ed/io.asm"
2019-07-14 04:01:20 +10:00
.equ BUF_RAMSTART IO_RAMEND
.inc "ed/buf.asm"
2019-07-14 11:08:16 +10:00
.equ CMD_RAMSTART BUF_RAMEND
.inc "ed/cmd.asm"
2019-07-14 11:08:16 +10:00
.equ ED_RAMSTART CMD_RAMEND
.inc "ed/main.asm"
USER_RAMSTART: