Difference between revisions of "SCI/Specifications/SCI virtual machine/Kernel functions"

Jump to navigation Jump to search
m
Fixed typos, linkify section reference
(Fixed formatting, converted math formulas to images)
m (Fixed typos, linkify section reference)
Line 1,116: Line 1,116:
If both conditions are met, 1 is returned. Otherwise, 0 is returned.
If both conditions are met, 1 is returned. Otherwise, 0 is returned.


===Kernel function 0x52: OnControKword, Point | Rect)===
===Kernel function 0x52: OnControl(word, Point | Rect)===
<syntax type="C">kfunct 0x52: OnControl();
<syntax type="C">kfunct 0x52: OnControl();
word map, Point|Rect area;</syntax>
word map, Point|Rect area;</syntax>
Line 1,125: Line 1,125:
Returns: (word) The resulting bitfield<br>
Returns: (word) The resulting bitfield<br>


This function scans the indicated point or area on the specified map, and sets the bit corresponding to each color value found correspondingly. For example, if scanning map 4 (special) would touch two areas, one with color value 1 and one with color value 10, the resulting return value would be 0x0402 (binary 0000010000000010). See also "Pictures and movement control" section.
This function scans the indicated point or area on the specified map, and sets the bit corresponding to each color value found correspondingly. For example, if scanning map 4 (special) would touch two areas, one with color value 1 and one with color value 10, the resulting return value would be 0x0402 (binary 0000010000000010).  
 
See also "[[SCI/Specifications/Graphics/Pictures and movement control|Pictures and movement control]] section.


===Kernel function 0x53: InitBresen(HeapPtr [, word])===
===Kernel function 0x53: InitBresen(HeapPtr [, word])===
236

edits

Navigation menu