Language…
39 users online: 1UPdudes, acd13141,  Ahrion, Anas, anonimzwx, bandicoot, chineesmw, cozyduck, Dark Prince, E-man38, Golden Yoshi, Guleyan112, h.carrell, Hammerer, HD_DankBaron, hendog30_, Lightning, lo fang 123, Mario_B, Mohamad20ZX, NerDose, Nitrogen,  patcdr, Phyll, racknae, Ragey, Ralshi02, RPG Hacker,  Sayuri, simon.caio, sio-kedelic, Stivi, TheBourgyman, Torchkas, Tripii, Tulip Time Scholarship Games, Ultima, wye, yoshifanatic - Guests: 192 - Bots: 182
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