0 Members and 2 Guests are viewing this topic.
I wonder if it's recalculating 2^E each loop iteration?
Err.. Working on a temporary assembler for Qwerty.55 before I can work on that. And that reminds me. Can anyone please explain how instructions that branch work. I'm interested in calculating the displacements. Qwerty.55 gave me some test code, but I still can't figure out how many bytes back stuff should be. For example, what looks like it should be -6 bytes back is -4, or -5, or stuff like that.
Loop: MOV.W @R1,R4 ADD $FF,R1 ADD $FF,R3 TST R2,R2 BF/S Loop MOV.W R4,@-R2
6411 71FF 73FF 2228 8FFA 2245