Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
702B

  1. ; *** Requirements ***
  2. ; BLOCKDEV_SIZE
  3. ; FS_HANDLE_SIZE
  4. ; _blkGetB
  5. ; _blkPutB
  6. ; _blkSeek
  7. ; _blkTell
  8. ; fsFindFN
  9. ; fsOpen
  10. ; fsGetB
  11. ; fsPutB
  12. ; fsSetSize
  13. ; printstr
  14. ; printcrlf
  15. ; stdioReadLine
  16. ; stdioPutC
  17. ;
  18. .inc "user.h"
  19. ; *** Overridable consts ***
  20. ; Maximum number of lines allowed in the buffer.
  21. .equ ED_BUF_MAXLINES 0x800
  22. ; Size of our scratchpad
  23. .equ ED_BUF_PADMAXLEN 0x1000
  24. ; ******
  25. .inc "err.h"
  26. .inc "fs.h"
  27. .inc "blkdev.h"
  28. jp edMain
  29. .inc "core.asm"
  30. .inc "lib/util.asm"
  31. .inc "lib/parse.asm"
  32. .equ IO_RAMSTART USER_RAMSTART
  33. .inc "ed/io.asm"
  34. .equ BUF_RAMSTART IO_RAMEND
  35. .inc "ed/buf.asm"
  36. .equ CMD_RAMSTART BUF_RAMEND
  37. .inc "ed/cmd.asm"
  38. .equ ED_RAMSTART CMD_RAMEND
  39. .inc "ed/main.asm"
  40. USER_RAMSTART: