Ryex / ic10emu

A Stationeers IC10 code editor and emulator
https://ic10emu.dev/
Apache License 2.0
4 stars 2 forks source link

Fix register aliases #5

Closed Emilgardis closed 3 months ago

Emilgardis commented 3 months ago

Makes the following code work

define ratio 0.1
loop:
alias foo r0
move foo ratio
j loop

which currently fails with Error on line 0: Instruction Pointer out of range: '0' and then Error on line 3: Incorrect Operand Type for operand 1, not a Register

Emilgardis commented 3 months ago

I think this was fixed in 07f271d, the code snippet works now :D

Ryex commented 3 months ago

I didn't even see you PR XD. Yeah, discovered and fixed