All Projects → ssg → mazecpc

ssg / mazecpc

Licence: MIT License
Amstrad CPC Edition of "10 PRINT" maze generator challenge (14 bytes)

Programming Languages

assembly
5116 projects

Projects that are alternatives of or similar to mazecpc

RetroXRBWallet
No description or website provided.
Stars: ✭ 13 (-7.14%)
Mutual labels:  retro
rust rewrite
A programming environment that aims to help people learn how to program in JavaScript, while giving them a tour on how old computers and their limitations used to be.
Stars: ✭ 26 (+85.71%)
Mutual labels:  retro
FF1Randomizer
A randomizer for Final Fantasy 1 on the NES.
Stars: ✭ 72 (+414.29%)
Mutual labels:  retro
neu
New personal website design inspired by the creativity of the 90s. All code hand-written, no generators.
Stars: ✭ 38 (+171.43%)
Mutual labels:  retro
retro-home
Retro Home; your home for retro-gaming 🕹
Stars: ✭ 76 (+442.86%)
Mutual labels:  retro
jtopl
Verilog module compatible with Yamaha OPL chips
Stars: ✭ 23 (+64.29%)
Mutual labels:  retro
AGD-Studio
An integrated development environment for AGD
Stars: ✭ 39 (+178.57%)
Mutual labels:  retro
tuile
Tuile (french for tile) is a 2D graphics engine inspired from old hardware and based on layers, tiles sets, tile maps and sprites. Its scanline rendering pipeline makes it perfect for raster effects.
Stars: ✭ 19 (+35.71%)
Mutual labels:  retro
es-theme-Super-Retroboy
Super Retroboy Theme for the RetroFlag GPi Case and Small Screens 4:3 Aspect
Stars: ✭ 45 (+221.43%)
Mutual labels:  retro
FCEUX-Lua-Script-Collection
Lua scripts for FCEUX (an NES emulator). Multiple games including River City Ransom, Battle Kid
Stars: ✭ 20 (+42.86%)
Mutual labels:  retro
retro-ngon
A well-featured retro-oriented 3D software renderer for the HTML5 canvas.
Stars: ✭ 30 (+114.29%)
Mutual labels:  retro
dftools
Tools for Star Wars: Dark Forces assets.
Stars: ✭ 18 (+28.57%)
Mutual labels:  retro
hoard-of-bitfonts
turns out I like bitmap fonts
Stars: ✭ 811 (+5692.86%)
Mutual labels:  retro
retro.derpyenterprises.org
Old website
Stars: ✭ 13 (-7.14%)
Mutual labels:  retro
anise-cheezball-rising
an exciting new adventure for the Game Boy Color
Stars: ✭ 72 (+414.29%)
Mutual labels:  retro
cbmtapepi
Use a Raspberry Pi as fast mass storage solution for your Commodore 8-bit computer using just the datassette port.
Stars: ✭ 41 (+192.86%)
Mutual labels:  retro
retro12
This repo is retired. See http://forthworks.com:8000/
Stars: ✭ 18 (+28.57%)
Mutual labels:  retro
maze-generator
A real-time JavaScript maze generator using the depth-first search algorithm
Stars: ✭ 13 (-7.14%)
Mutual labels:  maze-generator
WinHub-98
A modern-looking userstyle for GitHub
Stars: ✭ 59 (+321.43%)
Mutual labels:  retro
retro
A self-hostable web application designed for remote retrospectives
Stars: ✭ 21 (+50%)
Mutual labels:  retro

mazecpc 1.1

Maze CPC is a maze generator in 14 bytes for Amstrad CPC series 8-bit computers.

screen shot

history

There is a book called "10 PRINT CHR$ (205.5 + RND (1)); : GOTO 10". Yes that's the title. It's about a small code piece in BASIC language that generates a maze. An interesting read for programmers. It delves into attempts to create it in assembly as small as possible, which seems to have become a trend in Commodore 64 demoscene.

Recently I saw a blog post from Trixter who tried to port it to PC. It eventually got down to 10 bytes.

Tonight I wanted to give it a shot on Amstrad CPC and here it is, 11 bytes14-bytes maze generator, created in couple of hours.

technical notes

I found it very hard to produce a series of "random bits" on a Z80 CPU. There is R register which increases every cycle but naturally deterministic in loops. To keep the code short, however, I relied on it and interrupts to introduce a slight entropy. I'm sure there is room for improvement. Update Dec 29th, 2018: I made the random generator much better by sacrificing 3 more bytes. It's a 14-byte maze generator now.

SSG / arteffect, March 24th 2015

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].