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.

34 lines
682B

  1. ; classic RC2014 setup (8K ROM + 32K RAM) and a stock Serial I/O module
  2. ; The RAM module is selected on A15, so it has the range 0x8000-0xffff
  3. RAMSTART .equ 0x8000
  4. RAMEND .equ 0xffff
  5. ACIA_CTL .equ 0x80 ; Control and status. RS off.
  6. ACIA_IO .equ 0x81 ; Transmit. RS on.
  7. jr init
  8. ; interrupt hook
  9. .fill 0x38-$
  10. jp aciaInt
  11. init:
  12. di
  13. ; setup stack
  14. ld hl, RAMEND
  15. ld sp, hl
  16. im 1
  17. call aciaInit
  18. call shellInit
  19. ei
  20. jp shellLoop
  21. #include "core.asm"
  22. ACIA_RAMSTART .equ RAMSTART
  23. #include "acia.asm"
  24. SHELL_RAMSTART .equ ACIA_RAMEND
  25. .define SHELL_GETC call aciaGetC
  26. .define SHELL_PUTC call aciaPutC
  27. .define SHELL_IO_GETC call aciaGetC
  28. SHELL_EXTRA_CMD_COUNT .equ 0
  29. #include "shell.asm"