WiiRd forum

USB Gecko Related => Gecko OS & USB Gecko => Topic started by: Romaap on November 17, 2008, 06:46:24 PM

Title: ASM execution check?
Post by: Romaap on November 17, 2008, 06:46:24 PM
Is it possible to make a code that checks if an ASM is executed?
so I can make a code that checks if a ASM is ececuted, if it is change registerN to a value. so the ASM uses the "wrong" value?
Title: Re: ASM execution check?
Post by: spunit262 on November 18, 2008, 05:58:05 AM
C2 Codes. The don't check if it executed, but instead replace an instruction with a branch.

Use Links ASM helper Tool (http://www.usbgecko.com/files/asmwiird.zip)

li r#,new_value
Instruction replaced

This link is also very helpful
http://hpcf.nersc.gov/vendor_docs/ibm/asm/alangref02.htm#wq2793 (http://hpcf.nersc.gov/vendor_docs/ibm/asm/alangref02.htm#wq2793)
Title: Re: ASM execution check?
Post by: Romaap on November 18, 2008, 09:20:30 PM
thx, will try it