Quote:
|
Originally Posted by Ambuoroko
So adding a test in the beginning to return if DI is greater than, say, 100, fixes the problem, since I can't/don't know how to check if it's less than zero.
|
cmp di, 0
jl <address offset>
It seems really odd to me that they seem to have taught you how to pass args on the stack (or at least access passed ones), compare register to register, compare register to memory, jump around, but have not yet shown that you can use immediate values in many instructions.