Questions tagged [basic]

For questions about BASIC, a lightweight, high-level programming language favored in retro computer systems.

Filter by
Sorted by
Tagged with
25
votes
5answers
4k views

What type of interpreter were most 8-bit BASIC implementations?

I’m a big fan of early/mid 1980s personal computers like the Amstrad CPC, Commodore 64 and the Sinclair Spectrum. One thing these computers all had was a version of BASIC. Well known ones being MS-...
14
votes
4answers
1k views

How to use BASIC after “LOAD ”$",8 on the C64

After loading a file list from a floppy disk it is hard to program in BASIC because the file list is interpreted as BASIC lines. For example there can be 20 lines with the number 1, because 20 files ...
17
votes
3answers
3k views

Was Locomotive BASIC significantly better than Sinclair BASIC?

The Amstrad CPC range of Z80 machines shipped with a ROM BASIC, designed and implemented by Locomotive Software. The most well known competitor was the Sinclair ZX Spectrum, also a Z80 machine, with ...
28
votes
20answers
7k views

Was self-modifying code possible using BASIC?

Was self-modifying-code possible using BASIC? Parameters: On commonly affordable home-computers before 1984 Code that changes its own instructions while it is executing Using BASIC only Not using ...
3
votes
2answers
386 views

What was stored in memory that was “unavailable to BASIC”?

On home / personal computers (such as before 1984), a machine might be described as having 24k RAM, but only 18k of that available to BASIC. If the machine had BASIC and the OS (or BIOS) stored in ROM,...
13
votes
7answers
1k views

New 6502 BASICs?

I sort of "have a thing for BASIC" right now, which has led to a couple of great exchanges here in RSE about the variations "back in the day". I'm wondering if anyone is aware of other modern BASICs ...
16
votes
2answers
2k views

How to decode an audio file which contains an MSX BASIC program? [closed]

I have an audio file in WAV format, which supposedly comes from a cassette sound file. Moreover, it contains a BASIC program, but I don't know how to decode it. I have tried to convert the wav file to ...
20
votes
4answers
1k views

Was the design of MS-BASIC for 6502 based on MS-BASIC for 8080?

Looking through the source code of the 6502 MS-BASIC, certain parts of it seem more reminiscent of how things would be done on the 8080, then on how they should be done on the 6502. Code to find a ...
9
votes
1answer
2k views

Sources for some old BASIC games

Poking about in early issues of Dr Dobbs' Journal (the journal of the People's Computer Company, or PCC) I came across a listing for BASIC games available on tape. Many of these are widespread, but a ...
1
vote
8answers
990 views

Are there any old and nowadays active Operating Systems which has only BASIC Programming Language?

Some old Operating Systems I hear have only BASIC Programming Language. Are there any active and old operating systems which includes only BASIC Programming Language?
6
votes
1answer
385 views

Why is ZX80 much faster than Spectrum on Rugg/Feldman benchmarks?

If you look at the results of the Rugg/Feldman benchmarks, shown in this Wiki entry, you'll see that Sinclair ZX80 is much faster than Sinclair Spectrum on all tests despite the fact that both ...
7
votes
1answer
270 views

Any historical references to links between JOSS and BASIC?

I only recently learned of the JOSS language, and then only through a roundabout fashion from an interview with David Ahl where he mentions FOCAL. This led me to read the available manuals for all ...
14
votes
6answers
5k views

How slow was the 6502 BASIC compared to Assembly

Imagine a modern computer, where let's say Python is a high level programming language and needs to be interpreted in order to execute a piece of code. You could write some code in C, compile it, ...
17
votes
4answers
1k views

Commodore BASIC and binary floating point precision

I am mildly curious that though the 6502 provides BCD arithmetic which would be useful for implementing decimal floating point, Commodore BASIC uses, like all (?) Micro-Soft BASIC, binary floating ...
6
votes
7answers
2k views

What ways are there to “PEEK” of memory sections in (different) BASIC(s)?

Question Was there any BASIC or extension or toolbox for BASIC allowing to PEEK multiple bytes from memory in one instruction - besides the often-used DPEEK (or alike) to read a word? I'm asking ...
2
votes
3answers
205 views

How to use the MOD operator in TRS-80 model 100 BASIC?

I'm finding the MOD operand is not working when I enter it in the BASIC prompt. This is how I write it out. PRINT 1 * MOD(23) ?SN Error I have looked into a reference guide and it is too broad on ...
2
votes
2answers
410 views

