Closed ghost closed 11 years ago
astore_x is a special 1 byte shorthand opcode used for storing into the first four local slots. For slot 11, you'd have to use the two byte version, "astore 11" (space instead of underscore).
If you wanted a slot above 255, you'd have to use the four byte version "wide astore 256".
Alright, this one I am not sure if something I did was wrong or if there is an error w/ Krakatau. I was editing the "dig" method inside of the class "TurtleTool". I had to add an extra local to be used so I switched the stack limit from 10 to 11, and switch the locals limit from 11 to 12 not sure if this was right and inserted the following right after the limits are set.
http://pastebin.com/SXrXXdPh
But when I try to assemble it I get the following error w/ Krakatau.
http://pastebin.com/DQe6KPve
Line 241 for me is the following "astore_11"
https://dl.dropbox.com/u/7231478/TurtleTool.class