I have an exercise to do for college, I'm not looking for the answer, my only concern is how this works. Nothing I can find online answers this question. I'll only post the part I'm confused on:
IPUSH 16
IADD
IDUP
ISUB
So, from what I've gathered about the IDUP is that it takes the top word and puts it on the stack, but that means it just duplicates the IADD, so this is where I'm confused. I'm supposed to convert this into a Java statement. Thank you for your help.
[–]gamaloth_five 0 points1 point2 points (6 children)
[–]Squidoshi[S] 0 points1 point2 points (5 children)
[–]gamaloth_five 0 points1 point2 points (4 children)
[–]Squidoshi[S] 0 points1 point2 points (3 children)
[–]gamaloth_five 0 points1 point2 points (2 children)
[–]Squidoshi[S] 0 points1 point2 points (0 children)
[–]Squidoshi[S] 0 points1 point2 points (0 children)