Epson S5U1C63000A User Manual page 100

Cmos 4-bit single chip microcomputer manual
Table of Contents

Advertisement

CHAPTER 4: ASSEMBLER
Assembly list file
Assembler 63 ver x.xx Relocatable List File MAIN.LST Mon Jan 15 12:40:41 2001
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
0100
0200
24:
0101
1ff9
25:
26:
27:
28:
0110
0900
29:
0111
1fc4
30:
0112
0900
31:
0113
1fc6
32:
0114
0200
33:
34:
0115
0200
35:
0116
0000
36:
37:
38:
39:
40:
41:
42:
0000
00
43:
0004
00
Error file
Assembler 63 Ver x.xx Error log file MAIN.ERR Mon Jan 15 12:40:41 2001
Assembler 63 Ver x.xx
Copyright (C) SEIKO EPSON CORP. 1998-2001
Created preprocessed source file MAIN.MS
Created relocatable list file MAIN.LST
Created error log file MAIN.ERR
Created relocatable object file MAIN.O
Assembly 0 error(s) 0 warning(s)
86
; main.s
; ASM63 test program (main routine)
;
;***** INITIAL SP1 & SP2 ADDRESS DEFINITION *****
#ifdef SMALL_RAM
.set SP1_INIT_ADDR 0xb
#else
.set SP1_INIT_ADDR 0x4b
#endif
.set SP2_INIT_ADDR 0x1f
;***** NMI & BOOT, LOOP *****
.global INIT_RAM_BLK1
.global INC_RAM_BLK1
.org
0x100
NMI:
calr
INIT_RAM_BLK1
reti
.org
0x110
BOOT:
ldb
%ba,SP1_INIT_ADDR
ldb
%sp1,%ba
ldb
%ba,SP2_INIT_ADDR
ldb
%sp2,%ba
calr
INIT_RAM_BLK1
LOOP:
calr
INC_RAM_BLK1
jr
LOOP
;***** RAM block *****
.org 0x0
.bss
.comm RAM_BLK0, 4
.comm RAM_BLK1, 4
EPSON
;SP1 init addr = 0x2c
;SP1 init addr = 0x12c
;SP2 init addr = 0x1f
; subroutine in sub.s
; subroutine in sub.s
; initialize RAM block 1
; in NMI(watchdog timer)
; set SP1
; set SP2
; initialize RAM block 1
; increment RAM block 1
; infinity loop
S5U1C63000A MANUAL
(S1C63 FAMILY ASSEMBLER PACKAGE)

Advertisement

Table of Contents
loading

Table of Contents