Hash :
57ccc1a8
Author :
Date :
2006-10-30T16:25:35
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
\ Generate something that looks like FCode generated by a Very Custom Tokenizer
fcode-version1
headers
hex
F[
\ If we want to test this against the previous release,
\ we can't do this: 341 emit-fcode
\ Instead, we have to do it in two parts:
03 emit-byte 41 emit-byte \ 0341 = "Simple" Vendor-specific FCode"
]F
-1
dup 0> if
F[
\ Likewise here 369 emit-fcode
03 emit-byte 69 emit-byte \ 0369 = "double(lit)"
ff emit-byte
ff emit-byte
ff emit-byte
ff emit-byte
00 emit-byte
00 emit-byte
00 emit-byte
00 emit-byte
]F
then
dup 0= if
F[
\ Here, too 369 emit-fcode
03 emit-byte 69 emit-byte \ 0369 = "double(lit)"
ff emit-byte
ff emit-byte
ff emit-byte
f0 emit-byte
00 emit-byte
00 emit-byte
00 emit-byte
00 emit-byte
]F
then
0< if
F[
\ Last one 369 emit-fcode
03 emit-byte 69 emit-byte \ 0369 = "double(lit)"
de emit-byte
fe emit-byte
ca emit-byte
8e emit-byte
be emit-byte
ef emit-byte
fe emit-byte
ce emit-byte
]F
then
constant moochie
fcode-end