JarrettBillingsley
Joined: 20 Jun 2006 Posts: 457 Location: Pennsylvania!
|
Posted: Fri Aug 04, 2006 7:39 pm Post subject: August 4th - happy happy happy |
|
|
I ran this through the compiler:
Code: | local a, b, c;
if(a < 10 || b < 10 || c < 10)
print("hi");
else
print("bye"); |
and got:
Code: | Function at simple.md(1:1)
Local a(at simple.md(1:7), reg 0)
Local b(at simple.md(1:10), reg 1)
Local c(at simple.md(1:13), reg 2)
Const 0: 10
Const 1: "print"
Const 2: "hi"
Const 3: "bye"
[0] cmp r0, c0
[1] jlt 5
[2] cmp r1, c0
[3] jlt 3
[4] cmp r2, c0
[5] jge 5
[6] getg r3, c1
[7] lc r4, c2
[8] call r3, 2, 0
[9] jmp 4
[10] getg r3, c1
[11] lc r4, c3
[12] call r3, 2, 0
[13] ret r0, 1 |
joy joy joy joy joy! It works!
It's not done, but I am so happy it works. |
|