dComArk15/Aflevering3-Overloeb/eq.j
Christoffer Müller Madsen e2e36f9f0d initial commit
2016-01-03 13:29:05 +01:00

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