home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
DRI-archive
/
roche
/
LLLBASIC10.TXT
< prev
next >
Wrap
Text File
|
2009-12-11
|
3KB
|
114 lines
NOTES ON ORGANIZATION OF THIS LLLBASIC PACKAGE.
J. I. FREDERICK 12/26/77
THE ORGANIZATION IS DIFFERENT FROM BOTH THAT DESCRIBED IN THE JAN 77
DR. DOBB'S AND THE SEPT. 77 COMPUTER. IN THIS ONE, THE LLL PROGRAMS ARE
MOVED TO 0100H, FIXED LENGTH TABLES ARE INSERTED, THEN VARIABLE LENGTH
TABLES AND FINALLY A MONITOR TO INTERFACE TO CP/M.
THE VARIABLE LENGTH COMPONENTS ARE NOW ALL CONTAINED IN THE PACKAGE
NAMED LLLMON.
THE OBJECTIVE WAS TO PERMIT FUTURE MODS TO BE MADE WITHOUT
REASSEMBLING LLLBASIC AND LLLFP.
SUMMARY OF CHANGES FROM DR. DOBB'S:
LLLBASIC
1) EQUATES CHANGED TO MOVE IT TO LOW MEMORY
2) JUMP INSERTED AT BEGINNING TO TRANSFER CONTROL TO
INITIALIZATION ROUTINE IN LLLMON
3) FWAM-WORD CONTAINING ADDRESS OF MEMST MOVED INTO LLLMON.
4) EQUATE AT BEGINNING OF LLLBASIC CHANGED.
LLLFP
EQUATES CHANGED TO REFLECT NEW LOCATION
USING THIS PACKAGE:
1. START BY TYPING "LLLBASIC XXX.YYY" WHERE XXX.YYY IS A PREVIOUSLY
EDITED SOURCE PROGRAM CREATED WITH ED.COM. BASIC EDITOR WILL
OUTPUT "READY". (NOTE YOU MUST SPECIFY AN EXISTING FILE HERE,
EVEN IF YOU DON'T WISH TO USE IT, SINCE THE INITIALIZATION
ROUTINES CHECK IT OUT)
2. IF YOU ARE GOING TO PUT IN A PROGRAM THROUGH THE CONSOLE, ENTER "SCR"
TO CLEAR MEMORY. (SOME NEEDED HOUSEKEEPING IS NOT GETTING DONE).
3. ENTER A BASIC PROGRAM THROUGH THE CONSOLE (WHICH CAN'T BE
SAVED YET) OR TYPE "PTAPE" TO READ IN THE PROGRAM WHOSE NAME IS
IN THE FCB. (I.E. THE XXX.YYY)
4. CONTROL-C RETURNS TO CP/M.
5. IN BASIC PROGRAM, CALL (1) RETURNS TO CP/M. THIS IS TO DEMONSTRATE
USE OF ASSEMBLY SUBROUTINES. SEE "SUB1" IN LLLMON FOR THIS EXAMPLE.
DIAGRAM OF MEMORY
0100 ---------------------------------
I JMP INIT I
I I
0116 M1A I INTERPRETER I
I I
08D9 OUTR I CONSOLE OUTPUT ROUTINE I
I (87D6 IN DR. DOBB'S) I
I I
0A96 INP I CONSOLE INPUT ROUTINE I
I (8993H IN DR. DOBB'S) I
I I
10DD ---------------------------------
I I
I FLOATING POINT PACKAGE I
I I
I I
1771 ---------------------------------
I 3 BYTES NOT USED I
1774 ---------------------------------
I I
I FPJUMP I
I I
17AD ---------------------------------
I SLACK I
1800 MEMST ---------------------------------
I I
I ACTIVE VARIABLES I
I I
18AA VEND ---------------------------------
1900 IOJUMP ---------------------------------
I STACK ADDRESS I
1902 ---------------------------------
I A(USER SUBRT TABLE) I
1904 ---------------------------------
I I
I IOJUMP TABLE I
I I
1920 ---------------------------------
I JMP INITIALIZE I
1923 FWAM ---------------------------------
I A(MONITOR END) I
1925 ---------------------------------
I I
I TABLE OF POINTERS TO I
I USER SUPPLIED SUBROUTINES I
I I
---------------------------------
I DB 0FFH I
CODE BELOW --> ---------------------------------
POINT CAN BE REARRANGED AND EXPANDED BY REASSEMBLING LLLMON.
---------------------------------
I I
I I
I I/0 I
I I
I I
---------------------------------
---------------------------------
I USER SUPPLIED SUBROUTINES I
I I
2000 MONEND ---------------------------------