gba asm Question?

Discussion in 'GBA - Game Development, ROM Hacks and Translations' started by kenghot, Nov 14, 2006.

  1. kenghot
    OP

    kenghot Member

    Newcomer
    29
    0
    Nov 4, 2006
    Thailand
    Now i strat to debug ffv . Now i use Tracer-vgba to trace command in gba and i got some trace.log. Could some body tell me what is the command of arm7 that perform which button that user press? and how do i know that's 'A' button.
     
  2. dblank

    dblank Advanced Member

    Newcomer
    50
    0
    Sep 24, 2006
    Does this help? (from http://nocash.emubase.de/gbatek.txt)

    Keypad Input
    ------------

    The built-in GBA gamepad has 4 direction keys, and 6 buttons.

    4000130h - KEYINPUT - Key Status Â
    Bit Expl.
    0 Button A (0=Pressed, 1=Released)
    1 Button B (etc.)
    2 Select (etc.)
    3 Start (etc.)
    4 Right (etc.)
    5 Left (etc.)
    6 Up (etc.)
    7 Down (etc.)
    8 Button R (etc.)
    9 Button L (etc.)
     
  3. kenghot
    OP

    kenghot Member

    Newcomer
    29
    0
    Nov 4, 2006
    Thailand
    Million Thanks, dblank
    This link of document is really great. [​IMG]
    i'll try to study with it.
     
  4. dblank

    dblank Advanced Member

    Newcomer
    50
    0
    Sep 24, 2006
    Right on, glad I could help!
     
  5. kenghot
    OP

    kenghot Member

    Newcomer
    29
    0
    Nov 4, 2006
    Thailand
    after i read documents, i found that gba has bios function to decompress data for LZ77, the command is "swi $11" . so i use program "Visualboy Advance Tracer" to keep log of asm command. but when i search in log file (it's about 100,00 lines) i just found only one line of "swi $11". Did i do something wrong?

    another question, Can i dump vram or wram and then search for dialog text such as "Hell" in dump file.

    Thanks
     
  6. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,347
    9,145
    Nov 21, 2005
    Open up VBA (I use Kode54's build for any hacking like this as it has SSE2 support: http://board.zsnes.com/phpBB2/viewtopic.ph...r=asc&start=145 ) and hit tools memory viewer.
    Now hit save and type the start address (02000000=WRAM and 03000000=IRAM) and the length you want to dump in hex. Hit OK choose a destination and there will appear a .dmp file the contents of which are the contents of the memory at the point of dumping, given what you have accomplished so far I assume you can work a hex editor.
     
  7. kenghot
    OP

    kenghot Member

    Newcomer
    29
    0
    Nov 4, 2006
    Thailand
    Thanks again FAST6191,
    Yes i can use hex editor and understand it well. i've load file form your link but can not run. i got message "This application has failed to start because d3d9.dll was not found." . did i miss somthing? [​IMG]

    Thanks again.
     
  8. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,347
    9,145
    Nov 21, 2005
    That sounds like a directx error, this being said any build of VBA will do that is just an especially fast one.