Oxygen Basic
Programming => Example Code => General => Topic started by: Charles Pegge on June 02, 2012, 11:27:37 AM
-
#show
This is a command I introduced on the 24th May.
It displays the Assembly code of a statement at compile time (before the program is executed)
thus
double x
#show x=cos(pi)
displays a messagebox containing:
fldpi
fcos
fstp qword [ebx+4096]
Charles
-
Charles,
This is what I need.
Thank you.
-
There is an earlier method, but #show is easier to use.
The older method is still useful for several lines of code, and works when you hit F7 to compile in Scite.
The Assembly code block appears in the right hand panel, and may be copied to the clipboard.
Use 3 hashes to mark the start and end of a code section
###
for i=1 to 10
j++
next
###
Charles