Open scgilardi opened 2 years ago
print1 - an example with native code to print an integer via write to stdout
print1
write
stdout
includes an additional stack word rot because without it, using the 3rd item on the stack is inconvenient
rot
implemented as an example because perhaps we don't want to expand print inline on every use.
includes signmag that converts an integer to sign-magnitude form
print1
- an example with native code to print an integer viawrite
tostdout
includes an additional stack word
rot
because without it, using the 3rd item on the stack is inconvenientimplemented as an example because perhaps we don't want to expand print inline on every use.
includes signmag that converts an integer to sign-magnitude form