EASy68K  
It is currently Fri Jul 21, 2017 2:49 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Apr 15, 2016 4:52 am 
Offline

Joined: Fri Apr 15, 2016 4:45 am
Posts: 1
I'm currently learning Easy68k, and I don't understand what (An)+ does or looks like. I typically need a visual example, but haven't been able to find one.

For example, in this code:

MOVE.B %01001111,D1
MOVE.B %00010111,D2
MOVEA.W $4000,A0
MOVE.B D1,(A0)+
MOVE.B D2,(A0)+

What happens? I assume that the values in D1 or D2 are put into A0 and would look something like 0001011101001111. But, I'm not sure and don't understand what it's supposed to do. Can someone explain this to me?


Top
 Profile  
 
PostPosted: Fri Apr 15, 2016 10:55 am 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1039
Code:
    MOVE.B  #5,D1       D1 = 5 
    MOVEA.W $4000,A0    A0 = $4000
    MOVE.B  D1,(A0)+    Address $4000 = 5, A0 = $4001

_________________
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:  
cron
Powered by phpBB® Forum Software © phpBB Group