14 lines
227 B
Plaintext
14 lines
227 B
Plaintext
|
.method main
|
||
|
.args 3
|
||
|
.define a = 1
|
||
|
.define b = 2
|
||
|
|
||
|
iload a
|
||
|
iload b
|
||
|
isub // Find the difference between a and b
|
||
|
ifeq true // If a and b are equal, return 1
|
||
|
false: bipush 0 // else: return 0
|
||
|
ireturn
|
||
|
true: bipush 1
|
||
|
ireturn
|