dComArk15/Aflevering3-Overloeb/eq.j

14 lines
227 B
Plaintext
Raw Normal View History

2016-01-03 12:29:05 +00:00
.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