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