Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
infocom:table_of_opcodes [2024/08/19 23:37] – added XOP versions of 2OPs (1-24 + 192) robertinfocom: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 the value of var by one and succeeds if the new value is greater than int. | +| 004 | DLESS? var,int |||| PRED | Decrements the value of var by one and succeeds if the new value is less than int. | 
-| 005 | DLESS? var,int |||| PRED | Decrements the value of var by one and succeeds if the new value is less than int. |+| 005 | IGRTR? var,int |||| PRED | Increments the value of var by one and succeeds if the new value is greater than int. |
 | 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:int,x:int,y:int || | A picture is a number that indexes into the ”picture library.” DISPLAY displays a picture at the location (x,y) (specified in pixels). The location given is where the upper left corner of the picture should appear. The upper left corner of the screenis the location 1,1. If the x or y argument is not supplied or 0, then the current x or y position in the current +| ::: | - | - | EXTOP:261 DISPLAY picture:int,x:int,y:int || | A picture is a number that indexes into the ”picture library.” DISPLAY displays a picture at the location (x,y) (specified in pixels). The location given is where the upper left corner of the picture should appear. The upper left corner of the screenis the location 1,1. If the x or y argument is not supplied or 0, then the current x or y position in the current window is used. |
-window is used. |+
 | ::: | - | - | EXTOP:262 PICINF picture:int,data:tbl || PRED | PICINF is used to get data about a picture. The interpreter fills in the table data with the width (word 0) and height (word 1) of the picture specified, in pixels. | | ::: | - | - | EXTOP:262 PICINF picture:int,data:tbl || PRED | PICINF is used to get data about a picture. The interpreter fills in the table data with the width (word 0) and height (word 1) of the picture specified, in pixels. |
 | ::: | - | - | EXTOP:263 DCLEAR picture:int,x:int,y:int || | Clears the area taken up by the picture. i.e., restores the screen background color. | | ::: | - | - | EXTOP:263 DCLEAR picture:int,x:int,y:int || | Clears the area taken up by the picture. i.e., restores the screen background color. |
Line 277: Line 276:
  
 Return to [[:Infocom:]] Return to [[:Infocom:]]
 +