About
Every program in the site's Einstein 256 Primer, as z80asm source, so you can open, build and run them without typing them in. It follows on from Z80 Assembly for the Tatung Einstein.
Using Them
Unzip the folder and open it in VS Code with the Tatung Einstein Development extension, version 0.6.0 or later. Choose the Einstein 256 with Einstein: Select Machine, open a listing and press Run. MAME needs the 256's ROM, einst256.zip, on its ROM path, as the primer's Setting Up section explains.
One .asm file per listing, named after its section. Two are shared: frame.asm, the frame interrupt, and s15-lineint.asm, the line interrupt, which later programs INCLUDE, so keep them in the same folder.
Files in the Package
| File | What It Is |
|---|---|
frame.asm | The frame interrupt, which later programs INCLUDE |
s02-hello.asm | S2, Setting Up |
s03-hertz.asm | S3, Bringing TC-01 Code Across |
s04-new-ports.asm | S4, The 256's Video Chip |
s05-level-store.asm | S5, 192K of Video Memory |
s05-screens.asm | S5, 192K of Video Memory |
s06-colours.asm | S6, Colours of Your Own |
s07-heartbeat.asm | S7, A Real Heartbeat |
s08-invaders.asm | S8, Eight Sprites a Line |
s09-ship.asm | S9, Sprites in Many Colours |
s10-joystick.asm | S10, Joysticks |
s11-night-sky.asm | S11, A Bitmap of Your Own |
s12-256-colours.asm | S12, More Pixels, More Colours |
s12-mos-graphics-6.asm | S12, More Pixels, More Colours |
s13-flicker-free.asm | S13, Flicker-Free |
s14-hscroll.asm | S14, Scrolling the Screen |
s14-scroll.asm | S14, Scrolling the Screen |
s14-shake.asm | S14, Scrolling the Screen |
s15-colour-split.asm | S15, Splitting the Screen |
s15-lineint.asm | S15, the line interrupt, which later programs INCLUDE |
s15-split-screen.asm | S15, Splitting the Screen |
s16-drawing.asm | S16, The Blitter: Fill, Line, Point |
s17-copying.asm | S17, The Blitter: Copying |
s18-menu.asm | S18, Eighty Columns |
s19-river-run.asm | S19, River Run: the game the primer builds |
Real Hardware
The listings were written for MAME's Einstein 256. Nothing on this page has been tried on a real machine.