Bastion Raid: isometric scrolling shooter, graphics scroll and border

Ports 35h-37h scroll the graphics layer (wrapping at 320 x 240); bit 1 of
36h hides a border (4 columns, 2 rows) where a program draws the strip
coming into view unseen. The video loads its own column/row counters from
the scroll registers each line and frame. CLS resets both. Testbench
checks scroll, wrap and border.

games/raid: an original Zaxxon-style game in C - fly over a fortress that
scrolls diagonally, climb over low walls and through doorways in tall
ones, shoot turrets, fuel tanks, radar and fighters, destroy the reactor.
The world is drawn pixel by pixel from a formula, two columns and a row a
frame (about 40% of the Z-80). test-raid.py flies the level with an
autopilot and checks the frame budget; tools/boardemu.py is now shared by
both games' tests. send-hex.py sets the date before saving.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
brad ArantandClaude Opus 5.5 committed 2026-11-29 10:00:25 -08:00
1 parent 743071cff3
commit 62d0883a7f
19 files changed
+1807 -163

No files matched your search

+4
View File
@@ -27,6 +27,7 @@ ap.add_argument("file", help="Intel HEX file")
ap.add_argument("--save", metavar="NAME", help="save the loaded bytes in flash under this name")
ap.add_argument("--port", default="/dev/ttyUSB1")
ap.add_argument("--baud", type=int, default=115200, choices=sorted(BAUDS))
ap.add_argument("--no-date", action="store_true", help="don't set BASIC's clock (which dates the file)")
a = ap.parse_args()
records = [l.strip() for l in open(a.file) if l.startswith(":")]
@@ -77,6 +78,9 @@ def wait_for(pattern, timeout=10.0):
PROMPT = rb"\x1b\[30;1H> .*?\x1b\[\?25h"
send("\r")
time.sleep(0.3)
if not a.no_date: # the file gets the PC's date
send(time.strftime('DATE "%Y-%m-%d %H:%M:%S"\r'))
wait_for(rb"READY\r\n")
send("MONITOR\r")
wait_for(rb"Z-80 MONITOR")
wait_for(PROMPT)