CPCWiki forum

General Category => Programming => Topic started by: EgoTrip on 17:33, 22 December 12

Title: The REAL Never-Ending BASIC program
Post by: EgoTrip on 17:33, 22 December 12
Based on this topic: The never ending BASIC program (http://www.cpcwiki.eu/forum/off-topic/the-never-ending-basic-program/new/#new)


Maybe we should attempt a real, serious program that doesn't go around in circles finding ways to restart and avoid restarting the CPC.


Basically, copy the code adding a line to the existing program.


I'll start



10 MODE 0
Title: Re: The REAL Never-Ending BASIC program
Post by: mr_lou on 18:03, 22 December 12

10 MODE 0
20 SOUND 1,478,200,15:SOUND 2,440,200,15

Title: Re: The REAL Never-Ending BASIC program
Post by: Bryce on 18:30, 22 December 12

10 MODE 0
20 SOUND 1,478,200,15:SOUND 2,440,200,15
30 SYMBOL AFTER 32


Bryce.
Title: Re: The REAL Never-Ending BASIC program
Post by: Gryzor on 18:45, 22 December 12
This is actually a great idea, but how are you going to do anything with it? Programming is structured, and even using chained commands like Bryce did (yeah! my CPC just farted!) you can't do much, I suspect, unless you pre-reserve blocks of lines to jump to with a goto.

Still, curious to see what might come out of it :)

Title: Re: The REAL Never-Ending BASIC program
Post by: Bryce on 18:49, 22 December 12
Quote from: Gryzor on 18:45, 22 December 12
Programming is structured...

You've obviously never seen any of my programs :D

Bryce.
Title: Re: The REAL Never-Ending BASIC program
Post by: Gryzor on 19:01, 22 December 12
hey, if you're offering free beer (or more) to the participants, that's fine by me. Fuzzy logic FTW!
Title: Re: The REAL Never-Ending BASIC program
Post by: EgoTrip on 19:10, 22 December 12
I dunno Gryzor, you can have many single line routines going on, and it could produce a demo of sorts, with running and even playable segments, one liner programs that go on to the next when a key is pressed or something.


Give me some time and I'll come up with something.
Title: Re: The REAL Never-Ending BASIC program
Post by: Gryzor on 19:11, 22 December 12
Yeah, but that would be just a collection of one-liners, not a program.
Title: Re: The REAL Never-Ending BASIC program
Post by: EgoTrip on 19:13, 22 December 12
but it would be a program, are not programs collections of many routines?


10 MODE 0
20 SOUND 1,478,200,15:SOUND 2,440,200,15
30 SYMBOL AFTER 32
40 BORDER 7:INK 0,7:INK 1,26:PRINT"    THE  CPCWIKI":PRINT"  BASIC MEGA DEMO"
Title: Re: The REAL Never-Ending BASIC program
Post by: Gryzor on 19:15, 22 December 12
NOW you're talking :D

Title: Re: The REAL Never-Ending BASIC program
Post by: cpcitor on 12:57, 08 January 13
Quote from: EgoTrip on 19:13, 22 December 12
10 MODE 0
20 SOUND 1,478,200,15:SOUND 2,440,200,15
30 SYMBOL AFTER 32
40 BORDER 7:INK 0,7:INK 1,26:PRINT"    THE  CPCWIKI":PRINT"  BASIC MEGA DEMO"


10 MODE 0
20 SOUND 1,478,200,15:SOUND 2,440,200,15
30 SYMBOL AFTER 32
40 BORDER 7:INK 0,7:INK 1,26:PRINT"    THE  CPCWIKI":PRINT"  BASIC MEGA DEMO"
50 SOUND 57,284,200,15:SOUND 58,225,400,15:SOUND 60,190,400,15

Title: Re: The REAL Never-Ending BASIC program
Post by: Gryzor on 15:53, 08 January 13
Oh wow.
Title: Re: The REAL Never-Ending BASIC program
Post by: Bryce on 16:40, 08 January 13
Quote from: Gryzor on 15:53, 08 January 13
Oh wow.

