Language…
37 users online: 1UPdudes, Akaginite, Alucard648, anonimzwx, Big Brawler, Bonobi, chineesmw, Daizo Dee Von, E-man38, edgar,  Fyre150, Golden Yoshi, h.carrell, Hammerer, Hayashi Neru, HD_DankBaron, Idunn, King Mayro,  Lazy, Lightning, Mario_B, neidoodle, NerDose, Nitrogen, NovaDelta, Paithus, Sammmoo, simon.caio, sio-kedelic, SomeGuy07, Stivi, Th3Ruan057, TheBourgyman, TheXander, Tulip Time Scholarship Games, will___, wye - Guests: 195 - Bots: 183
Users: 64,316 (2,437 active)
Latest user: Svety7

SMW Memory Map

Displaying 1 out of 1 addresses.

View: moderated | waiting (15)

Filter

Link
  • Pages:
  • 1
ROM Address Length Type Description Details
$009045 12 bytes Subroutine (JSR) The hexadecimal to decimal subroutine (in short HexToDec) which converts a hexadecimal 8-bit value into a decimal string. To use for JSL, use JSL $00974C instead.

Input:
-A: 8-bit value to convert
Output:
-A: 1s digit (calculated via repeated subtraction until < 10; “modulo” by 10)
-X: 10s digit (calculated via how many subtraction until A < 10; “quotient” division by 10)
  • Pages:
  • 1