Less than 10 bytes of code on an Apple II: ] CALL -151 * 300: AD 30 CO 20 ED FD 4C 00 03 * 300G Enjoy! For bonus points, get this down to 8 bytes.
What is the coolest thing you can do in ten lines of code?
11–20 of 40 posts
Re: What is the coolest thing you can do in ten lines of code?
#12Is 30 close enough to 10? I got a job with 30 lines of code appended to my resume, with a screenshot of the resultant output. Perhaps the first two pages had something to do with it but I was told that the third page was what stood out. This was a sysadmin position, the code includes bash, sed, awk, grep, tcpdump, netcat and gnuplot. Hint to anyone who tries this sort of resume stunt: You WILL be asked what the code…
Re: What is the coolest thing you can do in ten lines of code?
#13 CLI ; Disable interrupts
HLT ; Halt CPU until next interrupt
This hung the machine dead.Re: What is the coolest thing you can do in ten lines of code?
#14Back in real-mode x86 times the coolest thing could've been done in 2 lines CLI ; Disable interrupts HLT ; Halt CPU until next interrupt This hung the machine dead.
Re: What is the coolest thing you can do in ten lines of code?
#15Less than 10 bytes of code on an Apple II: ] CALL -151 * 300: AD 30 CO 20 ED FD 4C 00 03 * 300G Enjoy! For bonus points, get this down to 8 bytes.
Re: What is the coolest thing you can do in ten lines of code?
#16Back in real-mode x86 times the coolest thing could've been done in 2 lines CLI ; Disable interrupts HLT ; Halt CPU until next interrupt This hung the machine dead.
Re: What is the coolest thing you can do in ten lines of code?
#17http://esoteric.sange.fi/brainfuck/utils/mandelbrot/mandelbr...
Re: What is the coolest thing you can do in ten lines of code?
#18 : z^2 2dup z* ;
: layer push push z^2 pop pop 2dup push push z+ pop pop ;
: many layer layer layer layer layer layer layer layer layer layer ;
: len dup * swap dup * + ;
: mant y 0.7 - 3 * x 0.5 - 3 * many drop drop len dup 1
(http://www.forthsalon.appspot.com/haiku-view/agpmb3J0aHNhbG9...)Re: What is the coolest thing you can do in ten lines of code?
#19Less than 10 bytes of code on an Apple II: ] CALL -151 * 300: AD 30 CO 20 ED FD 4C 00 03 * 300G Enjoy! For bonus points, get this down to 8 bytes.
I used to do that kind of hacking in the 80's. I recognized the CALL-151. I have an old Apple II+ in the other room I'm tempted to try firing up just to solve this mystery.