EASy68K  
It is currently Sun Apr 05, 2020 10:13 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Need help in my 1st lab
PostPosted: Thu Oct 18, 2012 1:25 pm 
Offline

Joined: Thu Oct 18, 2012 1:16 pm
Posts: 3
Location: United Kingdom
Code:
loop1   add.b   #1,d3
        sub.b   #1,d4
        BNE     loop1       

What address corresponds to the label LOOP?

does this mean which address that makes it loop or at which address did it loop?


Last edited by active92 on Thu Oct 18, 2012 5:03 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 18, 2012 4:45 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1118
We do not provide answers for assignments on this forum, that would defeat their purpose.

Your questions should be directed to your instructor.

If you have specific questions about the 68000 or EASy68K we will be glad to help.

_________________
Prof. Kelly


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 18, 2012 5:02 pm 
Offline

Joined: Thu Oct 18, 2012 1:16 pm
Posts: 3
Location: United Kingdom
I've already edited it and ask a specific question. Hope you can help me.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 18, 2012 10:41 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1118
The address of a label, in this case loop1, is the address of the instruction or data at that location. In this example the address of the instruction add.b #1,d3 is the address of loop1. When the program is assembled in EASy68K the address of each label may be found in the .L68 file. Load the .L68 file into the editor and scroll to the bottom of the listing. The SYMBOL TABLE at the bottom lists the address of every label.

SYMBOL TABLE INFORMATION
Symbol-name Value
-------------------------
CRLF 10C4
NEWLINE 1074
START 1000

_________________
Prof. Kelly


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 19, 2012 10:30 am 
Offline

Joined: Thu Oct 18, 2012 1:16 pm
Posts: 3
Location: United Kingdom
thanks. i got this

103C is in address 1000 and it is like

-------code--------- -----source-------
103C 0002 START MOVE.B #COUNT,DO

Does this means that 103C contains 0002 and when i execute it, 0002 will be stored in DO?[/url]


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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