Thread: Ambermoon
View Single Post
Old 14 July 2009, 22:27   #221
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 5,489
Quote:
Originally Posted by Don_Adan View Post
If this instruction is illegal, then why this instruction works OK on my A2000, why works (I can hear left/right channels volume effects with EP or DT) on my friend's 68060 CPU? Why I can assemble this instruction with AsmOne 1.20?
Check Motorola docs! 'nuff said!
Edit: check st-th's post below.

Quote:
Originally Posted by Don_Adan View Post
btst D0,#6
is equal for example as
moveq #6,D1
btst D0,D1

I don't know if this one instruction is fastest than two other examples, but can be if stack is used for D1.
One of these instructions is proper 68k code while the other isn't.
Edit: same as above ;D


Quote:
Originally Posted by Don_Adan View Post
This one has sense (one data register is free). No sense for me has for example:
movem.l ,-(SP)
or
movem.l (SP)+,
and both instructions are valid.

This is as illegal as your btst example. Movem is only valid with a register list.

Last edited by StingRay; 14 July 2009 at 23:25. Reason: Don Adan is right ;D
StingRay is offline  
AdSense AdSense  
 
Page generated in 0.05751 seconds with 9 queries