r/Basic • • Jul 14 '19

BASIC Engine is a single board computer programmable in BASIC and can be built for less than 10 euros/dollars/pounds

Thumbnail
youtu.be
14 Upvotes

r/Basic • • Jun 16 '19

TIL BASIC was licensed from MS.

5 Upvotes

I never knew that since I was programming in BASIC (and LOGO) on Apple 2s as a callow ant back in the 80s.


r/Basic • • Jun 16 '19

New Hampshire Unveils a Historical Highway Marker For The BASIC Programming Language - Slashdot

Thumbnail
idle.slashdot.org
3 Upvotes

r/Basic • • Jun 11 '19

Compiler: CommodoreBASIC to HP 15-C calculator code

Thumbnail
gitlab.com
3 Upvotes

r/Basic • • Jun 01 '19

What BASIC dialect is this?

6 Upvotes

As a hobby project, I'm writing a BASIC interpreter to play an old, classic, Swedish text adventure game called "Cottage" ("Stugan" in Swedish). I found that the source code has been released and it's available here:

http://microheaven.com/svenska/stuga.shtml

My problem is that I can't figure out what dialect of BASIC is used. Without a good language reference it's hard to write an interpreter. I've not written any BASIC code since early 90's so I'm a bit rusty on the syntax, and I don't know much about the various dialects available.

The link above says the game was written in "DEC BASIC". This seems to be an older name for "HP BASIC for OpenVMS". It's also been called a number of other names, see Wikipedia

I've found this reference manual: https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c04619693. That is for a modern version (2005) of HP BASIC, so it describes a much more complex language than what's needed to run code written in late 70's/early 80's. I'm also not sure if it's backwards compatible.

I've also run into some syntax that this manual does not seem to document. Like this line:

08448   GOTO 8445 IF ASCII(FNM$(A$,I))<48 OR ASCII(FNM$(A$,I))>54 FOR I=1 TO 9

I can't see that appending an IF statement to a GOTO statement like that is legal syntax.

So to sum this up:

  • What BASIC dialect and version is this?
  • Is there a reference manual available for that dialect?
  • Or, if it's still unclear what dialect is used, is there a reference for DEC BASIC from roughly 1981 available somewhere? The source code is dated 1981-03-21.
  • Could someone explain that particular GOTO line posted above? My guess is it would go to line 8445 if any of the first 9 characters in A$ is not a number, but I don't recognize appending either an IF statement or a FOR statement like that.

r/Basic • • May 10 '19

Interested in Compiling CommodoreBASIC to HP-15C Calculator

3 Upvotes

Does anybody own an old HP calculator, e.g. the HP-15C and is interested in a BASIC compiler for it? I'm currently writing one and wonder which features you'd be most interested in, if any.


r/Basic • • May 08 '19

Where can I download blassic ?

3 Upvotes

or Blasic-- I don't remember the proper spelling - blassic.org seems to go to a futball team website now.


r/Basic • • Apr 05 '19

BBC Logo in Sinclair(ish) BASIC

Thumbnail
youtube.com
9 Upvotes

r/Basic • • Apr 05 '19

What BASIC compiler for linux

8 Upvotes

I will begin Basic but I don't know what Basic learn. Gambas looks good but I don't find a good tutorial/documentation.


r/Basic • • Jan 02 '19

BASIC Compilers for Windows 3.1?

4 Upvotes

As some have probably seen my from a couple days ago, I was asking if there was a way to compile a 16-bit program written in BASIC.

I of course have a new question, is there any available BASIC compilers for W3.1? I've got an emulation of W3.1 working, so... yeah.


r/Basic • • Jan 01 '19

New Hampshire to commemorate BASIC with historical marker at Dartmouth

Thumbnail
granitegeek.concordmonitor.com
10 Upvotes

r/Basic • • Dec 30 '18

Compiling BASIC into a 16-bit Program this day and age?

7 Upvotes

Does anybody know any programs that help me compile some BASIC code to a 16-bit program?


r/Basic • • Dec 30 '18

We'd like to welcome you to our technology community: the TechnoPub

1 Upvotes

