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

Jump to navigation Jump to search
m
behaviour -> behavior
m (Linkify reference to sections)
m (behaviour -> behavior)
 
(2 intermediate revisions by 2 users not shown)
Line 226: Line 226:
Returns: (word) The width of the cel identified by the tuple (view, loop, cel).<br>
Returns: (word) The width of the cel identified by the tuple (view, loop, cel).<br>


===Kernel function 0x0f: CelWide(word view, word loop, word cel)===
<syntax type="C">kfunct 0x10: CelHigh();
word view, word loop, word cel;</syntax>


(HeapPtr) <tt>view:</tt> The view we're searching in <tt>loop:</tt> The loop the cel is contained in <tt>cel:</tt> The cel we're interested in<br>
Returns: (word) The height of the cel identified by the tuple (view, loop, cel).<br>


===Kernel function <tt>0x11: DrawCel(word, word, word, Point, word)</tt>===
===Kernel function <tt>0x11: DrawCel(word, word, word, Point, word)</tt>===
Line 771: Line 765:
Stops all music and sound effects.<br>
Stops all music and sound effects.<br>


==Kernel function 0x32: NewList()===
===Kernel function 0x32: NewList()===
<syntax type="C">kfunct 0x32: NewList();</syntax>
<syntax type="C">kfunct 0x32: NewList();</syntax>


Line 968: Line 962:
Returns: (word) Either the time of day in seconds, or the elapsed number of ticks since the interpreter started.<br>
Returns: (word) Either the time of day in seconds, or the elapsed number of ticks since the interpreter started.<br>


This function is somewhat strange, because it determines its behaviour not by the value of a parameter passed, but by its presence instead. Please note that the time of day in this case does not distinguish between am and pm.
This function is somewhat strange, because it determines its behavior not by the value of a parameter passed, but by its presence instead. Please note that the time of day in this case does not distinguish between am and pm.


===Kernel function 0x47: StrEnd(HeapPtr)===
===Kernel function 0x47: StrEnd(HeapPtr)===
2,051

edits

Navigation menu