Assembler as62 – Epson S5U1C62000A User Manual
Page 244

Assembler as62 (1)
Development Tools
Outline
Converts the mnemonic of the source files into object codes (machine
language) of the S1C62. The results are output in a relocatable object file.
This assembler includes preprocessing functions such as macro definition/call,
conditional assembly, and file-include functions.
Flowchart
Start-up Command Usage
Usage: as62 [options]
Options: -d
-e Output error log file (.ERR)
-g Add source debug information in object
-l Output relocatable list file (.LST)
-o
File name: Source file name (.DAT, .S, or .MS)
Assembler
as62
file.s
or
file.dat
Assembly source file
file.o
file.ms
file.lst
Object file
Relocatable
list file
file.err
Error file
Preprocessed
source file
to Linker
Pseudo-instructions
#include
Inserts other file in the source file.
#define
Defines a character string with a define name.
#macro
Defines a statement string with a macro name.
Branch labels in a macro are specified with $$1 to $$n.
#endm
(par: Dummy parameters)
#ifdef
Conditional assembling
[#else
#endif
#ifndef
Conditional
assembling
[#else
#endif
.code
Declares the start of a code section.
.bss
Declares the start of a bss section.
.org
Specifies an absolute address.
.page
Specifies a page number.
.bank
Specifies a bank number.
.align
Specifies alignment of a section.
.comm
Defines a global symbol and secures memory area in a
bss section.
.lcomm
Defines a local symbol and secures memory area in a
bss section.
.set
Defines an absolute address for a symbol.
.global
Declares the symbol as global.
.codeword [ ... ]
Defines codes in the CODE section.
.list
Turns output ON(.list)/OFF(.nolist) in the assembly list
.nolist
file. (Effective only when the -l option is specified)
.stabs
"
Outputs source information for debugging.
.stabn
0, FileEnd
(Effective only when the -g option is specified)
.stabn number>, LineInfo