English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 11 August 2016, 23:56   #1
Nightfox
Registered User
 
Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 398
Address register expected

Hello all

I was just wondering why my line:
move.b (d2,a0),d0
Gives "address register expected" when the setting is for 68000 but if the setting is 68010 or above it works? Does the 68010 add this addressing mode? If so is there an equivalent for the standard 68000?
Nightfox is offline  
Old 12 August 2016, 00:14   #2
Mrs Beanbag
Glastonbridge Software
 
Mrs Beanbag's Avatar
 
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
it should be
Code:
move.b (a0,d2),d0
i don't know why your code works anywhere. the address register should come first, and the indexing register (can be An or Dn) second.

There is no "data register indirect" addressing mode so i don't know what code it is actually generating in 68010 mode...?
Mrs Beanbag is offline  
Old 12 August 2016, 00:31   #3
Nightfox
Registered User
 
Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 398
Ah thanks so much! I'm such a n00b
Nightfox is offline  
Old 12 August 2016, 00:39   #4
Nightfox
Registered User
 
Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 398
It is weird though that it did work as expected in 68010 mode and above. Anyway I switched the order and now it's working great in 68000 mode. I just implemented the Insertion Sort algorithm
Nightfox is offline  
Old 12 August 2016, 11:51   #5
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,539
Quote:
Originally Posted by sacredbanana View Post
It is weird though that it did work as expected in 68010 mode and above.
Indeed, it is. Which assembler did you use? I remember that AsmOne and/or Devpac accept swapped address and data registers in some situations.
But the 68010 definitely shouldn't be any different to the 68000. The supported instructions and addressing modes are exactly the same.
phx 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
WinUAE Debugger - Address Register Watchpoints SparkyNZ Coders. Asm / Hardware 3 16 June 2015 22:39
How to show IP Address? AGS support.Apps 18 08 May 2014 21:05
DevPac and Absolute Address h0ffman Coders. General 2 14 January 2011 15:32
Which games you didnt expected to be so good?? JudasEZT Retrogaming General Discussion 17 13 April 2009 23:38
NAT address -Rob- support.Other 7 07 April 2008 00:06

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 04:59.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07320 seconds with 13 queries