Chapter 9 Writing Machine Language Instructions and Directive Statements

Usage example

Below is an example use of the equ directive.

 

 

 

equ.lst

Page 1

 

 

***

PanaX Series MN1030 Cross Assembler ***

Loc

Object

Line

Source

 

 

 

 

1

MEMORY

equ

0x20

 

 

2

MOTOR

equ

10

 

 

3

STOP

equ

0b00001000

 

 

4

BASE

equ

0x1000

 

 

5

;

 

 

 

 

6

_TEXT

section

CODE, PUBLIC, 1

00000000

8020

7

 

mov

MEMORY, D0

00000002

800A

8

 

mov

MOTOR, D0

00000004

8008

9

 

mov

STOP, D0

00000006

2C0010

10

 

mov

BASE, D0

172 Writing Directive Statements

Page 184
Image 184
Panasonic MN1030 user manual Equ 0x20, Equ 0b00001000, Equ 0x1000, 8020 Mov, 800A Mov, 8008 Mov, 2C0010 Mov