Results 1 to 3 of 3

Thread: Er, help with this routine? (NDS ACWW)

  1. #1
    Member
    Join Date
    Aug 2008
    Location
    Arizona
    Posts
    1,073
    Blog Entries
    2

    Default Er, help with this routine? (NDS ACWW)

    I'm trying to make a code that does the following

    you type in an item hex, press a button, it searches the town for each occurrence of the item, then it displays how many of that item is in your town.

    The only problem is, I can't figure how to make it add up normally, cause it adds up in hexadecimal. Can someone show me a routine (in ASM) that will add it up in decimal? (sorry, I sorta forgot a lot of ASM, so it hurts my head to try to think of a routine XD)

  2. #2
    J.P. (Global Moderator) Maniac's Avatar
    Join Date
    Sep 2007
    Location
    Ohio, USA
    Posts
    2,083
    Blog Entries
    5

    Default

    Bssically you dont. Make a hex to decimal disply routine?...

    Say what you mean, mean what you say, and let your actions speak for you.


  3. #3
    Member
    Join Date
    Aug 2008
    Location
    Arizona
    Posts
    1,073
    Blog Entries
    2

    Default

    Quote Originally Posted by Maniac View Post
    Bssically you dont. Make a hex to decimal disply routine?...
    No I already have one, I meant like
    instead of going like
    "1,2,3,4,5,6,7,8,9,A,B,C,D,E,F"
    i want it to go "1,2,3,4,5,6,7,8,9,10,11,12 etc"

    And my display routine will display it

    (Unless I misunderstood what you meant, then in that case I don't know how to make a routine that displays stuff like "A" as "10")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •