12-27-2013, 04:08 AM
(12-27-2013, 01:43 AM)Magazorb Wrote:(12-26-2013, 10:22 PM)mort96 Wrote: http://mortie.org/?webapp=compiler_16
2Questions,
Q1). What use will label provide?
Q2). What's the point of having 2 functions for shifting over 1 function with a bit for which direction to shift and just save to the same address as ARG1? (not hard to duplicate if you required the before shift and after)
TBH quite intresting stuff and would love to see how this turns out
Labels will let you go to places in the code. You can for instance do this:
LABEL pizza
then a bit further down in your code:
GOTOEQ pizza A 423
That will go back to the pizza label if register A == 423.
I guess whether you want "LSHIFT A" and "RSHIFT A" or "SHIFT A L" or "SHIFT A R" is a matter of opinion.
(12-27-2013, 02:46 AM)Chibill Wrote: what does it compile to?
And time to finish my external binarry to schematic convertor!
It compiles into machine code, that is the 0s and 1s represented by torches in the program memory.