ARDS search code

Discussion in 'NDS - Flashcarts and Accessories' started by froggestspirit, Jul 28, 2011.

Jul 28, 2011

ARDS search code by froggestspirit at 5:28 AM (423 Views / 0 Likes) 0 replies

  1. froggestspirit
    OP

    Member froggestspirit D/P/Pt Demix Guy

    Joined:
    Jul 28, 2011
    Messages:
    931
    Country:
    United States
    I'm new here, and I'm hoping this is the right spot, but I'm trying to make a search code to search for data in Pokemon Black.
    PLEASE do not tell me to just use an emulator.
    Anyways, this is what I got so far:
    EDIT: (revised code)
    94000130 FEFF0000 If R is pushed
    D5000000 00000000 Set Dx Data to 0
    D3000000 02000000 Set offset to 0x2000000
    C0000000 00100000 Start a loop for 0x100000 times
    023FE254 E5933000 Allow If type 6 to use offsets
    60000000 45585048 If 32bit word at offset does not equal "HPXE"
    D4000000 00000004 Add 4 to Dx Data
    DC000000 00000004 Add 4 to offset
    D0000000 00000000 End If
    D1000000 00000000 Loop End
    D6000000 0223CDAC Write Dx Data to 0x223CDAC (player money)
    D2000000 00000000 End If

    What I'm trying to do, is have it search for HPXE in the ram (its at adress 0x2000020)
    Each time it doesnt find it, it should move forward 4 bytes, and read those 4 bytes
    When I run this, The game hangs for a few seconds, and then returns to normal gameplay. This gives me a money value of 0, meaning I messed up somewhere. anyone got any Idea?
     

Share This Page