swapd0 Posted July 3, 2020 Share Posted July 3, 2020 I've the following code in my sound engine, it's using u253se. The d0 has a sound channel (4 to 7) and d1 holds a sample number. It always hangs. ; register sound move.b d1,channel_sound(pc,d0.w) move.b d0,sound_channel(pc,d1.w) Even this version hangs, WTF!?!?! ; register sound moveq #0,d0 moveq #0,d1 move.b d1,channel_sound(pc,d0.w) move.b d0,sound_channel(pc,d1.w) As you can see I'm writing bytes so there are no problems about alignment, anyway I've a .long directive before channel_sound definition. But, I've done a quick test with this code and it works... ; register sound moveq #0,d0 moveq #0,d1 move.w d1,channel_sound(pc,d0.w) ; move.b d0,sound_channel(pc,d1.w) There are any problem with byte memory access from the 68000? I don't understand why it hangs, if I comment the code it works. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.