English Amiga Board


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

 
 
Thread Tools
Old 03 September 2013, 02:40   #1
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
32-bit access on 16-bit bus?

When you do a long write on a 16-bit bus, what are the rules for which part (upper or lower word) are written first?

Question stands for all 680x0. (This in relation to chip register writes.)
NorthWay is offline  
Old 03 September 2013, 11:14   #2
pandy71
Registered User
 
Join Date: Jun 2010
Location: PL?
Posts: 2,741
http://en.wikipedia.org/wiki/Endiann...s_and_hardware

"The Motorola 6800 and 68k series of processors use the big-endian format, and for this reason, the big-endian format is also known as the Motorola convention. Other well-known processors that use the big-endian format include the Xilinx Microblaze, SuperH, IBM POWER, and System/360 and its successors such as System/370, ESA/390, and z/Architecture. The PDP-10 also used big-endian addressing for byte-oriented instructions."

http://en.wikipedia.org/wiki/Endiann...mory_locations
pandy71 is offline  
Old 03 September 2013, 12:02   #3
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
The answer to my question is either "upper then lower" or "lower then upper".
Endianness does not come into the equation as far as I can see?
NorthWay is offline  
Old 03 September 2013, 12:08   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
AFAIK 68020+ always writes upper word first. 68000/010 has some exceptions, for example CLR.L <memory>, MOVE x,-(An).
Toni Wilen is offline  
Old 03 September 2013, 13:14   #5
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
Quote:
Originally Posted by Toni Wilen View Post
AFAIK 68020+ always writes upper word first. 68000/010 has some exceptions, for example CLR.L <memory>, MOVE x,-(An).
But 68000/010 is upper first as a rule?
NorthWay is offline  
Old 03 September 2013, 15:39   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quote:
Originally Posted by NorthWay View Post
But 68000/010 is upper first as a rule?
Yes. Most instructions reads/writes upper word first.
Toni Wilen is offline  
Old 03 September 2013, 18:31   #7
pandy71
Registered User
 
Join Date: Jun 2010
Location: PL?
Posts: 2,741
Quote:
Originally Posted by NorthWay View Post
The answer to my question is either "upper then lower" or "lower then upper".
Endianness does not come into the equation as far as I can see?
Hmmm i think that article in Wikipedia describe order of operation for 32 bit on 16 bit bus but perhaps i misunderstood your question.
pandy71 is offline  
Old 04 September 2013, 00:46   #8
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
Quote:
Originally Posted by Toni Wilen View Post
Yes. Most instructions reads/writes upper word first.
Thanks.
NorthWay 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
32-bit Fast RAM slower than 24-bit Fast on certain A1200 config moshy support.WinUAE 1 24 May 2013 21:55
REQ: 17-Bit Artwork 2 (1988-04)(17-Bit Software) Sea7 request.Demos 5 13 May 2011 01:07
8 bit to optimized 6 bit palette histogram improvements needed NovaCoder Coders. General 0 14 April 2011 02:13
My A500 is dying bit by bit :( Old Fool support.Hardware 3 03 July 2009 17:12
"Bit för bit" demo (Swedish TV-show, hard to find!) Ziaxx request.Demos 5 10 March 2009 18:38

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 16:07.

Top

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