Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
infocom:table_of_opcodes [2024/08/18 18:16] – Added XZIP opcodes and EXTOPs robert | infocom:table_of_opcodes [2024/11/14 21:34] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 6: | Line 6: | ||
| 002 | LESS? int1,int2 |||| PRED | Is int1 less than int2? | | | 002 | LESS? int1,int2 |||| PRED | Is int1 less than int2? | | ||
| 003 | GRTR? int1,int2 |||| PRED | Is int1 greater than int2? | | | 003 | GRTR? int1,int2 |||| PRED | Is int1 greater than int2? | | ||
- | | 004 | IGRTR? var,int |||| PRED | Increments | + | | 004 | DLESS? var,int |||| PRED | Decrements |
- | | 005 | DLESS? var,int |||| PRED | Decrements | + | | 005 | IGRTR? var,int |||| PRED | Increments |
| 006 | IN? obj1,obj2 |||| PRED | Is obj1 contained in obj2? | | | 006 | IN? obj1,obj2 |||| PRED | Is obj1 contained in obj2? | | ||
| 007 | BTST word1,word2 |||| PRED | Is every bit that is on in word2 also on in word1? | | | 007 | BTST word1,word2 |||| PRED | Is every bit that is on in word2 also on in word1? | | ||
Line 27: | Line 27: | ||
| 023 | DIV int1,int2 |||| VAL | Divides int1 by int2, returning the truncated quotient. | | | 023 | DIV int1,int2 |||| VAL | Divides int1 by int2, returning the truncated quotient. | | ||
| 024 | MOD int1,int2 |||| VAL | Divides int1 by int2, returning the remainder. | | | 024 | MOD int1,int2 |||| VAL | Divides int1 by int2, returning the remainder. | | ||
- | | 025 | - | CALL2 fcn,any | ICALL2 routine: | + | | 025 | - | CALL2 fcn, |
- | | 026 | - | - | COLOR fore: | + | | 026 | - | - | ICALL2 routine: |
- | | 027 | - | - | - | - | | | | + | | 027 | - | - | COLOR fore: |
| 028 | - | - | THROW any,frame || | THROW returns any from a frame. It is as though the routine in which the CATCH was done returned any. | | | 028 | - | - | THROW any,frame || | THROW returns any from a frame. It is as though the routine in which the CATCH was done returned any. | | ||
| 029 | - | - | - | - | | | | | 029 | - | - | - | - | | | | ||
Line 200: | Line 200: | ||
| ::: | - | - | EXTOP:259 ASHIFT int,n || VAL | ASHIFT performs a 16-bit arithmetic shift on int, shifting it left n bits if n is positive, and right the absolute value of n bits if n is negative. In an arithmetic shift, the sign bit is propagated on rightward shifts, meaning that a negative number stays negative. | | | ::: | - | - | EXTOP:259 ASHIFT int,n || VAL | ASHIFT performs a 16-bit arithmetic shift on int, shifting it left n bits if n is positive, and right the absolute value of n bits if n is negative. In an arithmetic shift, the sign bit is propagated on rightward shifts, meaning that a negative number stays negative. | | ||
| ::: | - | - | EXTOP:260 || VAL | Selects a particular font for the currently selected window, and returns the number of the previously selected font. If the new font cannot be selected for some reason, returns 0. The font should be remembered for that window until it is explicitly changed. Font 1 is the ”normal” font for the machine in question, and it is selected initially for both screen windows. The interpreter is responsible for updating the FWRD parameter word whenever the font changes. FONT prints and empties the output buffer. It should be possible to change fonts many times, even during a line or word of output. In ZIP20, in addition to the normal font (1), and the picture font (2), font 3 is the VT100 character graphics set. | | | ::: | - | - | EXTOP:260 || VAL | Selects a particular font for the currently selected window, and returns the number of the previously selected font. If the new font cannot be selected for some reason, returns 0. The font should be remembered for that window until it is explicitly changed. Font 1 is the ”normal” font for the machine in question, and it is selected initially for both screen windows. The interpreter is responsible for updating the FWRD parameter word whenever the font changes. FONT prints and empties the output buffer. It should be possible to change fonts many times, even during a line or word of output. In ZIP20, in addition to the normal font (1), and the picture font (2), font 3 is the VT100 character graphics set. | | ||
- | | ::: | - | - | EXTOP:261 DISPLAY picture: | + | | ::: | - | - | EXTOP:261 DISPLAY picture: |
- | window is used. | | + | |
| ::: | - | - | EXTOP:262 PICINF picture: | | ::: | - | - | EXTOP:262 PICINF picture: | ||
| ::: | - | - | EXTOP:263 DCLEAR picture: | | ::: | - | - | EXTOP:263 DCLEAR picture: | ||
Line 213: | Line 212: | ||
| 192 | - | - | - | - | | | | | 192 | - | - | - | - | | | | ||
| 193 | EQUAL? any1, | | 193 | EQUAL? any1, | ||
- | | 194 | - | - | - | - | | | | + | | 194 | LESS? int1, |
- | | 195 | - | - | - | - | | | | + | | 195 | GRTR? int1, |
- | | 196 | - | - | - | - | | | | + | | 196 | IGRTR? var, |
- | | 197 | - | - | - | - | | | | + | | 197 | DLESS? var, |
- | | 198 | - | - | - | - | | | | + | | 198 | IN? obj1, |
- | | 199 | - | - | - | - | | | | + | | 199 | BTST word1, |
- | | 200 | - | - | - | - | | | | + | | 200 | BOR word1, |
- | | 201 | - | - | - | - | | | | + | | 201 | BAND word1, |
- | | 202 | - | - | - | - | | | | + | | 202 | FSET? obj, |
- | | 203 | - | - | - | - | | | | + | | 203 | FSET obj, |
- | | 204 | - | - | - | - | | | | + | | 204 | FCLEAR obj, |
- | | 205 | - | - | - | - | | | | + | | 205 | SET var, |
- | | 206 | - | - | - | - | | | | + | | 206 | MOVE obj1, |
- | | 207 | - | - | - | - | | | | + | | 207 | GET table, |
- | | 208 | - | - | - | - | | | | + | | 208 | GETB table, |
- | | 209 | - | - | - | - | | | | + | | 209 | GETP obj, |
- | | 210 | - | - | - | - | | | | + | | 210 | GETPT obj, |
- | | 211 | - | - | - | - | | | | + | | 211 | NEXTP obj, |
- | | 212 | - | - | - | - | | | | + | | 212 | ADD int1, |
- | | 213 | - | - | - | - | | | | + | | 213 | SUB int1, |
- | | 214 | - | - | - | - | | | | + | | 214 | MUL int1, |
- | | 215 | - | - | - | - | | | | + | | 215 | DIV int1, |
- | | 216 | - | - | - | - | | | | + | | 216 | MOD int1, |
| 217 | - | - | - | - | | | | | 217 | - | - | - | - | | | | ||
| 218 | - | - | - | - | | | | | 218 | - | - | - | - | | | | ||
Line 277: | Line 276: | ||
Return to [[: | Return to [[: | ||
+ |