EASy68K  
It is currently Fri Dec 15, 2017 4:14 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Jan 06, 2015 2:12 pm 
Offline

Joined: Tue Jan 06, 2015 2:06 pm
Posts: 5
Hi!
Thank you for your excellent program. But there are two features that I want to add.

1) EASy68K: EQU directive;
2) SIM68K: Watches list (some values with some size (1/2/4 bytes) to view when debugging. If it possible, if would be great to use watches like this too: 4(a6), (a5), etc.


Top
 Profile  
 
PostPosted: Wed Jan 07, 2015 9:21 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1056
EASy68K already has an EQU directive. From EASy68K help:

    Assembler Directives - EQU
    --------------------------------------------------------------------------------
    EQU - links a name (label) to a value. Similar to defining a constant in C++.

    Usage:
    label EQU value

    BACK_SP EQU $08 ASCII code for backspace

    Equates BACK_SP with the hex value $08 which is the ASCII code for backspace. In programs we can now use the word BACK_SP to represent $08. This makes our program much easier to read and modify. Once an expression has been equated to a value it may in turn be used in other equate directives, example:

    Length EQU 30
    Width EQU 25
    Area EQU Length*Width

SIM68K Watch list is similar to a previous request. http://www.easy68k.com/EASy68Kforum/viewtopic.php?f=3&t=1204

_________________
Prof. Kelly


Top
 Profile  
 
PostPosted: Thu Jan 08, 2015 7:06 am 
Offline

Joined: Tue Jan 06, 2015 2:06 pm
Posts: 5
Labels and names it's good, but what about registers (A0-A7, D0-D7)?


Top
 Profile  
 
PostPosted: Thu Jan 08, 2015 10:12 am 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1056
The EQU directive may only be used to assign labels to absolute or relative addresses. From the Motorola 68000 Structured Assembler Reference:

2.6.3 User-Defined Labels

Labels are defined by the user to identify memory locations in program or data
areas of the assembly module. Each label has two attributes: the program
section in which the memory location resides, and the offset from the beginning
of that program section.

Labels may be defined to have an absolute or relocatable value, depending upon
the program section in which the labeled memory location is found. If the
memory location is within a relocatable section (defined through the SECTION
directive), then the label has a relocatable value relative to that program
section. If the memory location is not contained within a relocatable section
(e.g., the location follows an ORG directive), then the label has an absolute
value.

Labels may be defined in the label field of an executable instruction or a data
definition directive source line. It is also possible to SET or EQU a label to
either an absolute or a relocatable value.

_________________
Prof. Kelly


Top
 Profile  
 
PostPosted: Thu Jan 08, 2015 10:24 am 
Offline

Joined: Tue Jan 06, 2015 2:06 pm
Posts: 5
Oh, maybe you're right.
There is directive EQUR to assign names for registers. But I'm not sure that all compilers are able to use it.

You can find this directive in many source files for AMIGA.


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 1 guest


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