2019-11-15 01:55:31 +11:00
|
|
|
; *** Requirements ***
|
|
|
|
; BLOCKDEV_SIZE
|
|
|
|
; FS_HANDLE_SIZE
|
|
|
|
; _blkGetB
|
|
|
|
; _blkPutB
|
|
|
|
; _blkSeek
|
|
|
|
; _blkTell
|
|
|
|
; fsFindFN
|
|
|
|
; fsOpen
|
|
|
|
; fsGetB
|
|
|
|
; fsPutB
|
|
|
|
; fsSetSize
|
|
|
|
; printstr
|
|
|
|
; printcrlf
|
|
|
|
; stdioReadLine
|
|
|
|
; stdioPutC
|
|
|
|
;
|
2019-10-07 05:32:23 +11:00
|
|
|
.inc "user.h"
|
2019-07-24 06:13:52 +10: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-07 05:32:23 +11:00
|
|
|
.inc "err.h"
|
2019-07-13 23:57:37 +10:00
|
|
|
jp edMain
|
|
|
|
|
2019-11-15 01:55:31 +11:00
|
|
|
.inc "core.asm"
|
2019-10-07 05:32:23 +11:00
|
|
|
.inc "lib/util.asm"
|
|
|
|
.inc "lib/parse.asm"
|
2019-07-14 01:29:06 +10:00
|
|
|
.equ IO_RAMSTART USER_RAMSTART
|
2019-10-07 05:32:23 +11:00
|
|
|
.inc "ed/io.asm"
|
2019-07-14 04:01:20 +10:00
|
|
|
.equ BUF_RAMSTART IO_RAMEND
|
2019-10-07 05:32:23 +11:00
|
|
|
.inc "ed/buf.asm"
|
2019-07-14 11:08:16 +10:00
|
|
|
.equ CMD_RAMSTART BUF_RAMEND
|
2019-10-07 05:32:23 +11:00
|
|
|
.inc "ed/cmd.asm"
|
2019-07-14 11:08:16 +10:00
|
|
|
.equ ED_RAMSTART CMD_RAMEND
|
2019-10-07 05:32:23 +11:00
|
|
|
.inc "ed/main.asm"
|
2019-11-16 02:33:13 +11:00
|
|
|
USER_RAMSTART:
|