INMC 80 News

  

May–September 1981, Issue 4











Page 31 of 71











-31-

Basic

BASIC ROUTINES

We’ve had several goes at persuading various people to tear the Nascom 8K BASIC apart, because it must be just ‘chock full’ of useful routines. Up to date, we haven’t had mich success, either those we approached were too busy, or something. So were we surprised when we were sent the following by one of those ‘precocious brats’ who has taken the BASIC to pieces in odd moments whilst studying for his ‘0O-levels’. Makes yer sick don’t it?

Anyway, young Steve hasn’t told the whole story, he hasn’t filled in the details of what the registers have to contain when the routines are called. He’s promised that as part 2 for the next issue. So for those of you who wish to figure out the remainder of what could be a very powerful machine code floating point maths package, here are the calls.

Bits of BASIC . . -Routines and all that. by Steve Hansellman

Nascom BASIC contains a number of useful routines (if you know where to _ find them). So feeling masochistic, I decided to find the more useful ones.

Function Address Function Address SGN F822 INT F8E6 ABS F838 USR 1003 FRE FODO INP F441 POS FOFE SQR FAAC RND FB8B LOG F6C7 EXP FAFA cos FCOO SIN FC06 TAN FC67 ATN FC7C PEEK F5A3 DEEK FDBC POINT 1051 LEN ( F382 STRS FL9OA VAL F41C ASC F391 CHRS F3A2 LEFTS F3B2 RIGHTS F3E2 MIDS F3EC NEW E4B9 LIST E6DD FOR E779 RESTORE E846 STOP £870 END £872 CONT E89E NULL E8B1 CLEAR ESCA RUN EALO GOSUB EAIC GOTO EA2D RETURN EA4B DATA EA70 REM EA72 LET EA87 ON EAEL IF EAFF PRINT EB23 INPUT EBFD READ EC2C NEXT ECF6 DIM EF28 OUT F450 WAIT F453 CSAVE F4C3 CLOAD F4F9 POKE F5AA CLS FD8B WIDTH FDAS LINES FDAD DORE FDC7 SCREEN FDE6

Other useful routines:

Print character in A – E698

Input a line – E607

Output *?’ then get line – E4FC


This is an OCR’d version of the scanned page and likely contains recognition errors.











Page 31 of 71