home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_GEN
/
FORTH_86.ZIP
/
HILCOM.DEM
< prev
next >
Wrap
Text File
|
1993-10-23
|
2KB
|
69 lines
brkon
OFF PRINTLOAD
LAST @ " -- LAST" ." .H 5 spcs
HEAD @ " -- HEAD" ." .H 5 spcs
HEAD @ " -- HEAD" ." .H 5 spcs
iload apps.img " apps.img loaded" ." crlf
LAST @ " -- LAST" ." .H 5 spcs
HEAD @ " -- HEAD" ." .H 5 spcs
HEAD @ " -- HEAD" ." .H 5 spcs
fload hilsier2.4th ( " 7hilsier2 loaded" ." crlf )
: saymore crlf 5 spcs
" If you want to try this in greater depth" ." crlf 5 spcs
" use 4TH_86FP.COM and type FLOAD HILSIER.4TH" ." crlf 5 spcs
crlf " Then you can put in parameters " ." crlf crlf
" such as 3 2 HILB or 3 2 SIERP " ." crlf crlf
" where 3 is number of levels and 2 is magnification" ." crlf
" (best to keep magnification at 1 usually " ." crlf crlf
" in which case you need only type 3 HILB or 6 SIERP) " ."
crlf crlf 5 spcs " Larry Buchan" ." ;
: doit 3 secdelay hilb 5 secdelay sierp 5 secdelay norm saymore
crlf crlf 10 secdelay ;
( define a constant that is the def adr of the last word)
LAST @ 2DUPB@ + 2+ 2@ CONST ENTRYPOINT
: MYPROGRAM crlf 5 spcs
" This is a demonstration 4th_86 PROGRAM" ." crlf 5 spcs
" of Hilbert and Sierpin curves " ." crlf 5 spcs
crlf " W A I T ====> " ." crlf crlf
" each picture lasts 5 seconds " ." ;
: BOOT ( bootstrap)
3000h setmem brkoff 0 ivpage ! norm myprogram crlf crlf ENTRYPOINT EXEC
bye ;
1000 ( 128) CONST SYSIZE ( stack space for program)
'' SYSIZE BLOCK SYSTK ( define stack)
100H
CODE GOFORTH
HEAD @ SWAP GETLOC SWAP ORG jmp tos ( JMP, ) HEAD !
( THIS PATCHED THE STARTUP JUMP INTO THE GIVEN LOC.)
( SP ) '' SYSTK '' SYSIZE + 10 - ( LXI, ) mov sp,tos ( SET SP)
( H ) '' SYSTK ( LXI, ) mov bx,tos ( '' CSP SHLD, )
( df89h head! ) mov di,bx ( SET CSP)
:ENTER BOOT ( enter forth and execute user bootstrap)
;
" hilmap" map
STATUS ( print code size)
" hilbert.COM" SAVE
" HILBERT.COM written ^13 10^ " ."
bye
( q-u-it )