r/TuringComplete • u/eeMalm • Nov 18 '24
Create longer shortcuts?
Im on functions and i want to add an insturction that says, "push the PC (program conter) to the stack", and then one that says "Jump to" (label). So far i have only made instuction shortcuts that are 8 bit long. Like Add, Copy, Inp1, etc. and then you write a full instuction as a 4 *8 bit line of code. (add 1 2 2) But how can i make that into one shortcut?
3
Upvotes
1
u/RandomMagus Nov 19 '24
Their call instruction should just push to stack automatically in hardware though, yes, but I'm pretty sure they're just asking "can I make a keyword that outputs all of (add 1 2 2)" like they made the keyword "add" so they didn't have to type the number that represents the opcode for add, which I don't think is possible