(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
04-24-24 09:50 PM
0 users currently in ROM Hacking.
Acmlm's Board - I3 Archive - ROM Hacking - A bit of help with THUMB and jumps? New poll | |
Pages: 1 2Add to favorites | Next newer thread | Next older thread
User Post
Zeld

Red Paragoomba








Since: 11-05-06

Last post: 6278 days
Last view: 6276 days
Posted on 02-11-07 04:28 PM Link | Quote
On that note, would it be possible to simplify code by taking out unneeded comparisons in cases where previous operations have altered the flags accordingly? I never tried it in thumb, but I've seen it used in ARM a lot (what with just about every operation in ARM being able to have conditions, it's no wonder).
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6275 days
Last view: 6275 days
Posted on 02-12-07 10:51 AM Link | Quote
Yes, you should see things like this all the time (using Z80 as an example because I know it):

DEC A
JR NZ, somewhere

LD A,(HL)
AND A ;a Load instruction on Z80 doesn't update the flags
JR Z, somewhere


ARM even has the ability to choose whether an instruction will update the flags.
Pages: 1 2Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - ROM Hacking - A bit of help with THUMB and jumps? |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.055 seconds; used 354.74 kB (max 416.89 kB)