SMW Memory Map
ROM Address |
Length |
Type |
Description |
Details |
$00974C
|
4 bytes |
Subroutine (JSL) |
Calls the hexadecimal to decimal subroutine (in short HexToDec) to convert a hexadecimal value into a decimal string at $009045 and ends in an RTL.
Input:
-A (8-bit value).
Output:
-A: 1s digit (repeated subtraction remainder (“modulo”) once A < 10)
-X: 10s digit (the “quotient” of A divided by 10) |