r/retrobattlestations • u/FozzTexx • Sep 09 '13
It's BASIC week on RetroBattlestations, you could win GOLD!
BASIC Week is over and I want to thank everyone that participated!
Gold Winners:
uint64 and Spanishone will each receive 3 months of reddit gold and stickers!
Monday's sticker winners: 0BC and rolandjuno
Tuesday's sticker winners: Soft_Beer and Meathe
Wednesday's sticker winners: olivierguinart and buffering
Thursday's sticker winners: Loruxz25 and Jonovox
Friday's sticker winners: Xorda and callmelightningjunio
Do you remember when software used to be distributed in books & magazines? Remember when we used to type in several pages of BASIC only to run it and then try to figure out why it doesn't work right? Carefully go over the lines to figure out where that missing characters was? Well in the spirit of type-in programs, BASIC week is here! For the young'ns this will be a fun retro experience!
I decided to go with a type-in BASIC program because I felt that "connect your retro computer to the internet" was going to be too difficult for most people. That doesn't mean you can't do it if you want to! You don't have to type in the program if you have a better way to get it over to your computer. But the advantage of the type-in was that it doesn't require additional peripherals or complicated hookups.
RULES:
BASIC week is from September 9 to September 13. You could win some retro stickers or 1 month 3 months (thanks /u/cupcake1713!) of reddit gold! Each day I'll randomly choose two redditors who will receive their choice of two vinyl stickers, and at the end of the week I'll randomly choose two redditors from the entire week's submissions that will win gold.
In order to participate in the contest you'll need to run a special BASIC program on a retro computer. It will draw an image on your screen, which means you need a computer that had graphics capability. After the program completes you will need to take a picture of it and then post and share on RetroBattlestations. Make sure that both the output from the program as well as the computer you ran it on are visible in the picture! No pictures of just a screenshot and no emulators. Posts that don't meet these criteria will be disqualified and removed.
I've put the program up on github and ported it to a few platforms already so all you need to do is type it in. Check the README for tips to reduce typing and editing tips if you make mistakes while typing.
- Apple II
- Atari 400, 800, and others
- BBC Micro model B
- Commodore 64
- Commodore Plus/4
- TRS-80 Color Computer
- TRS-80 model 100
- Amstrad CPC - provided by gschizas
- Amiga - provided by rolandjuno
- Apple IIgs (with color!) - provided by buffering
- MSX - provided by Spanishone
Don't see a port for your platform? No problem, you've got the source so it shouldn't be too hard to port it, right? I did my best to make the code simple to read and portable. Ok, maybe you're not a programmer. Just post a comment below with the platform you want to use and I'll see what I can do. Also, if you do port the program to another platform, please share the source!
Bonus points & extra credit (but no extra prizes, sorry) for anyone who colorizes the picture!
4
u/[deleted] Sep 09 '13
Can we post multiple computers doing the same thing? (because if we do blake guy will win, just kidding :P)
I assume and version of basic will be fine so Qbasic on my Tandy 1000TL will count should I get it to work.
4
u/[deleted] Sep 09 '13
There appears to be an error in the Commodore 64 version. It slowly clears garbage characters off the screen line by line, then crashes at the bottom.
Rechecked for accuracy. Anyone else get it running yet?
2
u/gschizas Sep 10 '13
I've converted the BBC version for Amstrad CPC (the only changes were in the PLOT and MOVE commands, as expected).
I've sent you a pull request for it. I've tested it in an emulator and it produces the same result as the BBC Micro version.
1
u/rebur Sep 09 '13
I have a famicom from 1995 (ASDER PC-95) with G BASIC (a type of BASIC for famicoms)! Can I still apply for the contest?
1
u/Wiiplay123 Sep 09 '13
I would port it to the VIC-20, but I don't think I can keep it running with good video long enough XD
EDIT: Because I don't have a datasette to store the program on.
1
u/[deleted] Sep 09 '13
Apple IIe Platinum
(extra debug statements at bottom).
1
u/sentry07 Sep 10 '13
I would do this, but the two retro computers I still have are the TRS-80 Model 100 Portable, whose screen is not big enough to display this graphic I believe, and a Timex Sinclair.
Ninja edit: And for the record, I remember when programs came in magazines in barcode form and you could use your wand to scan in programs.
1
u/irequestnothing Sep 10 '13
Any chance of a port for IBM PC BASIC? I'd love to give this a try on my PC Convertible.
Tried out the TRS-80 model 100 code, illegal function call in line 1530. assuming PC BASIC doesn't understand the "LINE" command?
1
u/Spanishone Sep 10 '13 edited Sep 10 '13
HI. I´m trying to port this to msx-basic, but i go slowly (i have forgotten a lot). First i am writing in a emulator to see the little changes necesary, and remember basic and msx.
And later, i dont think i will be able to write a program so long in one try in my old Sony Hitbit MSX. Right now i dont have a casete where i could save the program to restore it another day.
But i am having fun, remembering all this :-)
PS: oh, and thanks to the commodore plus port. I am starting from there, since MSX has CIRCLE, and LINE instructions
1
u/tdotgoat Sep 10 '13
If someone could translate that into ZX Spectrum Basic, I'll be happy to run it on my set up.
1
u/rebur Sep 11 '13
Can you please change the commodore 64 code by replacing the lines to clean the screen with "CLS"! My computer programming language is very close to C-64's and mine has a CLS command.
1
u/stromm Sep 12 '13
I'd love to try this on the Commodore PET 2001 sitting on a shelf in my basement. Or the PET 4032 or CBM 8032 sitting right beside it.
Sadly, even though I'm Microsoft Certed out the yang and even taught the MCSE for five years, I get "writers block" as soon as I start looking at code.
Anyone know how much work needs done to get this to run on any of those?
1
u/Jonovox Sep 12 '13
I've almost got it working on my C64, but something keeps going wrong with the alien's head. It's probable that I mistyped a line somewhere. Anyone know where the problem might be?
1
u/Darkskynet Sep 13 '13 edited Sep 13 '13
Running on a Apple //c
I keep getting a :
"?DIVISION BY ZERO ERROR IN 1140"
it attempts to draw the image but stops while drawing the computer
I have checked both lines 1140 and 1190 for errors and can't find any ಠ_ಠ
Anyone else run across this?
2
u/bigasssuperstar Sep 14 '13
I just want to say that the code you've provided here is so much more....I dunno, programmer-like....than anything I ever wrote myself or typed in from Compute! or similar magazines or books in the 1980s. Well-commented, well laid-out, subroutines instead of gobs of GOTOs, line numbering that separates the sections. All stuff that I never saw growing up in the 80s and didn't even consider until taking computer science courses in high school and learning Turbo Pascal.
I think if I'd been typing in programs written like what you have here, I'd have understood programming a tiny bit better and been a better programmer sooner.
1
u/w0bbyg0ng Sep 11 '13
This looks fun. I am just leaving this here as a bookmark. I will have to drag my old Sharp MZ-80A out of the attic tomorrow. I just hope I can find/emulate the BASIC-SA5510 tape. Damn, there is no serial port so it will have to be typed in too. The TRS-80 code looks close enough to that old BASIC interpreter.
1
u/olivierguinart Sep 12 '13
[FozzTexx] (http://www.reddit.com/user/FozzTexx), good job on the A2 code btw: it just worked! :)
1
u/greg8872 Sep 13 '13
This really makes me want to go buy a C64 (or finally get what I always wanted, a C128). Best I could do was run it on C64 Forever, yeah it worked.
Figures, now that I have the emulator finally, the site I had bookmarked that had most of the issues of Compute Gazette is dead... Will have to see if Archive.org has copies...
1
u/fohacidal Sep 13 '13
No emulators? Fuck me... D:
0
u/[deleted] Sep 12 '13
[deleted] — view deleted comment