EasyManua.ls Logo

Panasonic PanaXSeries MN1030 Series - Sample Program

Panasonic PanaXSeries MN1030 Series
340 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 7 Type of Source Statements
120 Program Format
Below is an example source file.
; SAMPLE PROGRAM ; comment
#include "FILE1.H ;include a file
#define ;define identifier for conditional assembly
KEYBORD equ 0x32 ;define a constant
data_set macro data ;define a macro
movw data, A0
mov 0x12, D0
mov D0, (A0)
endm ;end of macro
_CODE section CODE, PUBLIC,1
;blank statement
main ;statement with label only
mov 0x10, D1 ;machine language instruction statement
#ifdef TYPE ;conditional assembly directive
data_set KEYBORD ;expand macro
#else
mov 0, D1
#endif
end ;end of program

Table of Contents

Related product manuals