Re: 42s program question Message #5 Posted by Diego Diaz on 8 Aug 2012, 5:05 p.m., in response to message #4 by David Persinger (US)
Hi David,
The "|-" symbol represents the ALPHA append function: whatever is between quotation marks after the "|-" symbol will be appended to the right of the ALPHA register contents.
To get this append character into your program just activate ALPHA mode en hit ENTER key.
Note that in the line 18 |-?": > ", the question mark "?" is a typo?: it must not be entered, just enter 18 |-": > "
x!=y? is the x<>y? sometimes represented as x#y?: Is x different from y?
The "!=" (not equal to) comparison operator is fairly common in early "C" language machines.
Hope this helps.
Cheers.
Diego.
Edited: 8 Aug 2012, 5:24 p.m.
|