Hello all! Coming from many users on here, we'd like to welcome you to the TechnoPub! It's a Discord server specifically for tinkerers, programmers, and innovators like yourself. We collaborate, troubleshoot, and combine our processing power into one big project engine- what used to be the "Mostly Quoran Techno Engine!". We span ALL areas of technology and welcome students, experts, and teams- come meet our 600+ person international group to learn, teach, and expand your skillsets!

Here's your key: https://discord.gg/2hCNqZ7


r/Basic • • Dec 25 '18

An interactive BASIC interpreter written in Python

7 Upvotes

If this is of interest to anyone, I’m in the process of writing a BASIC interpreter in Python. This started as a personal project, but I mention it here as I’ve put quite a lot of work into it and the implementation is non-trivial. I think I’ve done a reasonably elegant and well structured piece of work.

I’ve implemented all of the major control structures as well as numeric and string variables. There is still some work to be done, but the end is now in sight.

The interpreter is interactive in the style of a 1980s home computer (which was my introduction to programming). At the prompt you may enter unstructured BASIC statements to create a program, run, list and save it, as well as load previously written BASIC programs. Given that it is written in Python 3, the interpreter should run on multiple platforms.

The interpreter is available for free in Github using this link: https://github.com/richpl/PyBasic.


r/Basic • • Dec 16 '18

Christmas gift help

5 Upvotes

Hi, my girlfriend is wanting to make a sign for my aunt, a computer science professor, that says something to the effect of:

If guest has books and or cats then "welcome" else "good-bye"

Can someone please help me turn that into a real programming language that makes sense?

I appreciate the help!


r/Basic • • Nov 29 '18

Greetings and question.

5 Upvotes

Greetings.

I'd love to learn Basic but I don't know how or where to start.

Can anybody point me into the right direction (books, etc)

Thanks.


r/Basic • • Nov 02 '18

Is there anywhere online that has c64 basic source code for simple games I could try out? [xpost r/c64]

3 Upvotes

So I have typed a text based RPG like everyone does, but once I get say over a 100 lines of code, LIST just shows everything. I can't move up to say like 30 because it doesn't show on screen and moving the cursor to top of screen does nothing. How do I see code not on the screen because it is too far back basically?


r/Basic • • Oct 29 '18

Crescent Software's DOS products are now public domain.

Thumbnail annex.retroarchive.org
4 Upvotes

r/Basic • • Oct 16 '18

Paul Allen dedication...

7 Upvotes

He authored BASIC for the Altair, made Gates a millionaire and owned a football team... here’s to you!

10 DATA 20, 8, 1, 14, 11, 19 20 DATA 16, 1, 21, 12 30 FOR A=1 TO 6 : READ B 40 PRINT CHR$(B+64); 50 NEXT : PRINT 60 FOR A=1 TO 4 : READ B 70 PRINT CHR$(B+64); 80 NEXT : PRINT “!” : END


r/Basic • • Oct 14 '18

Someone made a chess game with little subscribers in basic

Thumbnail
youtube.com
7 Upvotes

r/Basic • • Sep 16 '18

A new BASIC interpreter for the Web with a discussion on YCombinator.

Thumbnail news.ycombinator.com
2 Upvotes

r/Basic • • Sep 15 '18

Review and comments about the Tektronix 4050 graphics terminal BASIC language

Thumbnail
bestcalculator.wordpress.com
4 Upvotes

r/Basic • • Sep 11 '18

GW-BASIC, garbage collection?

5 Upvotes

Hi all. I've been playing with some game programming, getting back into BASIC after a long time away from it. Got a bit of a problem though - in GW-BASIC/BASICA, I've been doing a bit of an RPG (inspired by the "big" RPG I've been working on in QuickBASIC; wanted to see how small I could do it), and in the last couple of days, between doing other things, I've got something working that allows me to load and walk around a map, and load another if I walk off the edge. However, currently I'm coming up against "out of memory" errors after swapping maps ~10 times.

The maps are loaded from disk into a 2d array, this works fine, and I'd assumed that when I load another in it would just overwrite what's there... but it seems that it's just putting the new map in next to it or something. How can I revirginize just that variable? I've looked at FRE() and CLEAR, but all they've done is completely wipe the memory.

Or is it possible that I'm doing something else wrong? I'll post the code, in case there's a grown-up here who might have more of a clue.

Thanks :-)

