PeterTillema / ICE

ICE Compiler for the TI-84 Plus CE
22 stars 1 forks source link

Asm( improvements #145

Open commandblockguy opened 5 years ago

commandblockguy commented 5 years ago

The user should be able to do something like Asm(21000000)->VAR to store the value of the hl register after the assembly was executed into an ICE variable. It would also be useful to be able to add ICE values to the stack prior to running the assembly code by doing something like this: Asm(DDE5DD21000000DD39DD2709DD070C09DDE1, 69, 420)->VAR. This would allow assembly hex codes to interact with the ICE programs that contain them more easily.

PeterTillema commented 5 years ago

Asm(DDE5DD21000000DD39DD2709DD070C09DDE1, 69, 420)->VAR.

What does this code do? Push 420 to the stack, then 69, then executes the assembly?

commandblockguy commented 5 years ago

Correct, I probably should have specified that. The assembly is just a simple example that would add the two numbers and return the result in hl.

PeterTillema commented 5 years ago

Sounds like a good idea, I will see if I have time (and motivation) to implement this somehow. Probably need to change a lot (since now Asm( can be used inline), so idk when it's ready.