‹ BackHN Continuity

Thread

Z80 REPL (2018)

161 points · 25 comments · adunk

  1. flyinghamster · · focus · HN ↗
    The one thing I lamented about the Apple II Plus (vs. the original with Integer BASIC) was that to make room for autostart, they had to rip out the mini-assembler in the Monitor ROM. That was the closest thing I ever saw to an assembly-language REPL before this. At least they were able to keep the disassembler.
    1. boomlinde · · focus · HN ↗
      It's common in the C64 world to use freezer cartridges that allow you to interrupt normal operation and invoke a monitor program. These typically include rudimentary assemblers and disassemblers as well. Fun and useful for patching and reverse engineering!
      1. boomlinde · · focus · HN ↗
        Btw, I&#x27;ve only had a rough idea of how these are actually implemented, non-maskable interrupt something-something, and never knew how they make sure that the interrupt vector points to some persistent routine that can invoke the monitor. I found this great article explaining at least how The Final Cartridge 3 does it (in the first two sections): <a href="https:&#x2F;&#x2F;www.pagetable.com&#x2F;282" rel="nofollow">https:&#x2F;&#x2F;www.pagetable.com&#x2F;282
      2. Zeetah · · focus · HN ↗
        The Atari 8-bit computers could have a similar capability by using a product called Omnimon. Great way to look inside programs.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.