A small step further (which I did not test but should work) is to get
rid of the C code in the actual program:
; define function in C
;@j2c print_var(int value) { printf("%d\n", value) ; }
var byte a, b, c
a = 3
b = 1
forever loop
c = a * b
print_var(c)
b = b + 1
end loop
Note1: you can use more variables in the call, all variables are assumed 'in'.
Note2: you can of course also split the j2c code if you value readability:
;@j2c print_var(int value)
;@j2c {
;@j2c printf("%d\n", value) ;
;@j2c }
@Matt Do you get output on the screen when you run maketest.bat?
Joep
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.