Page 1 of 1

10 lines for geeks

PostPosted: Mon Oct 20, 2014 2:49 pm
by Ashleigh
There are only 10 kinds of people - those who understand BINARY and those who don't.

And your average Binary family consists of 111 people - father, mother and two children. <<t

10 + 10 = 111

Re: 10 lines for geeks

PostPosted: Mon Oct 20, 2014 3:39 pm
by Fozzer
Binary!.....Blimey!.... :o ...!

That takes me back a bit, to my old 1982 Sinclair 48k Spectrum Computer programming days, using Zilog Z80 Machine Code, and BASIC Interpreters!.... :D ...!

http://en.wikipedia.org/wiki/Zilog_Z80

Happy days!...(still doing it!).... :dance: ...!

Paul....Bedroom Programmer!.... :mrgreen: ...!

Re: 10 lines for geeks

PostPosted: Mon Oct 20, 2014 9:16 pm
by Hawkeye07
Ashleigh wrote:There are only 10 kinds of people - those who understand BINARY and those who don't.

And your average Binary family consists of 111 people - father, mother and two children. <<t

10 + 10 = 111


Isn't 10 + 10 = 100?

8 4 2 1
0 1 0 0

I'm sooo confused??!! I just got guzintas figured out and now this. :think:

Hawkeye

Re: 10 lines for geeks

PostPosted: Tue Oct 21, 2014 3:01 am
by Fozzer
Alternatively......

1000 org 1000h ;Origin at 1000h
1000 memcpy public
1000 78 loop ld a,b ;Test BC,
1001 B1 or c ;If BC = 0,
1002 C8 retz ;Return
1003 1A ld a,(de) ;Load A from (DE)
1004 77 ld (hl),a ;Store A into (HL)
1005 13 inc de ;Increment DE
1006 23 inc hl ;Increment HL
1007 0B dec bc ;Decrement BC
1008 C3 00 10 jp loop ;Repeat the loop
100B end


The answer will be...

A Lemon!.... :dance: ...!

Paul.... :mrgreen: ...!

Re: 10 lines for geeks

PostPosted: Tue Oct 21, 2014 8:58 am
by Hawkeye07
Ma!!!! Fozzer's talking in code again, make him stop!!! :naughty:



Hawkeye

Re: 10 lines for geeks

PostPosted: Tue Oct 21, 2014 10:05 am
by Fozzer
Hawkeye07 wrote:Ma!!!! Fozzer's talking in code again, make him stop!!! :naughty:



Hawkeye


10 FOR i = 1 TO 5
20 PRINT AT 10,15; "HA"
30 CLS
40 NEXT i
50 PAUSE 10
50 PRINT; "Ma, Hawk wont let me play with his skateboard"
60 FLASH 1
70 PRINT; "Tell him to share!"
80 FLASH 0
90 PRINT at 10,15; PAPER 5, INK 2; BRIGHT 1; "FOZZER HAS SPOKEN!"


PAUL....Sinclair BASIC reveals all.... :lol: ... :lol: ...!

Re: 10 lines for geeks

PostPosted: Tue Oct 21, 2014 1:01 pm
by Hawkeye07
10 FOR i = 1 TO 5
20 PRINT AT 10,15; "HA YOURSELF"
30 CLS
40 NEXT i
50 PAUSE 10
50 PRINT; "Fine!"
60 FLASH 1
70 PRINT; "But tell him to stop talking in code.!"
80 FLASH 0
90 PRINT at 10,15; PAPER 5, INK 2; BRIGHT 1; "I'm telling!" :lol: :lol:

Image

Hawkeye

Re: 10 lines for geeks

PostPosted: Tue Oct 21, 2014 2:32 pm
by Fozzer
.... :lol: ... :lol: ... :lol: ...!

Well done Hawk!..... :D ...!

I still enjoy programming my real Sinclair 48k Spectrum computers in both Machine Code and BASIC...!
...also with my "Spectaculator", PC Spectrum Emulator...>>> http://www.spectaculator.com/ ....

....for all those nostalgic, exciting, bedroom programming days in the 1980's.... :dance: ...!

Sinclair BASIC: A magic language!

http://en.wikipedia.org/wiki/Sinclair_BASIC

Paul....PRINT AT 10,15; "Sinclair Rules!"..... :lol: ...!

Re: 10 lines for geeks

PostPosted: Tue Oct 21, 2014 4:17 pm
by Hawkeye07
I'm glad to see you got a good laugh out of it Paul. Keep on smiling! :dance:


Hawkeye

P.S. Can I have my skateboard back now?

Re: 10 lines for geeks

PostPosted: Tue Oct 21, 2014 5:55 pm
by Steve M
Image
:geek: ^-^

Re: 10 lines for geeks

PostPosted: Thu Oct 23, 2014 1:51 pm
by Fozzer
Steve M wrote:Image
:geek: ^-^


Can you remember where you put the memory box, Steve?.... :? ... :roll: ....!

Paul....Sing: "Thanks for the Memory...".... ;) ....!

Re: 10 lines for geeks

PostPosted: Thu Oct 23, 2014 6:22 pm
by Steve M
:lol: Good point Fozz. That's thinking outside the box.. :handgestures-thumbup:

Re: 10 lines for geeks

PostPosted: Tue Oct 28, 2014 4:29 am
by Fozzer
There is hope for we Forgetful Old Fogies yet, Steve!...>>>

http://www.nzherald.co.nz/lifestyle/new ... d=11348779

Quote:
"Scientists believe that flavanols, the antioxidants inside cocoa beans, can give people in their sixties the memory of a "typical 30- or 40-year-old".
End quote.

I want to be 40 again...please!..... :pray: ....!

A nice, hot cup of Cocoa before retiring to bed each night.... :dance: ...!

(Mr. Cadbury will be pleased with the news!)

Paul...now where did I put the tin of Cocoa?....and where is my bed?.... :? ....!

.... :lol: ... :lol: ...!