pretty much, it works right in adding one to whatever's in slot one, but it keeps doing it over and over the longer you're holding down the activator :/
how do we fix that?
Quote:
Originally Posted by Vash
Hm, have you watched the value change when you're using the code? Try an activator. When I use ldrh for a half word, it's putting the bytes in reverse order. Make sure the bytes are in the correct order when you're using ldrh.
that's because of how it stores words and halfwords and bytes, it's backward :P
bx = byte number
4 bytes:
0xb1 0xb2 0xb3 0xb4
2 halfwords:
0xb2b1 0xb4b3
1 word:
0xb4b3b2b1
(sorry if I showed that wrong, I can't quite remember but that looks right >_> )
but assuming that's right, pretend you say Hello me
space will be represented by _ and every two letters will be a byte
you get it this way in bytes:
H e l l o _ m e
this way in halfwords:
eH ll _o em
and this way as words:
lleH em_o
assuming you wanna go up to dwords, you get:
em_olleH
the phrase in reverse :)