Anyone heard of 'something like' EDITLN or EDITLINE or LINEDIT statement in BASIC?

Anyone heard of 'something like' EDITLN or EDITLINE or LINEDIT statement in BASIC for editing lines of a program's own code while executing ? I seem to remember a statement that was spelled '...
7
votes
2answers
436 views

Saving screen pixels to string in ZX Basic

I remember programming a ZX spectrum in 128 basic (about 20 years ago). I remember I was able to save a third of the screen into a variable. Something like this: 10 LET A$ = [16384 BYTES starting at ...
6
votes
2answers
520 views

Read HP Basic (RMB) tokenized file into clear text?

I have a cople of HP BASIC (HP9000) files that have been saved in a non-ASCII format (HFSLIF?). Does anyone know of a conversion utility to get the code readable? The files are already on a win7 ...
20
votes
3answers
1k views

BBC/Acorn BASIC, what made it so fast?

As I look over old versions of BASIC trying to piece together their history, I come across repeated indications that BBC Basic was really fast. One list puts it running the Ahl benchmark (for all its ...
9
votes
2answers
2k views

Did Microsoft BASIC ever use Z80 only instructions?

Did Microsoft BASIC (or any of the OEM versions) ever use Z80 only instructions? For the purposes of this question I'm ignoring the equivalent of BIOS I/O layers which OEMs would have provided.
7
votes
1answer
332 views

Differences between 4k, 8k and Extended Altair BASIC?

Various histories state that there were at least three versions of Altair BASIC, 4k, 8k and Extended - plus modifications like Disk. I've found some listings of the 4k, but does anyone have a short ...
9
votes
4answers
750 views

Early BASIC memory management

Can anyone verify or correct my memory here? Long ago, I had access to a Commodore PET which I think had 8kB of memory. Also slightly less long ago, I had a Commodore 64 with its "elephatine" 64kB. ...
8
votes
1answer
223 views

String libraries for BASIC

Looking over old BASICs I find two general approaches to handling string variables. HP/Wang/Atari/et al used C-like array-of-char whose memory size is specified with a DIM statement, with the upside ...
10
votes
4answers
3k views

Was Family BASIC for the NES/Famicom powerful enough to create full games and applications?

"Family BASIC or Famicom BASIC is the consumer product for programming Nintendo's Family Computer video game console of Japan." wikipedia I can't seem to find much info about Family BASIC ...
7
votes
4answers
391 views

Library of MS BASIC programs in text format?

I am wondering if anyone has a pointer to a good source of "classic" BASIC programs, in text format. One would think this would be easy to find, but unfortunately VB so pollutes the results as to ...
2
votes
0answers
278 views

What is this tool that was once used to teach beginner level BASIC?

In the early 1980's there was a small handheld device that looked like a calculator. It was a tool to teach beginner level programming in BASIC. Its ad slogan was "keep it near you". I never had one ...
19
votes
2answers
2k views

Why does this BASIC program declare variables for the numbers 0 to 4?

On pages 150 to 154 of William Tang's (1982) Spectrum Machine Language for the Absolute Beginner, there are these lines of code. (Note GOTO 9000 is the first non-REM statement in the program). 9000 ...
17
votes
5answers
2k views

Uptime in ZX BASIC

How can I obtain the uptime of a Sinclair ZX Spectrum machine (ZX48, ZX128, or Pentagon clone) via their BASIC interpreter? Specifically, the same value used by RANDOMIZE 0 to seed its PRNG. I would ...
47
votes
3answers
7k views

Strange math syntax in old basic listing

I'm browsing through an old book "Basic Computer Simulation" from 1983. It contains a line of BASIC code that reads: LET Z1 = M * D1 * (PQ / A) [ 3 I understand all of the code except the "[ 3" I ...
5
votes
2answers
309 views

Was Vilnius BASIC cross-platform?

It is well established that Vilnius BASIC runs on PDP-11 compatible machines. For example, the BK-0010 and UKNC had Vilnius BASIC in ROM. Apparently, it was closely modelled after MSX BASIC, which ...
9
votes
1answer
357 views

Purpose of using REM when running TR-DOS commands in BASIC

When running TR-DOS commands from within BASIC, it's necessary to prefix the command with RANDOMIZE USR 15619: REM: first. I understand the former command, but not the latter. For example, to load a ...
10
votes
3answers
789 views

Is it possible to crash the Apple II using only the Apple II Basic REPL?

Prerequisites: 1) Apple II 2) Basic Prompt Using only the instructions provided, can you crash the Apple II? I'm curious if this is even possible because I have only ever programmed the ...
3
votes
1answer
190 views

