Description:
Pop top short and convert it into a signed decimal representation. Push ASCII characters for each decimal digit, followed by the number of digits, on to the stack. (Number of digits depends on the short value.)
Flags Affected:
Possible Errors:
| tvmStackOverflow | - | There is not enough room on the stack to push the ASCII characters and digit count for the signed decimal represenation of the short. |
Example:
fmtsd
Before
| stack | | | top | | 1 | 0x92 | | 2 | 0xA7 | | | bottom |
|
| | After
| stack | | | top | | 1 | 0x06 | | 2 | 0x38 | | 3 | 0x33 | | 4 | 0x36 | | 5 | 0x32 | | 6 | 0x32 | | 7 | 0x2D | | | bottom |
|
|
version: 1.0, build 80903
© Copyright 1994-2008 Acroname, Inc., Boulder, Colorado. All rights reserved.