Sonic and Sega Retro Message Board: Need help with making a loop work - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Loading News Feed...
 

Need help with making a loop work

#16 User is offline Upthorn 

Posted 13 August 2007 - 03:45 AM

  • TAS
  • Posts: 239
  • Joined: 23-October 06
  • Gender:Male
  • Wiki edits:23

View PostPuto, on Jun 14 2007, 07:52 AM, said:

Eventually I just ended up doing this:

<tt>move.w (Z80_Driver_End-Z80_Driver)/4,d1
@loop:
move.b (a0)+,(a1)+
move.b (a0)+,(a1)+
move.b (a0)+,(a1)+
move.b (a0)+,(a1)+
dbf d1,@loop</tt>

Which seems to work perfectly. I still don't understand why taking out the /4 and putting in just one move.b doesn't work though.

what are "Z80_Driver_End" and "Z80_Driver" EQU'd to?

#17 User is offline Puto 

Posted 13 August 2007 - 04:22 AM

  • Shin'ichi Kudō, detective.
  • Posts: 1981
  • Joined: 31-July 05
  • Gender:Male
  • Location:Portugal, Oeiras
  • Project:Part of Team Megamix, but haven't done any actual work in ages.
  • Wiki edits:51
They're labels, not equates, plus this is ancient and I don't care about it anymore =P

  • 2 Pages +
  • 1
  • 2
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users