1 // $Id: opcodes.h,v 1.7 2004/12/22 12:40:07 iain Exp $
16 #define op_bitand (0x18)
17 #define op_bitor (0x19)
18 #define op_bitxor (0x1A)
19 #define op_bitnot (0x1B)
20 #define op_shiftl (0x1C)
21 #define op_sshiftr (0x1D)
22 #define op_ushiftr (0x1E)
24 #define op_jump (0x20)
33 #define op_jltu (0x2A)
34 #define op_jgeu (0x2B)
35 #define op_jgtu (0x2C)
36 #define op_jleu (0x2D)
38 #define op_call (0x30)
39 #define op_return (0x31)
40 #define op_catch (0x32)
41 #define op_throw (0x33)
42 #define op_tailcall (0x34)
44 #define op_copy (0x40)
45 #define op_copys (0x41)
46 #define op_copyb (0x42)
47 #define op_sexs (0x44)
48 #define op_sexb (0x45)
49 #define op_aload (0x48)
50 #define op_aloads (0x49)
51 #define op_aloadb (0x4A)
52 #define op_aloadbit (0x4B)
53 #define op_astore (0x4C)
54 #define op_astores (0x4D)
55 #define op_astoreb (0x4E)
56 #define op_astorebit (0x4F)
58 #define op_stkcount (0x50)
59 #define op_stkpeek (0x51)
60 #define op_stkswap (0x52)
61 #define op_stkroll (0x53)
62 #define op_stkcopy (0x54)
64 #define op_streamchar (0x70)
65 #define op_streamnum (0x71)
66 #define op_streamstr (0x72)
67 #define op_streamunichar (0x73)
69 #define op_gestalt (0x100)
70 #define op_debugtrap (0x101)
71 #define op_getmemsize (0x102)
72 #define op_setmemsize (0x103)
73 #define op_jumpabs (0x104)
75 #define op_random (0x110)
76 #define op_setrandom (0x111)
78 #define op_quit (0x120)
79 #define op_verify (0x121)
80 #define op_restart (0x122)
81 #define op_save (0x123)
82 #define op_restore (0x124)
83 #define op_saveundo (0x125)
84 #define op_restoreundo (0x126)
85 #define op_protect (0x127)
87 #define op_glk (0x130)
89 #define op_getstringtbl (0x140)
90 #define op_setstringtbl (0x141)
91 #define op_getiosys (0x148)
92 #define op_setiosys (0x149)
94 #define op_linearsearch (0x150)
95 #define op_binarysearch (0x151)
96 #define op_linkedsearch (0x152)
98 #define op_callf (0x160)
99 #define op_callfi (0x161)
100 #define op_callfii (0x162)
101 #define op_callfiii (0x163)
103 #define op_mzero (0x170)
104 #define op_mcopy (0x171)
105 #define op_malloc (0x178)
106 #define op_mfree (0x179)
108 #define op_accelfunc (0x180)
109 #define op_accelparam (0x181)
111 #define op_numtof (0x190)
112 #define op_ftonumz (0x191)
113 #define op_ftonumn (0x192)
114 #define op_ceil (0x198)
115 #define op_floor (0x199)
116 #define op_fadd (0x1A0)
117 #define op_fsub (0x1A1)
118 #define op_fmul (0x1A2)
119 #define op_fdiv (0x1A3)
120 #define op_fmod (0x1A4)
121 #define op_sqrt (0x1A8)
122 #define op_exp (0x1A9)
123 #define op_log (0x1AA)
124 #define op_pow (0x1AB)
125 #define op_sin (0x1B0)
126 #define op_cos (0x1B1)
127 #define op_tan (0x1B2)
128 #define op_asin (0x1B3)
129 #define op_acos (0x1B4)
130 #define op_atan (0x1B5)
131 #define op_atan2 (0x1B6)
132 #define op_jfeq (0x1C0)
133 #define op_jfne (0x1C1)
134 #define op_jflt (0x1C2)
135 #define op_jfle (0x1C3)
136 #define op_jfgt (0x1C4)
137 #define op_jfge (0x1C5)
138 #define op_jisnan (0x1C8)
139 #define op_jisinf (0x1C9)
141 // Special cache control opcodes.
143 #define op_git_setcacheram (0x7940)
144 #define op_git_prunecache (0x7941)