Description:
Pop the top short off of the stack and divide the new top short by the old top short. Replace the new top short with the remainder of the division result.
Pseudo Code:
stack[sp - 4] = ((short) stack[sp - 4]) % ((short) stack[sp - 2])
sp = sp - 2
pc = pc + 1
Flags Affected:
Possible Errors:
Example:
mods
Before
| stack | | | top | | 1 | 0x40 | | 2 | 0x00 | | 3 | 0x29 | | 4 | 0x57 | | | bottom |
|
| | After
| stack | | | top | | 1 | 0x29 | | 2 | 0x00 | | | bottom |
|
|
version: 1.0, build n.a.
© Copyright 1994-2012 Acroname, Inc., Boulder, Colorado. All rights reserved.