Close

Last Days for the End

A project log for Up to Eleven

A 2048 game which runs on Midway 8080 hardware

louis-paulLouis Paul 10/30/2025 at 04:080 Comments

The RC2025/10 is near the end, I'm still working on the 2048 game. I managed to implement the tile shifting when you press an arrow key. I still need to implement the tile merging and score counting.

For the tile shifting, I created one subroutine to shift the rows of the grid for left and right arrow, and another subroutine to shift the columns of the grid for up and down arrow. I also implemented a timer when the game is over, to return to title screen to insert a coin again.

One interesting thing of the 8080 and Z80, is that they have conditional subroutine call in the form of CALL f, nnnn, and conditional return in the form of RET condition. That means you can have more efficient control flow in the code.

The zasm assembler documentation is being helpful, I'm using the data segment to store the variables on RAM, and the code segment to separate the code in two origin addresses. Here's the link for it:

https://k1.spdns.de/Develop/Projects/zasm/Documentation/

On November 1st I plan to write another project log detailing the project results, what I learned about it, what were my expectations, and also publish the source code and instructions on GitHub.

Here's another video showing the random tile spawing and tile shifting functionality:

Discussions