Commit Graph
2 Commits
Author SHA1 Message Date
brad ArantandClaude Opus 5.5 eb72d85834 BASIC line editor: cursor keys, Home/End, Delete, and Right to recall a line
Typing a line number and pressing Right brings that program line up to
edit. Left/Right move, Home/End (Ctrl-A/Ctrl-E) jump, typing inserts,
Backspace and Delete remove, Enter takes the whole line; long lines wrap.
To fit the ROM, the date code is smaller and SDCC gets more allocator
effort; build.sh now fails if the code runs past 8000h. basic/test-edit.py
checks the editor in the emulator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 07:37:28 -08:00
brad ArantandClaude Opus 5.5 59d5e617f2 Z-80 computer with Dartmouth-style BASIC as the terminal's console
SW15 switches the terminal from the PC's serial line to a Z-80 running at
90 MHz from its own clock, with 64 KB of block RAM preloaded with BASIC.

- rtl/z80_cpu.v: Z-80 built for speed (one clock per memory access, next
  byte read during decode), full documented instruction set plus the
  common undocumented forms; no interrupts.
- rtl/z80_system.v: RAM, console/timer/7-segment ports, toggle handshakes
  to the terminal clock.
- basic/: BASIC interpreter in C for SDCC, start-up code, prebuilt image.
- tools/z80emu.py, tools/cputest.py, scripts/cpusim.sh: reference emulator
  and random tests comparing the CPU after every instruction.
- SW14 feeds the PC's UART into the Z-80 for pasting programs; BTND
  resets the Z-80 only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:25:41 -08:00