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

EQU and Watches list request
http://www.easy68k.com/EASy68Kforum/viewtopic.php?f=3&t=1469
Page 1 of 1

Author:  DrMefistO [ Tue Jan 06, 2015 2:12 pm ]
Post subject:  EQU and Watches list request

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.

Author:  profkelly [ Wed Jan 07, 2015 9:21 pm ]
Post subject:  Re: EQU and Watches list request

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

Author:  DrMefistO [ Thu Jan 08, 2015 7:06 am ]
Post subject:  Re: EQU and Watches list request

Labels and names it's good, but what about registers (A0-A7, D0-D7)?

Author:  profkelly [ Thu Jan 08, 2015 10:12 am ]
Post subject:  Re: EQU and Watches list request

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.

Author:  DrMefistO [ Thu Jan 08, 2015 10:24 am ]
Post subject:  Re: EQU and Watches list request

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.

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