80-Bus News |
May–June 1983 · Volume 2 · Issue 3 |
| Page 35 of 59 |
|---|
The workings of Nascom ROM BASIC Ver 4.7 | PAGE 16 | ||
|---|---|---|---|
LOG(X) routine. Get LOG of FPREG. | |||
Multiply FPREG by value on stack. | |||
MULTIPLY FPREG by value in BCDE. | |||
Divide the value on stack by FPREG and leave the result in FPREG. | |||
Divide the value in BCDE by FPREG and leave the result in FPREG. | |||
Test sign of number in FPREG. | |||
SGN(X) routine. | |||
ABS(X) routine. | |||
Move value in FPREG to stack. | |||
Move value at HL to FPREG. | |||
Move value in BCDE to FPREG. | |||
Move FPREG to BCDE. | |||
Move value at HL to BCDE. | |||
Move Value in FPREG to HL. | |||
Set sign of result depending on signs of operands. | |||
Compare numbers. | |||
Get integer of FP value. | |||
INT(X) routine. | |||
Convert ASCII floating point number into binary. | |||
Convert floating point binary into ASCII. | |||
SQR(X) routine. Uses SQR(X) = X ^ 0.5 | |||
Raise base BCDE to the power FPREG. | |||
The workings of Nascom ROM BASIC Ver 4.7 | PAGE 17 | ||
|---|---|---|---|
EXP(X) routine. | |||
Sum the series using table of coefficients at HL. | |||
Sum the series using table of coefficients at HL. | |||
RND(X) routine. | |||
COS(X) routine. Uses COS(X) = SIN(X+PI/2). | |||
SIN(X) routine. | |||
TAN(X) routine. TAN(X) = SIN(X) / COS(X). | |||
ATN(X) routine. | |||
WIDTH routine. Set terminal width but NOT commas width. | |||
LINES routine. | |||
DEEK(X) routine. | |||
DOKE A,V routine. | |||
SCREEN X,Y routine. | |||
Get screen address from row and column in DE and BC. | |||
Get an input line from NAS-SYS. | |||
Get (X,Y) for SET,RESET and POINT. | |||
SET(X,Y) routine. | |||
RESET(X,Y) routine. | |||
POINT(X,Y) routine. | |||
Convert (X,Y) to a row and column on screen. | |||
Go to part 2 of NASCOM ROM BASIC dis-assembled.
NASCOM ROM BASIC dis-assembled is available in ASM and LST file format.
| Page 35 of 59 |
|---|