78
8Bit Single Chip Microcontroller
DMC73C168
Note :
There are some version in assembler software such as "asm7.com" and "asm700.exe".
asm7.com : can support program which use many labels but can't support macro.
asm700.exe : can support macro instruction but can't be used in program with many labels.
TYPE FILENAME.ASM
A0RG >C006
**** PROGRAM ****
END
; absolute address (16K byte rom size)
ASM7 FILENAME.ASM
----> ENTER KEY
----> ENTER KEY
----> ENTER KEY
Listing File [FILENAME.LST]
Object File [FILENAME.MPO]
NO ERROR, NO WARNING
The filemane.mpo is object file of TI hex format which can be downloaded into EVM.
B.2.2. Linker
The DMC73CXX assembler creates both absolute and relocatable object code that can be linked to
form executable programs from separately assembled modules. An entire program need not be
assembled at one time. A long program can be divided into separately assembled modules, avoiding
a long assembly and reducing the symbol table size. Caution must be observed when assembling
a long program with excessive labels ; this may cause an assembler error from symbol table overflow.
Modules that are common to several programs can be assembled once and accessed when needed.
These separately generated modules can be linked together by the link editor, forming a single
linked object module that is stored in a library and/or loaded as required.
Note : See the below simple example.
DIR C:
HA0.ASM HA1.ASM HA2.ASM HA0.MPO HA1.MPO HA2.MPO HA.CTL
TYPE HA0.ASM
TYPE HA1.ASM
PSEG
**** PROGRAM ****
END
TYPE HA2.ASM
DSEG
DATA RESET
END
; If this program size is 16K byte, reset
; address is C006 (trap 0)
DAEWOO ELECTRONICS CO., LTD.