Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .method Fib(n1, n2, times)
- .var
- temp
- counter
- .end-var
- BIPUSH 0
- ISTORE temp
- BIPUSH 0
- ISTORE counter
- while:
- ILOAD n1
- ILOAD n2
- IADD
- ISTORE temp
- ILOAD n1
- ILOAD n2
- SWAP
- POP
- ISTORE n1
- ILOAD temp
- ISTORE n2
- IINC counter 1
- ILOAD times
- IFICMPEQ end
- GOTO while
- end: ILOAD temp
- IRETURN
- .end-method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement