Posts Tagged ‘basic’

Fun with QuickBasic for Mac

February 2nd, 2009 by kteck | No Comments | Filed in Bending

For the fun of it I ported my dos simulation basic program from applesoft basic to Microsoft Quickbasic for Mac… There are quite a few differences to get over. The result of this was far more clean and tidy code too… feel free to port it back to applesoft for the fun of it. Even tho it looks less impressive/not good enough to fool anyone im releasing it anyway :)

For those with old macs you can download a copy of QuickBasic For Mac here…

Video

Source

10 clear
20 print “APPLE IO.SYS for MS-DOS (R) Version 5.0 for Macintosh”
30 print “Copyright (C) 1981 Apple Computer”
40 print “Copyright (C) 1981-1991 Microsoft Corporation”
50 print “”
60 print “Current Date is Fri 1-30-2009″
61 input “Enter new date (MM-dd-yy):”; d1$
62 if d1$ = ” then got 70
70 print “Current Time is 0:33:26.26″
71 input “Enter new time:”; d2$
72 if d2$ = then got 80
80 print “”
90 print “Microsoft (R) MS-DOS (R) Version 5.0 for Macintosh”
100 print “(C)Copyright Microsoft Corp 1981-1991″
110 print “”
120 input “C:\>”; prompt$
121 if prompt$ = “exit” then end
122 if prompt$ = “ver” then goto 230
123 if prompt$ = “restart” then goto 200
124 if prompt$ = “cls then goto 210
125 if prompt$ = “” then goto 120
126 if prompt$ = “dir” then goto 220
127 goto 120

200 cls
201 goto 10
210 cls
211 goto 120
220 print “30/10/1991 12:00 PM autoexec.bat”
221 print “30/10/1991 12:00 PM config.sys”
222 print “30/10/1991 12:00 PM <DIR> Dos”
123 print ” 3 File(s) 41 bytes”
124 print ” 1 dir(s) 45,939 bytes free”
125 goto 120
230 print “Microsot(R) MS-DOS (R) Version 5.0 for Machintosh”
231 goto 120

Tags: , , , , ,

Fun with applesoft basic

January 30th, 2009 by kteck | No Comments | Filed in Apple, Microsoft

Back in the day basic was the common way to enter games and programs into your computer… sure there was floppys, and tapes but they were commonly used to store basic programs. You could buy programs for your chosen computer platform but where was the fun in that :)

Anyway for the fun of it I made a Dos 3.3 lookalike program on my Apple //c…. It took hours to get it all worked out. The spacing alone on the dir command  took lots of time. Before I ramble on here is the video. Btw I included the source for the program below the video :)

Video

Source

10 home
20 print “APPLE IO.SYS for MS-DOS (R) Version 3.30″
30 print “Copyright (C) 1984 Apple Computer”
40 print “Copyright (C) 1981-1984 Microsoft Corporation”
50 print “”
60 print “Current date is Fri 1-30-2009″
70 input “Enter new date (mm-dd-yy):”; d1$
71 if d1$ = “” then goto 80
80 print “Current time is 0:33:26.26″
90 input “Enter new time:”; d2$
91 if d2$ = “” then goto 100
100 print “”
110 print “Microsoft(R) MS-DOS (R) Version 3.30″
120 print “(C)Copyright Microsoft Corp 1981-1984″
130 print “”
140 input “A>”; prompt$
141 if prompt$ = “exit” then goto 180
142 if prompt$ = “list” then goto 185
143 if prompt$ = “” then goto 190
144 if prompt$ = “ver” then goto 200
145 if prompt$ = “cls” then goto 250
146 if prompt$ = “restart” then goto 10
147 if prompt$ = “dir” then goto 300
180 end
185 list
186 goto 140
190 print “Bad command or file name”
191 goto 140
200 print “Microsoft(R) MS-DOS (R) Version 3.30″
201 goto 140
250 home
251 goto 140
300 print “10/1/1984 10:00 AM autoexec.bat”
301 print “10/1/1984 10:00 AM config.sys”
302 print “10/1/1984 10:00 AM

Dos”
303 print ” 3 Files(s) 41 bytes”
304 print ” 1 Dir(s) 45,939 bytes free”
305 goto 140

Tags: , , ,

RSS Digest - #28 - Kinda late but here…

January 26th, 2009 by kteck | No Comments | Filed in RSS Digest

Here are the links for: Sunday, January 25th 2008…

Record video with any Liveview enabled Canon EOS DSLR
Mario Paint Composers
Apple to sue Palm?
Plastic Logic e-reader not coming until early 2010
Bill Gates’ Plan To Destroy Music, Note By Note
Edit-Approval System Proposed For English-Language Wikipedia
iLife ‘09 Shipping Now For Some People? Hits Torrents in Three, Two… [Apple]
DLP Pico Pocket Projector Technology - CES 2009
HP TouchSmart for Business - CES 2009
22 Most Used Free Fonts By Professional Designers
Mac: 25 Years in Pictures
Twitter Has Done News. Now It’s Doing Global Charity Events
Is the Zune doomed?
Google to launch next big update to Google Earth
Multiple Windows 7 versions coming? Say it ain’t so!
Who Needs Netbooks? Acer Plans Detail Mobile Internet Device [Acer]
Rogue Android App Allegedly Destroying G1 Memory, Installing Adware [App Market Scam]
5 Resources for Netbook Helps, Hacks and How-To’s
Mozilla wants to watch 1% of Firefox users
iPhone 101: Basic questions, basic answers

Sprint Treo Pro spotted in the wild, specs and all
FriendFeed Hits Nearly One Million Users; Grew Tenfold In The Past Six Months
Monster.com Data Stolen, Won’t Email Users
RSS-powered Windows 7 desktop slideshows
iPhone Bluetooth File Transfer Coming Soon (YES!) [IPhone]
Comcast Charges Hurricane Victim $24.95 For Calling Service
Windows 7: some bad news for business users
Microsoft To Exit the Zune Business?
New Twhirl beta turbocharges Twitter - becomes must have Twitter client
AMD sees distinction between netbooks and laptops vanishing
Google Puts The Squeeze On Free Apps
CNN Uses P2P Plugin for its Live Stream
Get your hack on: unofficial multi-touch support released for Android
Jolicloud: the OS your netbook has been screaming for
National Censorship Plan Offensive, Says Aussie Shadow Minister

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,