home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
prog1
/
4th_86.lzh
/
MAND.DEM
< prev
next >
Wrap
Text File
|
1989-02-15
|
1KB
|
54 lines
OFF PRINTLOAD
iload kernel23.img " kernel23.img loaded" ." crlf
: ,AND swap 4 pick and 3 poke and ;
( *******************)
: ,OR swap 4 pick or 3 poke or ;
( *******************)
: ,XOR swap 4 pick xor 3 poke xor ;
g0load 7egam3.bin " 7egam3 loaded " ." crlf
g0load 7double3.bin
gload 7fpoint3.bin
fload 7fpoint3.4th
fload mand.pro
( define a constant that is the def adr of the last word)
LAST @ DUPB@ + 2+ @ CONST ENTRYPOINT
: MYPROGRAM norm ;
: BOOT ( bootstrap)
1000h setmem brkoff myprogram ENTRYPOINT EXEC
q-u-it ;
1000 ( 128) CONST SYSIZE ( stack space for program)
'' SYSIZE BLOCK SYSTK ( define stack)
100H
CODE GOFORTH
HEAD @ SWAP GETLOC SWAP ORG JMP, HEAD !
( That patched the startup jump into the given location)
SP '' SYSTK '' SYSIZE + 10 - LXI, ( SET SP)
H '' SYSTK LXI, ( '' CSP SHLD, )
df89h head! ( mov di,bx) ( SET CSP)
:ENTER BOOT ( enter forth and execute user bootstrap)
;
STATUS ( print code size)
" MAND.COM" SAVE
" COM file written^13 10^" ."
q-u-it