EASy68K
http://www.easy68k.com/EASy68Kforum/

Moving data from a certain address in memory to a data reg
http://www.easy68k.com/EASy68Kforum/viewtopic.php?f=6&t=1025
Page 1 of 1

Author:  angela [ Wed May 25, 2011 2:24 pm ]
Post subject:  Moving data from a certain address in memory to a data reg

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?

Author:  profkelly [ Wed May 25, 2011 7:26 pm ]
Post subject: 

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/