Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I want to write the value 42C80000 to each of these addresses, but the 04 codetype would take up too many lines. I want to shorten the amount of lines, so I can put more codes into my GCT. So, I'm going to use the 08 codetype to shorten it.
- 8115E620
- 8115E624
- 8115E628
- 8115E62C
- 8115E630
- 8115E634
- 8115E638
- 8115E63C
- 8115E640
- Since, the addresses are > 81000000, we'll have to increase the codetype by 1. So, instead of using 08, we'll have to use 09 instead.
- 08______ XXXXXXXX
- TNNNZZZZ VVVVVVVV
- ______ + ba = Initial Address
- X = Initial value for the RAM write
- T = Value Size (0 = byte, 1 = halfword, 2 = word)
- N = Amount of additional addresses to write to (the first is assumed)
- Z = Address Increment; in bytes (How many To skip By)
- V = Value Increment (How much to add to the value after each additional RAM write)
- To use po instead of ba, change the codetype from 08 to 18.
- For values of ______ >= 0x01000000, add one to the codetype.
- We change 08 to 09.
- 09______ XXXXXXXX
- TNNNZZZZ VVVVVVVV
- We take the first address and add it onto the line. Remove 81 because it will be replaced by the codetype.
- 0915E620 XXXXXXXX
- TNNNZZZZ VVVVVVVV
- We want to write 42C80000, which is 50 in Float. This number is displayed in Hex, but represents a Float integer. Replace XXXXXXXX with the Float value.
- 0915E620 42C80000
- TNNNZZZZ VVVVVVVV
- The value size of what we want to write to each address is a Word. Replace T with 2. XX = Byte XXXX = Half Word XXXXXXXX = Word
- 0915E620 42C80000
- 2NNNZZZZ VVVVVVVV
- There are 8 addresses not including the first one as it is already assumed. Replace NNN with 008.
- 0915E620 42C80000
- 2008ZZZZ VVVVVVVV
- The addresses only increase by 4, so replace ZZZZ with 0004.
- 0915E620 42C80000
- 20080004 VVVVVVVV
- We don't want to write anything other than 42C80000 to each address, so we'll tell it to write nothing. Replace VVVVVVVV with 00000000.
- 0915E620 42C80000
- 20080004 00000000
- Congrtulations! You finished! I hope you learned something. ;)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement