Description:
Pop the top short off of the stack and perform signed multiplication with the new top short. If the result exceeds the limits for a short, the Carry flag will be set.
Pseudo Code:
stack[sp - 4] = (short) (stack[sp - 2] * stack[sp - 4])
sp = sp - 2
pc = pc + 1
Flags Affected:
Possible Errors:
Example:
mults
Before
| stack | | | top | | 1 | 0xA5 | | 2 | 0x01 | | 3 | 0x35 | | 4 | 0x00 | | | bottom |
|
| | After
| stack | | | top | | 1 | 0x29 | | 2 | 0x57 | | | bottom |
|
|
version: 1.0, build n.a.
© Copyright 1994-2012 Acroname, Inc., Boulder, Colorado. All rights reserved.