Description:
Pop top short and convert it into a 16-digit binary representation. Push ASCII characters for each binary digit, followed by the number of digits, on to the stack.
Flags Affected:
Possible Errors:
| tvmStackOverflow | - | There is not enough room on the stack to push the ASCII characters and digit count for the 16-digit binary represenation of the short. |
Example:
fmtsb
Before
| stack | | | top | | 1 | 0x92 | | 2 | 0xA7 | | | bottom |
|
| | After
| stack | | | top | | 1 | 0x10 | | 2 | 0x30 | | 3 | 0x31 | | 4 | 0x30 | | 5 | 0x30 | | 6 | 0x31 | | 7 | 0x30 | | 8 | 0x30 | | 9 | 0x31 | | 10 | 0x31 | | 11 | 0x31 | | 12 | 0x31 | | 13 | 0x30 | | 14 | 0x30 | | 15 | 0x31 | | 16 | 0x30 | | 17 | 0x31 | | | bottom |
|
|
version: 1.0, build 80903
© Copyright 1994-2008 Acroname, Inc., Boulder, Colorado. All rights reserved.