
6F3B0253
7. Instructions
Conversion instructions
FUN | Name | Expression | Function | Steps | Speed | Page |
No. |
|
|
|
| (∝ s) |
|
062 | Hex to ASCII | − [ A HTOA (n) B ]− | Converts the hexadecimal |
|
|
|
| conversion |
| data of n words stating with |
|
|
|
|
|
| A into ASCII characters, and | 4 |
| 161 |
|
|
| stores them in nx2 registers |
|
|
|
|
|
| starting with B. |
|
|
|
063 | ASCII to Hex | − [ A ATOH (n) B ]− | Converts the ASCII |
|
|
|
| conversion |
| characters stored in n |
|
|
|
|
|
| registers stating with A into | 4 |
| 162 |
|
|
| hexadecimal data, and stores |
| ||
|
|
|
|
|
| |
|
|
| them in n/2 registers starting |
|
|
|
|
|
| with B. |
|
|
|
180 | Absolute value | − [ A ABS B ]− | Stores the absolute value of | 3 | 5.0 | 231 |
|
|
| A in B. | |||
|
|
|
|
|
| |
182 | 2’s | − [ A NEG B ]− | Stores the 2’s complement |
|
|
|
| complement |
| value of A in B. | 3 | 4.6 | 232 |
|
|
|
|
|
|
|
183 | − [ A+1⋅A DNEG B+1⋅B ]− | Stores the 2’s complement |
|
|
| |
| 2’s |
| value of A+1⋅A in B+1⋅B. | 3 | 4.6 | 233 |
| complement |
|
|
|
|
|
185 | − [ A 7SEG B ]− | Converts lower 4 bits of A |
|
|
| |
| decode |
| into | 3 | 43.9 | 234 |
|
|
| stores it in B. |
|
|
|
186 | ASCII | − [ A ASC B ]− | Converts the alphanumerics |
|
|
|
| conversion |
| (max. 16 characters) of A |
| 29.8 - |
|
|
|
| into ASCII codes, and stores | 3 - 10 | 236 | |
|
|
| 49.6 | |||
|
|
| them in registers starting |
|
| |
|
|
|
|
|
| |
|
|
| with B. |
|
|
|
188 | Binary | − [ A BIN B ]− | Converts the BCD data in A |
|
|
|
| conversion |
| into binary data, and stores it | 3 | 65.5 | 237 |
|
|
| in B. |
|
|
|
190 | BCD | − [ A BCD B ]− | Converts the binary data in A |
|
|
|
| conversion |
| into BCD data, and stores it | 3 | 55.6 | 238 |
|
|
| in B. |
|
|
|
114