Changes
Jump to navigation
Jump to search
Adds two numbers together Subtracts "Oper" from "Dest" and stores the result back into "Dest". The result of the addition subtraction is capped at -32768. Oddly enough the result is not capped at 255the positive end, 32767, so subtracting a large negative number from a large positive number will still produce wrap-around.If the Source Bank is 0 then the “Oper†is added to subtracted from the destination value.If the Source Bank is an 8 16 bit bank, then the “Oper†is the address in that bank where the operand is.
no edit summary
* '''const Bit[4]''' ''D'': Destination bank
* '''const Bit[4]''' ''S'': Source bank
* '''const UByte''' ''Dest'': The destination variable, to which the operand is addedsubtracted.* '''const UByteSWord''' ''Oper'': The operand, added to be subtracted from the destination.
==== Description ====