beautypg.com

Assembler as62 – Epson S5U1C62000A User Manual

Page 244

background image

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 Add preprocess definition

-e Output error log file (.ERR)

-g Add source debug information in object

-l Output relocatable list file (.LST)

-o Specify output file name (.O or no extension)

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

[par] [,par] ...

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

defined: is assembled.

[#else

undefined: is assembled.

]

#endif
#ifndef

Conditional

assembling

undefined: is assembled.

[#else

defined: is assembled.

]

#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

"", FileName

Outputs source information for debugging.

.stabn

0, FileEnd

(Effective only when the -g option is specified)

.stabn

number>,

LineInfo