Close

Implementing the Video Mode

A project log for Up to Eleven

A 2048 game which runs on Midway 8080 hardware

louis-paulLouis Paul 10/08/2025 at 23:410 Comments

I'll describe the development progress of the 2048 game on Midway 8080 hardware. For the video mode I'm using 8-bit tile-based structure with no scrolling and no sprites. I added 8x8 basic font with the letters, numbers and special symbols. So with the 8x8 tile size and the 260x224 / 256x224 video resolution, I'll have 32x28 text resolution to draw in the screen.

I created the 1 player mode screen and the game screen with the drawing of score and grid. I also added the input action of 1 player button and the detection of the arrows on the game screen.

The zasm assembler I'm using supports shebang on first line (#!). Here's what I use to assemble the 8080 code (with the Z80 syntax):

#!/usr/bin/zasm --8080 --reqcolon -l0 -o binary.rom

After assembling the code I use this command to split the generated binary into two files:

split -b 2048 binary.rom maze-

Then I create a symbolic link of the file maze-aa to point to maze.h and the file maze-ab to point to maze.g, because MAME expects theses filenames to execute the ROMs.

Showing the text video mode and screen states

PS: I had LASIK eye surgery a week ago, so the project logs can appear less enthusiastic than usual.

Discussions