Enables/disables P-Code listing depending on the argument which may be 0/1 or false/true respectively. The listing will be displayed by sysLog, so using this directive requires the system library loaded in advance. Optionally you may save the listing in a file by opening a logfile in advance: #loadLibrary 'KcSyslib' // load system library
#logFile 'listing' // open logfile
#list true // enable listing
var main()
{
sysLog('hello world');
} // main
#logFile '' // close logfile
This will show the listing on screen and save it to listing.log: test.css: var main()
address opcode parameter
-------- ------ -----------------------------
0 push hello world
1 push 1
2 call sysLog
3 pop
4 push
5 ret
code: 36 text: 21 total: 57
|