PHO - Pokémon Hackers Online
Go Back   PHO - Pokémon Hackers Online > Discussion Board > Archive

Notices

Archive Old threads that serve no purpose are here.

 
 
Thread Tools Display Modes
Old 2nd August 2011, 06:39 PM   #11
Full Metal ★
Unstable?
Ex-StaffPHO VIP
 
Full Metal ★'s Avatar
 
Join Date: Oct 2012
Posts: 312
Full Metal ★ Full Metal ★
Default

*bump* added some basic debugging info. (:
__________________

★ full metal.

#busy
Full Metal ★ is offline  
Sponsored Links
Old 3rd August 2011, 05:37 PM   #12
Hopeless Masquerade
山の新人神様
Ex-Staff
 
Hopeless Masquerade's Avatar
 
Join Date: Oct 2012
Location: 守矢神社
Age: 21
Posts: 84
Hopeless Masquerade
Default

Quote:
Originally Posted by Full Metal View Post
Ah, those are explained a bit more in the Bits and Bytes document, I do believe. But in short:
XOR - A XOR B. if bit B is set, it reverses bit A. Otherwise, the result is A.
OR - A OR B. If A or B is set, the result is set.
AND - if both, A AND B are set, the result is set. Otherwise, unset.
I believe there's a NOR, too, but I'm not for sure, and I don't recall how it works. xD
Thanks, that clears it up for me.
Hopeless Masquerade is offline  
Old 3rd August 2011, 06:40 PM   #13
PEDRO12
mother of dragons
Ex-StaffPHO VIP
 
Join Date: Sep 2012
Location: Westeros
Age: 24
Posts: 126
PEDRO12
Default

Uhh, you do know that despite our size here on PHO, you're getting more feedback on this tutorial here than on PC. [sigh]. Anyways, thanks again for this. I'm a try ASM some time.
PEDRO12 is offline  
Old 3rd August 2011, 06:52 PM   #14
Full Metal ★
Unstable?
Ex-StaffPHO VIP
 
Full Metal ★'s Avatar
 
Join Date: Oct 2012
Posts: 312
Full Metal ★ Full Metal ★
Default

Ohai, I didn't know the thread ever got approved! :O
lol.
Glad I could clear things up for you, geo. (:
__________________

★ full metal.

#busy
Full Metal ★ is offline  
Old 14th August 2011, 04:46 AM   #15
Shiny Quagsire
Super Awesome Ninja ASM Guy
PHO VIP
 
Shiny Quagsire's Avatar
 
Join Date: Apr 2010
Age: 20
Posts: 62
Shiny Quagsire
Default

Nice tutorial. Although I reccomend breaking some paragraphs up into sections, so it's easier to read.

If your really obsessed with ASM hacking, you could go for IDA Pro. But for basic function hacks, stick with VBA-SDL-H. The break on read command is useful.
__________________





My Works:

Coming Soon/Working On:
  • Pokemon Amethyst
  • ?Using HMs via Items?
  • Custom GUIs using ASM (and soon) C


Shiny Quagsire is offline  
Old 14th August 2011, 04:21 PM   #16
Full Metal ★
Unstable?
Ex-StaffPHO VIP
 
Full Metal ★'s Avatar
 
Join Date: Oct 2012
Posts: 312
Full Metal ★ Full Metal ★
Default

Yeah, it really depends on what you're trying to do. If there's more than two or three branches in the routine I'm observing, THEN I crack open IDA. lol. Geez. that thing is such a memory hog.
__________________

★ full metal.

#busy
Full Metal ★ is offline  
Old 1st October 2011, 07:47 PM   #17
NTA
Newbie
 
NTA's Avatar
 
Join Date: Jul 2011
Posts: 5
NTA is on a distinguished road
Default

I have to use vba-sdl-h to use the asm code? I'm not sure what I"m missing here...
NTA is offline  
Old 2nd October 2011, 12:10 PM   #18
Full Metal ★
Unstable?
Ex-StaffPHO VIP
 
Full Metal ★'s Avatar
 
Join Date: Oct 2012
Posts: 312
Full Metal ★ Full Metal ★
Default

Quote:
Originally Posted by NTA View Post
I have to use vba-sdl-h to use the asm code? I'm not sure what I"m missing here...
Well, you need a VBA or a GBA + Flashcart stuffs to run the code...or some other emulator, atleast. VBA-SDL-H is a debugger, to make sure you code is functioning correctly as you're supposed to. Where does it say you need VBA-SDL-H to use the code, excatly? Or are you trolling?
__________________

★ full metal.

#busy
Full Metal ★ is offline  
Old 7th November 2011, 11:35 AM   #19
NTA
Newbie
 
NTA's Avatar
 
Join Date: Jul 2011
Posts: 5
NTA is on a distinguished road
Default

I was just confused on figuring out how to compile... I came across the one in HackMew's tutorial. I'm just confused on what exactly I need to do to change certain things.

Like this:

align 2
.thumb
.thumb_func
.global lesson1

main:

ldr r0, pri_1
ldr r1, 0x400000
str r0, [r1]

I don't exactly know how I managed to get that far but someone told me that was the basics for what I was trying to do and then told me "Now you have to see the part you want to change, find the corresponding routine to it and change it to what you want. "
__________________
NTA is offline  
Old 7th November 2011, 10:57 PM   #20
Full Metal ★
Unstable?
Ex-StaffPHO VIP
 
Full Metal ★'s Avatar
 
Join Date: Oct 2012
Posts: 312
Full Metal ★ Full Metal ★
Default

well, let's observe your code that you do have.
ldr r0, pri_1 @ Loads whatever the value of pri_1 is, into r0. r0 = pri_1
ldr r1, 0x400000 @ Loads the address 0x40 00 00 into r1. ( a pointer -- concept learned in my bits/bytes tutorial. )
str r0, [r1] @ Stores the contents of r0 into r1. So in essence: What is in pri_1 is temporarily stored into r0. What is in r0 is then stored into what is pointed at by ( if you don't understand this, read bits/bytes until you do. tip. look @ pointers. ) r1 now looks like r0.

I'm not sure what this routine is supposed to do, but you need to have "pri_1" defined later on, like so:
pri_1: .word: < value >

NOW, what they're talking about is called "injecting". What this is, is inserting a little code into the original routine you're trying to modify, and then calling your own. This isn't always nescesary, however. Sometimes, you can just change one instruction, and you will have changed something significantly in the game ( For example -- Hackmew's run anywhere hack. )
here is a thread that you might find interesting.
__________________

★ full metal.

#busy
Full Metal ★ is offline  
 

Tags
assembly, thumb, tutorial, [Tutorial]

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:26 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc. User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo.
Pokémon Hackers Online (PHO) is in no way affiliated with or endorsed by Nintendo LLC, Creatures, GAMEFREAK inc,
The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast.
All forum/site content (unless noted otherwise) and site designs are © 2006-2013 Pokémon Hackers Online (PHO).
Green Charizard Christos TreeckoLv100

"Black 2" by ARTPOP. Kyurem artwork by XOUS.

no new posts