Name: Anonymous 2012-02-05 23:07
Hello /prog/, maybe you can help me with this...
So I'm learning Java Assembly with JASMIN, and I can't quite figure out how to invoke a method in the same class file.
http://pastebin.com/Fg7KRgzV
I have this "Generate(I)I" method given to me, but the compiler wants a "main" method to be written. So, I wrote the "main" header, but I am very unsure of the exact syntax of how to simply invoke that "Generate(I)I" method inside. I believe it's either needs the "invokestatic" or "invokevirtual" instruction. How does that syntax work? I've hopelessly tried many times to guess the actual syntax to get this running.
So I'm learning Java Assembly with JASMIN, and I can't quite figure out how to invoke a method in the same class file.
http://pastebin.com/Fg7KRgzV
I have this "Generate(I)I" method given to me, but the compiler wants a "main" method to be written. So, I wrote the "main" header, but I am very unsure of the exact syntax of how to simply invoke that "Generate(I)I" method inside. I believe it's either needs the "invokestatic" or "invokevirtual" instruction. How does that syntax work? I've hopelessly tried many times to guess the actual syntax to get this running.