English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 27 February 2011, 17:14   #1
h0ffman
Registered User
 
Join Date: Aug 2008
Location: Salisbury
Posts: 577
Fun and games with the 68000!

So, basically, I've been making this music disk. Most of the dev has been done in my WinUAE A1200 setup. Simple basic setup, 2 meg chip, 8 meg fast, 68020, the kinda platform you'd expect to have at home

Worried I had overloaded each frame with the scope, scroller, etc. etc. I start testing it on an A600 setup today and it's been.. very testing.

First I finally replaced the loader, thinking that was causing an issue (needed to be done anyhow so no bother there).

With loader replaced, I test again, crash... after hours of digging I finally find the CrunchMania source has a BLE.L in it!! Simply remove the .L and everything gets a little further...

The next issue is a weird one. There is a comparison I do from one module to the next which is...

cmpm.l (a0)+,(a2)+
bne.b ML_NoMatch

Finally found the issue. In some instanced this hits an odd address in A0. Now on the 68020 or 68010, not a problem, goes straight through it without any questions. But the 68000 takes expection to this.

Just thought I'd share

now time for another test.
h0ffman is offline  
Old 27 February 2011, 22:55   #2
kriz
Junior Member
kriz's Avatar
 
Join Date: Sep 2001
Location: No(R)Way
Age: 39
Posts: 2,785
Keep on the work man
kriz is offline  
Old 28 February 2011, 15:44   #3
phx
Natteravn

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,925
Quote:
Originally Posted by h0ffman View Post
With loader replaced, I test again, crash... after hours of digging I finally find the CrunchMania source has a BLE.L in it!! Simply remove the .L and everything gets a little further...
Tell the assembler to generate 68000 output. Then it should either warn about such instructions or convert it into BLE.W.

Quote:
Finally found the issue. In some instanced this hits an odd address in A0. Now on the 68020 or 68010, not a problem, goes straight through it without any questions. But the 68000 takes expection to this.
Yes, the 68020+ can handle unaligned accesses but with a speed penalty. The 68010 though, should behave like the 68000. In any case unaligned accesses should be avoided.
phx is offline  
Old 28 February 2011, 16:53   #4
h0ffman
Registered User
 
Join Date: Aug 2008
Location: Salisbury
Posts: 577
Oh god yeah! Managed to crash my scope multiple times today by looking at my look up table on odd addresses..

I love amiga programming!
h0ffman is offline  
Old 28 February 2011, 16:54   #5
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,652
Quote:
Originally Posted by h0ffman View Post
Oh god yeah! Managed to crash my scope multiple times today by looking at my look up table on odd addresses..
CNOP 0,2 is your friend.
StingRay is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Amiga Games that were most fun amiga_user Retrogaming General Discussion 22 27 September 2011 18:51
Serious software that was so much fun Amigaman Nostalgia & memories 3 21 September 2011 13:47
Disassembling games for fun crabfists Coders. General 69 29 October 2008 11:20
Easy and Fun: Four In One InsaneDuz request.Old Rare Games 2 09 November 2005 07:28
Idea: Fun & Games page Jim project.APoV 11 14 July 2004 17:49

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:31.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.09087 seconds with 15 queries