EASy68K  
It is currently Wed Oct 17, 2018 1:48 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed May 25, 2011 2:24 pm 
Offline

Joined: Sat Apr 30, 2011 9:47 am
Posts: 3
Was just wondering how a would move data from a certain address in memory into a data register?

eg.

get data '02 23' from $2000 - $2001

and move it to D3?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 25, 2011 7:26 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1083
Code:
    MOVE.B  $2000,D3    move byte from $2000 to D3
    MOVE.W $2000,D3    move word from $2000 to D3
    MOVE.L $2000,D3    move long word from $2000 to D3

This is a very basic question that is fundamental to the ability to write any programs in assembly language. I would recommend you find a good book on 68K assembly language.

_________________
Prof. Kelly


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group