Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .constant
- OBJREF 0x30
- .end-constant
- .main
- .var
- a
- b
- temp
- des
- simt
- .end-var
- start: IN
- DUP
- BIPUSH 0x2B
- IF_ICMPEQ goto
- DUP
- BIPUSH 0x2D
- IF_ICMPEQ goto3
- DUP
- BIPUSH 0x2A
- IF_ICMPEQ goto4
- DUP
- BIPUSH 0x3D
- IF_ICMPEQ goto2
- GOTO start
- goto: POP
- INVOKEVIRTUAL sudek
- GOTO start
- goto3: POP
- INVOKEVIRTUAL atimk
- GOTO start
- goto4:
- INVOKEVIRTUAL daugink
- GOTO start
- goto2: POP
- OUT
- HALT
- .end-main
- .method sudek(a, b)
- ILOAD a
- BIPUSH 0x30
- ISUB
- ISTORE a
- ILOAD b
- BIPUSH 0x30
- ISUB
- ISTORE b
- ILOAD a
- ILOAD b
- IADD
- IRETURN
- .end-method
- .method atimk(a, b)
- ILOAD a
- BIPUSH 0x30
- ISUB
- ISTORE a
- ILOAD b
- BIPUSH 0x30
- ISUB
- ISTORE b
- ILOAD a
- ILOAD b
- ISUB
- IRETURN
- .end-method
- .method daugink(a, b, temp)
- ILOAD a
- BIPUSH 0x30
- ISUB
- DUP
- ISTORE a
- ILOAD b
- BIPUSH 0x30
- ISUB
- ISTORE temp
- IINC temp -1
- start: ILOAD temp
- IFEQ end
- ILOAD a
- IADD
- IINC temp -1
- GOTO start
- end: IRETURN
- .end-method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement