Z80 REPL

(abagames.github.io)

50 points | by adunk 2 hours ago

4 comments

  • jottinger 2 minutes ago
    The source code for this is apparently 8 years old: https://github.com/abagames/z80-repl

    With that said, I love the idea.

  • networked 34 minutes ago
    Cool idea! The REPL needs to handle whitespace after an instruction with no operands:

      > ld c,20h
      0E 20   (7 cycles)
      > ld c,20h [<-- trailing space here]
      0E 20   (7 cycles)
      > nop
      00      (4 cycles)
      > nop [<-- trailing space here]
      unknown instruction: nop
    
    I also wish I could select from the completion list with Tab without typing more of the instruction, fish-style. I.e., you press Tab to go through completion 1, completion 2, ..., completion N, completion 1 again with Enter to confirm your pick.
  • j4cobgarby 29 minutes ago
    Really nice! Would be fun if there were a few examples that could be loaded into memory
  • Marbleferry815 17 minutes ago
    [dead]