Skip to main content
50 votes
Accepted

Which BASIC-like language has "ENDIF", "DIM ... OF" to declare arrays, and a double slash for comments?

My guess is that this is COMAL, which was available on the IBM PC. Notably: COMAL was developed in Denmark. COMAL was based on BASIC (and possibly Pascal). COMAL uses the DIM variable OF x format, ...
Jerry Stratton's user avatar
31 votes

Why was BASIC's INT() a floor, and not a truncate?

It Has (Almost) Always Been Floor Since at least 1966, with Dartmouth BASIC V3, the behaviour of INT is defined as as delivering an integer not greater than X - which otherwise may be called FLOOR. ...
Raffzahn's user avatar
  • 225k
22 votes
Accepted

What is this unusual syntax for the Commodore SYS command?

Line 40 looks like a typo. It should be SYS 65493 instead of SYS 65439. SYS 65493 ($FFD5) maps to the internal LOAD routine at $F49E Line 10 calls the filename parsing routine PLSV at $E1D4. PLSV ...
Darren's user avatar
  • 649
20 votes

Why does Sinclair BASIC have all of the characters twice in the token table?

You're right; the ZX81 does not use ASCII. That's because it uses the CPU to generate the displayed picture, from a compressed format in memory. The way this works is an absolute freakshow*, but from ...
Omar and Lorraine's user avatar
20 votes

What is the bug in Creative Computing's version of "Amazing"?

I wrote an article on finding two bugs in Amazing for trs8bit - Volume 17 Issue 03 - Sept 2023. I found two bugs, but no loop. No maze exit. The code can finish with Z=0 meaning no exit was drawn in ...
Peter Phillips's user avatar
15 votes

Which BASIC-like language has "ENDIF", "DIM ... OF" to declare arrays, and a double slash for comments?

Comments are in Danish, so this is Comal, and most likely Comal80 which was what was taught in Danish schools at that time. I cut my teeth on the Regnecentral version - which was robust but slow - ...
Thorbjørn Ravn Andersen's user avatar
15 votes

What does Spectrum BASIC have that ZX81 lacks?

From 'Reusing Code, Reverse Engineering And Collaboration': Grant and Vickers would’ve liked to start over, but there wasn’t time. So the ZX81 BASIC was used as the starting point, with the addition ...
Mark Williams's user avatar
14 votes

Storing results in BASIC DATA statements

I'm not sure of what that particular dialect of BASIC can and can't do, but it may be possible if it supports writing ASCII files and reading them in with CHAIN MERGE. Here's an example that works in ...
john_e's user avatar
  • 7,768
14 votes
Accepted

What are the minimum system requirements to run GW-BASIC?

One thing you may want to look at. I remember encountering a bug in one of the Borland products in that they complained of being out of memory on a 640K, himem-aware, DOS 6.22 system. That was due to ...
paxdiablo's user avatar
  • 4,917
12 votes

What is this unusual syntax for the Commodore SYS command?

Three related concepts one should understand when trying to understand Commodore BASIC programs (or other Microsoft-derived BASIC interpreters for that matter) are the CHRPTR address, and the CHRGET ...
supercat's user avatar
  • 37k
10 votes
Accepted

What does Spectrum BASIC have that ZX81 lacks?

Hopefully, this is a pretty comprehensive list of the differences between the ZX81 and Spectrum (and, to a lesser extent, the ZX80) BASICs: String handling No FAST and SLOW UNPLOT/PLOT OVER ...
Greenonline's user avatar
  • 4,386
9 votes

What are the minimum system requirements to run GW-BASIC?

On screen it shows: GW-BASIC 3.10 (C) Copyright Microsoft 1983,1986 61934 Bytes free Looks quite fine to me. Whenever I try to launch the program in one true DOS 6.20, so without the use of any ...
Raffzahn's user avatar
  • 225k
9 votes

What are the minimum system requirements to run GW-BASIC?

There is no single GW-BASIC. Each OEM could customize portions of it to fit its own custom hardware. For example, I had an Epson computer with a 640x400 all-pixel-addressable video adapter on the ...
Euro Micelli's user avatar
  • 2,805
9 votes
Accepted

Problem using Commodore 64 BASIC TAB() command in abbreviated form

