Author Topic: 11 bytes maze generator  (Read 2480 times)

0 Members and 1 Guest are viewing this topic.

Offline ssg

  • Supporter
  • CPC664
  • *
  • Posts: 76
  • Country: tr
  • NOP
  • Liked: 25
  • Likes Given: 34
11 bytes maze generator
« on: 00:09, 25 March 15 »
Hello folks :) It's been a while.

Here is my take on "10 PRINT"-style maze generators (11 bytes of machine code):

Source code is at:

ssg/mazecpc ยท GitHub

EDIT: Zip I attached was broken, download here instead: https://github.com/ssg/mazecpc/releases/download/1/maze.zip
« Last Edit: 14:06, 25 March 15 by ssg »

Offline GFXOR

  • CPC664
  • ***
  • Posts: 55
  • Country: 00
    • Les Sucres en Morceaux
  • Liked: 63
  • Likes Given: 7
Re: 11 bytes maze generator
« Reply #1 on: 14:12, 11 November 15 »
I guess it is the shortest demo on the CPC ! :)
Interesting effect.
Supersly from the Les sucres en morceaux

Offline Zoe Robinson

  • Supporter
  • 6128 Plus
  • *
  • Posts: 708
  • Country: gb
  • I become a minor egg
    • ZoeRobinson.com
  • Liked: 748
  • Likes Given: 729
Re: 11 bytes maze generator
« Reply #2 on: 14:15, 11 November 15 »
This is pretty sweet, especially given the size of the code. Well done! :D

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.336
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2283
  • Likes Given: 3478
Re: 11 bytes maze generator
« Reply #3 on: 15:45, 11 November 15 »
crazy!  :)
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Urusergi

  • CPC6128
  • ****
  • Posts: 248
  • Country: es
  • Liked: 498
  • Likes Given: 1786
Re: 11 bytes maze generator
« Reply #4 on: 18:13, 11 November 15 »
An arithmetic view, with the same size and speed  ;D

Code: [Select]
org         &4000
char        equ &cd
TXT_WR_CHAR equ &bb5d

run $

.loop: 
  ld    a, r
  rra
  sbc a
  add   char 
  call  TXT_WR_CHAR 
  jr    loop

Offline reidrac

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.013
  • Country: gb
  • Trying to gamedev!
    • index.php?action=treasury
    • usebox.net
  • Liked: 1866
  • Likes Given: 1020
Re: 11 bytes maze generator
« Reply #5 on: 18:40, 11 November 15 »
Very nice!
Released The Return of Traxtor, Golden Tail, Magica, The Dawn of Kernel, Kitsune`s Curse and Brick Rick for the CPC.

If you like my games and want to show some appreciation, you can always buy me a coffee.

Offline Kris

  • 6128 Plus
  • ******
  • Posts: 589
  • Country: fr
  • Team Impact
  • Liked: 235
  • Likes Given: 906
Re: 11 bytes maze generator
« Reply #6 on: 15:11, 12 November 15 »
Interesting effect ;)

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 4.010
  • Country: fr
    • ?area=showdonations;u=4
  • Liked: 3109
  • Likes Given: 1888
Re: 11 bytes maze generator
« Reply #7 on: 16:09, 12 November 15 »
Is the maze effect hidden on the Firmware 3.15 using the |EE RSX ?
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)