86 EPSON S5U1C62000A MANUAL
(S1C60/62 FAMILY ASSEMBLER PACKAGE)

CHAPTER 5: ASSEMBLER

Assembly list file
Assembler 62 ver x.xx Relocatable List File MAIN.LST Wed Apr 22 15:31:00 1998
1: ; main.s
2: ; test program (main routine)
3: ;
4:
5: ;***** INITIAL SP ADDRESS DEFINITION *****
6: #define SP_INIT_ADDR 0x80 ;SP init addr = 0x80
7:
8: ;***** BOOT, LOOP *****
9: .global INIT_RAM_BLK1 ; subroutine
10: .global INC_RAM_BLK1 ; subroutine
11:
12: .org 0x100
13: BOOT:
14: 0100 e08 ld a,SP_INIT_ADDR>>4 ; set SP
15: 0101 fe0 ld sph,a
16: 0102 e00 ld a, SP_INIT_ADDR&0xf
17: 0103 ff0 ld spl,a
18: 0104 400 call INIT_RAM_BLK1 ; initialize RAM block 1
19: LOOP:
20: 0105 400 call INC_RAM_BLK1 ; increment RAM block 1
21: 0106 000 jp LOOP ; infinity loop
22:
23: ;***** RAM block *****
24: .bss
25: .org 0x000
26: 0000 00 .comm RAM_BLK1,4
Error file
Assembler 62 Ver x.xx Error log file MAIN.ERR Sun May 03 11:33:39 1998
Assembler 62 Ver x.xx
Copyright (C) SEIKO EPSON CORP. 1998
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)