home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
224b.lha
/
names.doc
< prev
next >
Wrap
Text File
|
1989-04-08
|
7KB
|
237 lines
The text files in this directory can be loaded into Forth after Include.blk
is loaded. It's advisable to create vocabularies for each of the
different subdirectories. Intuition, Exec and Graphics are already
declared in the kernel. Dos can be treated as one of the above also. The
files for Dos are under i/libraries.
The files will not load if they have already been loaded, as long as the
definitions are visible in 'context'.
At the end of this file is the amount of dictionary space required for each
include file. Total is about 84k, if you have a 1 meg machine you could
load all the definitions and still have enough for a few screens, 2 meg
would do better. 512K (that's me) have to be a little bit more carefull in
selecting what to include. Also make your startup allocate the 'User'
dictionary for the size you expect to be using. E.g. if you need about 64k
for your routines and also want to load in all the include files:
run forth 25000 open Utilities.blk ok
would allocate enough for the dictionary. (The number is in hex).
LIBRARIES:
==========
The following names and library base indices have been declared:
The first three are defined in Kernel, Forth wouldn't run without them:
>Exec for exec.library
>Dos for dos.library
>Intuition for intuition.library
>Graphics for graphics.library
No name words are required for these.
That leaves the following libraries:
>Layers LAYERSNAME layers.library ( libraries/layers )
>Math MATHNAME mathffp.library ( libraries/mathffp )
>MathTrans MATHTRANSNAME mathtrans.library ( libraries/mathffp )
>Translator TRANSLATORNAME translator.library ( libraries/translator )
>Icon ICONNAME icon.library ( workbench/icon )
>Diskfont DFNAME diskfont.library ( libraries/diskfont )
Not implemented
>Clist
>MathIeeeDoub
>MathIeeeSing
DEVICES.
========
The following DEVICES were also defined:
>Con for console.device, already opened in Kernel. Didn't name it.
( devices/conunit )
>Timer TIMERNAME timer.device ( devices/timer )
TD_NAME trackdisk.device ( devices/trackdisk )
AUDIONAME audio.device ( devices/audio )
PARALLELNAME parallel.device ( devices/parallel )
SERIALNAME serial.device ( devices/serial )
RESOURCES.
==========
Resource names and base indices defined:
>Ciaa CIAANAME ciaa.resource ( resources/cia )
>Ciab CIABNAME ciab.resource ( resources/cia )
>Disk DISKNAME disk.resource ( resources/disk )
>Misc MISCNAME misc.resource ( resources/misc )
>Potgo POTGONAME potgo.resource ( resources/potgo )
How to use them:
----------------
In the kernel an array of open bases is defined. libbases.
Each base becomes an index in that array. e.g. >Exec is 0 the first
entry in the array. >Dos is the second and is a constant 4.
Any other constant can be defined and metacompiled.
If the array, defined in kernel, is large enough, you can make your own
index to be used. E.g. to use the icon, without compiling into the
kernel.
Define the index constant:
libbase# @ 4* constant >Icon 1 libbase# +!
Next load in the calls, from the workbench/icon file, then open the
library before using them:
:.... ICONNAME 0 OpenLibrary libbases >Icon + ! ....;
When finished, you can close it or let the system close it.
:.... libbases >Icon + @ CloseLibrary libbases >Incom + off ...;
added note: have defined the following word:
: libindex: libbase# @ 4* constant 1 libbase# +! ;
it creates the next index.
FILESIZES.
==========
Following are the dictionary requirements for each file.
libraries
---------
configregs 2238
configvars 528
diskfont 838 *
dos 3424 **
dosextens 3248 6672 ( subtotal dos+dosextens )
filehandler 766
layers 864
mathffp 852
translator 224
----
12982
* Name conflict in diskfont. AvailFonts is a structure and a
system call. Have renamed the system call Availfonts.
** Name conflict in dos. DateStamp is a structure and a
system call. Have renamed the system call Datestamp.
dosextens requires dos to be loaded first.
workbench
---------
icon 504
startup 252
workbench 962
----
1718
exec
----
alerts 3032
devices 296
errors 142
execbase 1336
interrupts 442
io 792
libraries 780
lists 424
memory 882
miscellaneous 144
nodes 614
ports 436
resident 534
semaphores 702
tasks 1654
-----
12210
graphics
--------
clip 952
collide 150
copper 876
display 462
gels 2350
gfx 580
gfxbase 988
graphint 138
layers 630
rastport 2210
regions 486
sprite 282
text 1342
view 1262
-----
12708
intuition
---------
border 234
gadget 2580
image 250
intuimessage 1086
intuitext 298
intuitionbase 266
menu 1260
miscellaneous 362
preferences 2786
remember 188
requester 934
screen 1482
window 2530
-----
14256
resources
---------
cia 398
disk 978
misc 384
potgo 188
----
1948
hardware
--------
adkbits 998
blit 1364
cia 3118
custom 1868
dmabits 808
intbits 846
----
9002
devices
-------
audio 966
bootblock 262
clipboard 592
console 1368
conunit 938
gameport 586
input 260
inputevent 2730
keyboard 196
keymap 930
narrator 1210
parallel 1140
printer 2930
prtbase 1736
serial 2110
timer 434
trackdisk 1800
-----
20188
========
Grand Total 85,012 bytes.