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/19 23:37] – added XOP versions of 2OPs (1-24 + 192) 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 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 277: | Line 276: | ||
Return to [[: | Return to [[: | ||
+ |