EasyManuals Logo

Holtek HT48R30A-1 User Manual

Default Icon
174 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
Page #127 background imageLoading...
Page #127 background image
Syntax
name PROC
name ENDP
·
Description
The PROC and ENDP directives mark a block of code which can be called or jumped to from other
modules. The PROC creates a label name which stands for the address of the first instruction of a
procedure. The Cross Assembler will set the value of the label to the current value of the location
counter.
·
Example
toggle PROC
mov tmpbuf, a
mov a, 1
xorm a, flag
mov a, tmpbuf
ret
toggle ENDP
Syntax
[label:] DC expression1 [,expression2 [,...]]
·
Description
The DC directive stores the value of expression1, expression2 etc. in consecutive mem
-
ory locations. This directive is used for the CODE section only. The bit size of the result value is
dependent on the ROM size of the MCU. The Cross Assembler will clear any redundant bits;
expression1 has to be a value or a label. This directive may also be employed to setup the ta
-
ble in the code section.
·
Example
table1: DC 0128h, 025CH
In this example, the Cross Assembler reserves two units of ROM space and also stores 0128H
and 025CH into these two ROM units.
Data Definition Directives
An assembly language program consists of one or more statements and comments. A statement or
comment is a composition of characters, numbers, and names. The assembly language supports inte-
ger numbers. An integer number is a collection of binary, octal, decimal, or hexadecimal digits along
with an optional radix. If no radix is given, the Cross Assembler uses the default radix (decimal). The ta
-
ble lists the digits that can be used with each radix.
Radix Type Digits
B Binary 01
O Octal 01234567
D Decimal 0123456789
H Hexadecimal 0123456789ABCDEF
118
I/O Type MCU

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Holtek HT48R30A-1 and is the answer not in the manual?

Holtek HT48R30A-1 Specifications

General IconGeneral
BrandHoltek
ModelHT48R30A-1
CategoryMicrocontrollers
LanguageEnglish

Related product manuals