pouët.net

Go to bottom
THREAD by Ribbon [web]
[nfo]
screenshot added by p01 on 2013-12-19 22:45:48
platform :
type :
release date : december 2013
  • 16
  • 2
  • 0
popularity : 57%
 57%
  • 0.89
alltime top: #10485
added on the 2013-12-19 22:45:48 by p01 p01

popularity helper

increase the popularity of this prod by spreading this URL:

or via: facebook twitter pinterest tumblr bluesky threads

comments

15 bytes implementation of the famous C64 BASIC one-liner program:

Code:10 PRINT CHR$(205.5+RND(1)); : GOTO 10


My implementation is trivial. There must be a few bytes to gain.
Come on! THREAD OVER reached 12 bytes on C64
added on the 2013-12-19 22:46:03 by p01 p01
why not :)
rulez added on the 2013-12-20 05:58:39 by sensenstahl sensenstahl
wow nice trick
rulez added on the 2013-12-20 09:49:53 by spritus spritus
Using int 0x29 to output
and something like
;randomly set c flag
salc
and al, '/'^'\'
xor al, '/'
is a way to save some bytes.
But isn't it better to make more interesting labyrinth?
Square or or hexahedral or so :)
rulez added on the 2013-12-20 09:54:51 by frag frag
There's already a 10 byte version, check the link in the comment section of Thread Over :)
added on the 2013-12-20 09:59:06 by britelite britelite
Fuck yeah
rulez added on the 2013-12-20 10:27:45 by kenet kenet
Cooool
rulez added on the 2013-12-20 10:53:23 by Optimus Optimus
Great. What about doing it 13h mode ? (will require a few more bytes, but not that much)
rulez added on the 2013-12-20 13:15:31 by Tigrou Tigrou
Wow brilliant!

britelite: Oh thanks! Why didn't they submit it to Pouet ? I think it's totally worth it and legit. So cool ideas.

I didn't want to go the scasb road: It saves 2-3 bytes but kills a lot of the randomness. In my mind my 15 bytes version was more like the 12 or 13 bytes versions of the C64.


frag: Thanks! My x86-fu is super rusty; my little memo of the x86 instruction set doesn't include the "undocumented" instructions or interrupts like salc and int 29h. Do you have an online resource I could use ?

I was looking for an inst like salc, but my memo only had setc, to do something like
Code:and al,'\'-'/' add al,'/'
of the 10 bytes version by Peter Ferrie.

You guys rock!
added on the 2013-12-20 14:20:41 by p01 p01
Where brilliant means: Wow! That's exactly what I was hoping for: To learn a few tricks and see more takes on this seemingly simple program.
added on the 2013-12-20 14:22:02 by p01 p01
ANd AL,'\'-'/'

aaa
rulez added on the 2013-12-20 22:06:37 by Pirx Pirx
I approve this prod/thread.
rulez added on the 2013-12-21 04:46:10 by Baudsurfer Baudsurfer
nice christmas gift!
rulez added on the 2013-12-21 14:14:33 by rudi rudi
sweet! back then, coded a "real" textlabyrinth, with backtracking, in Pascal i guess. Maybe i do a asmrerelease ... or simply dump the code here if i'm too lazy ^^
rulez added on the 2013-12-25 03:10:06 by HellMood HellMood
=D
rulez added on the 2014-01-04 23:24:49 by T$ T$
nice one!
rulez added on the 2014-01-24 18:43:36 by rez rez
My PowerShell implementation in 52 bytes:
Code:while(1){$l=" ";2..119|%{$l+="/","\"|get-random};$l}

Assuming you have a 120 char wide window (thats default).
rulez added on the 2014-02-19 02:22:04 by Mr.Eeh Mr.Eeh
was it Random numbers thread?))
rulez added on the 2014-02-19 06:00:00 by g0blinish g0blinish
Clever and nice :)
rulez added on the 2014-04-12 13:37:16 by jespa jespa
cool thread

lists containing this prod

submit changes

if this prod is a fake, some info is false or the download link is broken,

do not post about it in the comments, it will get lost.

instead, click here !

[previous edits]

add a comment

Go to top