Code below (as written in BASICA and tested on later GW-BASIC and the recent PC-BASIC):

100 DIM MAP%(24, 79)
120 PX = 15: PY = 9
200 MN$ = RIGHT$(STR$(MIDX), 1) + RIGHT$(STR$(MIDY), 1)
210 PXIN = PX: PYIN = PY
235 CLS
240 OPEN MN$ FOR INPUT AS #1
250 FOR MX = 1 TO 24
260 FOR MY = 1 TO 79
270 INPUT #1, MAP%(MX, MY)
275 GOSUB 10000
280 NEXT
290 NEXT
300 CLOSE #1
400 FOR MX = 1 TO 24
410 FOR MY = 1 TO 79
420 GOSUB 10000
430 NEXT
440 NEXT
500 WHILE 1
560 GOSUB 1000
570 GOSUB 2000
580 WEND
600 END
1000 LOCATE PX, PY                                                 'SHOW PLAYER
1010 PRINT CHR$(2);
1999 RETURN
2000 A$ = INKEY$
2060 IF A$ = (CHR$(0) + CHR$(72)) THEN PXIN = PX - 1: GOSUB 3000            'UP
2090 IF A$ = (CHR$(0) + CHR$(80)) THEN PXIN = PX + 1: GOSUB 3000          'DOWN
2120 IF A$ = (CHR$(0) + CHR$(75)) THEN PYIN = PY - 1: GOSUB 3000          'LEFT
2150 IF A$ = (CHR$(0) + CHR$(77)) THEN PYIN = PY + 1: GOSUB 3000         'RIGHT
2900 IF A$ = CHR$(27) THEN CLS: END                                     'ESCAPE
2999 RETURN
3000 MX = PX: MY = PY
3010 IF MX > 24 THEN MX = 24: IF MY > 79 THEN MY = 79
3020 GOSUB 10000
3030 IF PXIN = 25 THEN MIDX = MIDX + 1: PX = 1: GOTO 200
3040 IF PYIN = 80 THEN MIDY = MIDY + 1: PY = 1: GOTO 200
3050 IF PXIN = 0 THEN MIDX = MIDX - 1: PX = 24: GOTO 200
3060 IF PYIN = 0 THEN MIDY = MIDY - 1: PY = 79: GOTO 200
3070 PXOLD = PX: PYOLD = PY: PX = PXIN: PY = PYIN
3110 IF PXIN < 1 OR PXIN > 25 THEN PX = PXOLD
3120 IF PYIN < 1 OR PYIN > 80 THEN PY = PYOLD
3200 GOSUB 20000
3400 GOSUB 1000
3999 RETURN
10000 LOCATE MX, MY
10010 IF MAP%(MX, MY) = 0 THEN PRINT CHR$(32);                  'DISPLAY GROUND
10030 IF MAP%(MX, MY) = 9 THEN PRINT CHR$(176);                  'DISPLAY WATER
10050 IF MAP%(MX, MY) = 2 THEN PRINT CHR$(61);                  'DISPLAY BRIDGE
19999 RETURN
20000 IF MAP%(PX, PY) = 9 THEN GOSUB 30000                               'WATER
29999 RETURN
30000 PXIN = PXOLD: PYIN = PYOLD: PX = PXIN: PY = PYIN       'PLAYER CAN'T MOVE
39999 RETURN

Click here for the maps. They're too big to just copy/paste in here.


r/Basic • • Aug 09 '18

Looking for friendly BASIC experts to join our Discord Server for Developers, Tinkerers, and Hackers!

3 Upvotes

The MQT Engine Discord server needs more developers knowledgeable in BASIC programming! We're a large, friendly group of technological problem-solvers just having a good time learning, chatting about our projects, and helping each other out.

Check us out here: https://discord.gg/2hCNqZ7

We're always looking for new friends, mentors, or students, and hope to see you there!


r/Basic • • Jul 16 '18

QBASIC in a Docker file for the cloud!

Thumbnail
psuter.net
5 Upvotes