You're easily impressed. :D

Bryce.
Title: Re: The REAL Never-Ending BASIC program
Post by: TFM on 18:26, 08 January 13
Ingenuity can be found in simple things. Everybody can do it complex  8)
Title: Re: The REAL Never-Ending BASIC program
Post by: Gryzor on 13:18, 09 January 13
Quote from: BryceQuote from: Gryzor on Yesterday at 16:53:26Oh wow.
You're easily impressed.

Bryce.
But... it bleeps! It burps! 
Title: Re: The REAL Never-Ending BASIC program
Post by: TFM on 22:49, 09 January 13
Quote from: FindYWay on 12:57, 08 January 13
10 MODE 0
20 SOUND 1,478,200,15:SOUND 2,440,200,15
30 SYMBOL AFTER 32
40 BORDER 7:INK 0,7:INK 1,26:PRINT"    THE  CPCWIKI":PRINT"  BASIC MEGA DEMO"
50 SOUND 57,284,200,15:SOUND 58,225,400,15:SOUND 60,190,400,15


10 MODE 0
20 SOUND 1,478,200,15:SOUND 2,440,200,15
30 SYMBOL AFTER 32
40 BORDER 7:INK 0,7:INK 1,26:PRINT"    THE  CPCWIKI":PRINT"  BASIC MEGA DEMO"
50 SOUND 57,284,200,15:SOUND 58,225,400,15:SOUND 60,190,400,15

70 CALL GIRL
Title: Re: The REAL Never-Ending BASIC program
Post by: Prodatron on 23:41, 09 January 13
Quote from: TFM/FS on 22:49, 09 January 13

10 MODE 0
20 SOUND 1,478,200,15:SOUND 2,440,200,15
30 SYMBOL AFTER 32
40 BORDER 7:INK 0,7:INK 1,26:PRINT"    THE  CPCWIKI":PRINT"  BASIC MEGA DEMO"
50 SOUND 57,284,200,15:SOUND 58,225,400,15:SOUND 60,190,400,15

70 CALL GIRL


10 MODE 0
20 SOUND 1,478,200,15:SOUND 2,440,200,15
30 SYMBOL AFTER 32
40 BORDER 7:INK 0,7:INK 1,26:PRINT"    THE  CPCWIKI":PRINT"  BASIC MEGA DEMO"
50 SOUND 57,284,200,15:SOUND 58,225,400,15:SOUND 60,190,400,15
60 POKE 0,&C9
70 CALL GIRL


Title: Re: The REAL Never-Ending BASIC program
Post by: AMSDOS on 11:34, 27 May 13
Quote from: Bryce on 18:49, 22 December 12
You've obviously never seen any of my programs :D

Bryce.


Is that a cry for help?  :)
Title: Re: The REAL Never-Ending BASIC program
Post by: Bryce on 11:58, 27 May 13
My programs are beyond help. It's usually the programmer who sees them that cries :D

Bryce.
Title: Re: The REAL Never-Ending BASIC program
Post by: Gryzor on 21:33, 09 June 13
Last time I programmed (.net ftw!) it took me some 20K for a really simple CLI thingy. Apparently I rediscovered a few routines on the way, and then a friend did it in 2KB. But it was a nice experience. I revisited it a couple of years later (a month ago!) and *I* cried.
Title: Re: The REAL Never-Ending BASIC program
Post by: AMSDOS on 00:34, 10 June 13
Quote from: Gryzor on 21:33, 09 June 13
Last time I programmed (.net ftw!) it took me some 20K for a really simple CLI thingy. Apparently I rediscovered a few routines on the way, and then a friend did it in 2KB. But it was a nice experience. I revisited it a couple of years later (a month ago!) and *I* cried.


Kind of feel the same way taking some 10-Liner and making it a 8k program out of it. Though that's what happens when you've got an 6k Library file strapped to it.  :D
Powered by SMFPacks Menu Editor Mod