I wouldn't call it a bug and the solution is kind of obvious: Don't type in the opening parenthesis for tokens that include that already (tab( and spc(), if you abbreviate the function. I.e.: 10 print ...
BlackJack's user avatar
  • 291
8 votes
Accepted

What binary format did QuickBasic use for BAS files?

They seemed to be QuickBasic 4.5 files. A proprietary format from QuickBasic that was not only a text file, but included various other concepts like Subs - that were sort of sections into the file. So ...
Dirk Boer's user avatar
  • 311
7 votes

Why does Sinclair BASIC have all of the characters twice in the token table?

TL;DR: That encoding is not just the token table but as well the BASIC charset and the screen charset which offers each of the 64 printable characters as Black-on-White (00h..3Fh) or White on Black (...
Raffzahn's user avatar
  • 225k
7 votes
Accepted

How to run MOUSSUBS.BAS in QuickBasic? Looking for MIXED.QLB and MOUSE.ASM?

I searched for the filenames and found that MOUSSUBS.BAS and BITS.BAS are from Microsoft QuickBASIC Programmer's Toolbox, a 1988 Microsoft Press book by John Clark Craig. (at least according to https:/...
knol's user avatar
  • 12.5k
6 votes

What binary format did QuickBasic use for BAS files?

The example can be loaded into a copy of QuickBasic and then saved as a plain text file: DECLARE FUNCTION Shade& (red!, green!, blue!) DECLARE SUB GetShiftStates (shift AS ANY) CONST FALSE = 0 ...
BlackJack's user avatar
  • 291
6 votes

What is the bug in Creative Computing's version of "Amazing"?

I couldn't find exactly the source version you ran, Maury. The original — written by Jack Hauber and first published in DEC EDU Newsletter Issue Number 4 in 1972, rekeyed by me here: amazin.bas — does ...
scruss's user avatar
  • 21.7k
6 votes

Storing results in BASIC DATA statements

For the direct question, I am going to guess no, unless those values are written to a file and managed that way. Uncertain if this is helpful, but early in my career, I worked in a pension department, ...
A2Geek's user avatar
  • 103
5 votes

Storing results in BASIC DATA statements

Not with BASIC tools, as DATA lines are read only parts of the program code. Of course one could manipulate the program text in memory using POKE, but that's not only a rather high effort, as one ...
Raffzahn's user avatar
  • 225k
5 votes

What binary format did QuickBasic use for BAS files?

If this is indeed a QuickBasic 4.5 file, you could load it into QuickBasic 4.5 under some sort of DOS emulation (DOSBox etc.), then save it with SAVE "NEWFILE",A if I remember correctly to ...
TeaRex's user avatar
  • 967
4 votes

Why does Sinclair BASIC have all of the characters twice in the token table?

What the linked table does not show is that the letters with the high bit set are displayed in white on black rather than black on white. The equivalent table at Wikipedia is clearer in this respect. ...
john_e's user avatar
  • 7,768
3 votes
Accepted

Marvel Comics BASIC games from the 1980s?

Those BASIC programs probably came from a book called "Marvel Super Heroes Computer Fun". Here you can find some photos of it: https://blog.paxholley.net/2011/08/17/learning-basic-with-the-...
José Ángel Morente's user avatar
2 votes

Why does Sinclair BASIC have all of the characters twice in the token table?

why does it have all the letters, digits and punctuation in the table twice? For instance, A is in 38 as well as 166. What is the purpose of this? In ZX Spectrum 0x90-0xA4 characters are actually UDG ...
enkryptor's user avatar
  • 121
2 votes

Would some BASIC interpreters for microcomputers be considered operating systems?

Although you ask specifically about microcomputers and interpreted BASIC, note that the category of machines with BASIC as the basic command interface included minicomputers such as the Pick systems. ...
david's user avatar
  • 307
2 votes

When and why was the question mark chosen to abbreviate PRINT?

I checked some HP TSB manuals from 1969 to 1976 and found no mention of "?" for PRINT. HP TSB was my first experience with programming BASIC and I never used "?" for PRINT back ...
Peter McGavin's user avatar
1 vote

What are the minimum system requirements to run GW-BASIC?

I think your issue is a simple incompatibility with DOS 6.x. Your GWBASIC came with DOS 3.10. I’d wouldn’t expect it to work with anything but DOS 3.10. Early DOS 3.x releases saw a lot of changes ...
bitslasher's user avatar
1 vote

What are the minimum system requirements to run GW-BASIC?

Did you try loadfix? Even with setver older programs that run completely in the first 64k of ram on dos 5 and newer systems had this issue. If you choose not to do this then I'd suggest leaving dos ...
Michael T's user avatar
1 vote

Would some BASIC interpreters for microcomputers be considered operating systems?

It's worth recalling that when the IBM-PC was first launched, the minimal system had only ROM-Basic in addition to the BIOS. (DOS and floppy disks were optional extras.) At start-up, the user was ...
terry-s's user avatar
  • 111

Only top scored, non community-wiki answers of a minimum length are eligible