beautypg.com

Assembler as63, Assembler as63 (1) development tools outline, Flowchart – Epson S5U1C63000A User Manual

Page 325: Start-up command usage, Pseudo-instructions

background image

Assembler as63 (1)

Development Tools

Outline

Converts the mnemonic of the source files into object codes (machine
language) of the S1C63000. 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

Assembler

as63

file.s

Assembly source file

file.o

file.ms

file.lst

Object file

Relocatable

list file

file.err

Error file

Preprocessed

source file

to Linker

Start-up Command Usage

Usage: as63 [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)

-c Ignore character case of symbols

-o Specify output file name

File name: Source file name (.S or .MS)

Pseudo-instructions

#include

Inserts other file in the source file.

#define

[]

Defines a character string with a define name.

#defnum

Defines a value with a defnum name.

#macro

[par] [,par] ...

Defines a statement string with a macro name.

(par: Dummy parameters)

#endm
#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.

.data

Declares the start of a DATA section.

.bss

Declares the start of a BSS section.

.abs

Specifies absolute assembling.

.org

Specifies an absolute address.

.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.

.word

[ ... ]

Defines data in the DATA 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

, LineInfo