11.2. Instrukční sada procesoru F21

FIXME:

Tabulka 11.2. F21 Instruction Set

opcodenamedescriptionforth
00elseunconditional jumpELSE
01T=0jump if T0-19 zeroDUP IF
02callpush P+1 to R, jump:
03C=0jump if T20 zeroCARRY? IF
04   
05   
06retpop P from R;
07   
08@R+fetch, address in R, increment RR@ @ R> 1+ >R
09@A+.fetch, address in A, increment AA @ @ 1 A +!
0A#fetch 20-bit in-line literalLIT
0B@Afetch, address in AA @ @
0C!R+store, address in R, increment RR@ ! R> 1+ >R
0D!A+store, address in A, increment AA @ ! 1 A +!
0E   
0F!Astore, address in AA @ !
10comcomplement T-1 XOR
112*shift T, 0 to T02*
122/shift T, T20 to T192/
13+*add S to T if T0 oneDUP 1 AND IF OVER + THEN
14-orexclusive-or S to TXOR
15andand S to TAND
16   
17+add S to T+
18poppop R, push into TR>
19A@push A into TA @
1Aduppush T into TDUP
1Boverpush S into TOVER
1Cpushpop T, push into R>R
1DA!pop T into AA !
1Enop NOP
1Fdroppop TDROP

Implementace slov FORTHu jako maker:

: @     A! @A ;
: !     A! !A ;
: -1    dup dup -or com ;
: 0     dup dup -or ;
: OR    over com and -or ;
: SWAP  A! push A@ pop ;
: long_jump # (com) push ;