CoreForth-0

cortex/janus/init.ft.md


::target::

$3C0 constant init-start
$3C0 constant init-cold
$3C4 constant init-latest
$3C8 constant init-dp
$3CC constant init-vp

: setup-vars    init-latest @ latest ! init-dp @ (dp) ! init-vp @ vp !
::dtc::         ['] docol #docol 2 cells move
::dtc::         ['] next #docol 2 cells + cell move
::dtc::         ['] dodoes #dodoes 3 cells move
::dtc::         true
::itc::         true
::stc::         false
                ram? !  ;

::stc:: code reset-handler
::stc::                 $4668 $3820 $0006 $4801 $6800 $4687 $03C0 $0000 end-code
::stc:: : .threading ." [STC]" ;

::dtc:: code reset-handler
::dtc::                 $4668 $3880 $0006 $4f02 $cf20 $1c6d $4728
::dtc::                 $ffff $03c0 $0000 end-code
::dtc:: : .threading ." [DTC]" ;

::itc:: t: reset-handler
::itc::                 $4668 th, $3880 th, $0006 th, $4f02 th, $cf20 th, $682c th, $46a7 th,
::itc::                 $ffff th, $03c0 th, $0000 th,
::itc:: : .threading ." [ITC]" ;