BASIC09 questions

I only learned of BASIC09 today, and I'm trying to wrap my head around it. The manual talks about it being a compiler, but I'm not sure I see significant differences between its I-code and tokenized ...
44
votes
5answers
6k views

Can a PET 2001 be physically damaged from BASIC?

In the early 1980s my primary school was the proud owner of a Commodore PET 2001. There was a commonly held belief among the young geek fraternity that there existed a BASIC command—perhaps a ...
9
votes
1answer
527 views

Origins of the “array like” strings in BASIC

A number of early microcomputer BASICs had 'array like strings' that were unlike MS's system and instead behaved like arrays of char. Substrings were accessed using a syntax like: A$ = B$(1,5) as ...
17
votes
9answers
3k views

What caused the demise of BASIC/BASICA in the late 1980's?

While not strictly adhered to, this is somewhat of a generalization of computer listings found in the more popular magazines of the time - BYTE, Kilobaud, PC Computing, etc. This explains the ...
7
votes
3answers
483 views

How to get a plain text file version of a CP/M .BAS (M-BASIC) program?

I have an old game (STRTRK.BAS) from my dad's Kaypro 10 that I would like to convert to a plain text file. Basically, what I'm trying to do is get it onto a modern computer in plain text format so I ...
13
votes
3answers
5k views

MSX Assembly/Basic programming documentation

I'd like to try to create software (and maybe simple games) for the MSX standard. I know I have two ways to do so, either I use MSX Basic or Z80 assembly. I think that Z80 assembly is more powerful ...
4
votes
4answers
583 views

How can I implement the modulus operator in Commodore 64 Basic?

How can I implement the modulus operator in Commodore 64 Basic? There are not a lot of math functions to work with, and modulus would be very handy.
6
votes
1answer
196 views

How can I input a string in ZX Spectrum BASIC using INPUT and not show the quotation marks?

How can I input a string in ZX Spectrum BASIC and not show the quotation marks on input? I've written a program for my 3-year old daughter to type in some letters, but she keeps deleting the ...
24
votes
2answers
2k views

Was the first ARM “processor” a BBC BASIC program?

The best background I have found so far on the early development of the ARM processor at Acorn comes from this interview with Steve Furber. The interview does not mention the development of the first ...
2
votes
1answer
141 views

Decoding the Workings of the TRS-80 BASIC Game “Escape!”

I've decided to port Chase! to Swift, apparently because I am insane. In any event, I'm trying to collect the various switches in versions from the era. One of these is unique, found here under the ...
5
votes
1answer
349 views

Commodore Plus/4 60671 bytes free - how?

It is widely known that, while the Commodore 64 did indeed provide 64K of RAM for machine code programs, only 38K was usable from BASIC; this was because bank switching was needed to get at the rest, ...
8
votes
1answer
653 views

Looking for a specific BASIC music program from the 80s

When I was a kid, we had a PC-XT with a lot of GW-Basic programs on it. I am trying to track down one in particular -- it was a music player of sorts. A menu (all monochrome text as I recall) and you ...
29
votes
2answers
3k views

C64: Why is POS(π) faster than POS(0)?

According to this article: german C64 Wiki article about the POS() command POS(π) is 20 % faster. Although in my experience it is ...
12
votes
2answers
701 views

Why was BASIC on the Commodore 64 one byte shy of 38KiB?

When you power up a Commodore 64 you are greeted with a friendly message telling the user it has 38911 BASIC bytes free. 38,911 is one byte shy of a 38 KiB (1,024 * 38 = 38,912). What was the reason ...
4
votes
1answer
184 views

Why did Extended BASIC on the TI-99/4A only allow 28 of the 32 sprites?

The Video Display Processor (VDP) of the TI-99/4A was capable of displaying 32 hardware sprites. These sprites were unusable with the default, built-in BASIC that TI provided. However, an enhanced ...
6
votes
3answers
269 views

Opening or converting GFA Basic files to something readable?

There is a bunch of GFA BASIC for Amiga files (the source code for Blender's ancestor, Traces, downloadable here: http://zgodzinski.com/blender-prehistory/) that I would like to peek at. Despite my ...
12
votes
4answers
1k views

C64 BASIC: How to suppress the '?' sign when using the INPUT command?

When you are getting INPUT in Commodore BASIC it always adds a question mark at the end of the string you want to show. Is there a way to suppress the question mark when using the INPUT command?