EMS6500 EM Microelectronic, EMS6500 Datasheet - Page 14

no-image

EMS6500

Manufacturer Part Number
EMS6500
Description
Microcontroller Development System 4-bit (Emmon), Simulators 4-bit
Manufacturer
EM Microelectronic
Datasheet
Copyright  2003, EM Microelectronic-Marin SA
;
ZERO
MAX
RAM0
RAMMAX
RESET:
HANDLER:
MAIN:
analysis since the software engineer can directly go to the source line which created
the assembly error by double clicking on the error message. The development
system allows several documents to be open at the save time. The maximum
number of documents open is determined by the memory size of the system,
however, at present each source file is limited to a maximum size of 32Kbytes. The
internal editor supports fully the cut and paste options of windows.
The structure of a generic EM66xx assembler program is shown below. In the
following example the naming convention used for the program labels is not
obligatory but simply represents the function of the program block.
Once the application is assembled without errors it can be tested. This can be done
either using the software simulator or the universal in-circuit emulator. Both systems
are operated from an identical interface and provide the following development
tools.
GENERIC.ASM
INCLUDE EM66xxREG.ASM ; Include register definitions
EQU
EQU
EQU
EQU
ORG
JMP
STA
...
LDR
RTI
...
...
...
INCLUDE APPLISUB.ASM
END
MAIN
00H
0FH
00H
05FH
0H
RAM0
....
RAM0
....
....
....
; Include sub routines (possibly library modules)
;--------------------------------------------------------
; Register definition include files user defined and / or
; controller dependent
;--------------------------------------------------------
;--------------------------------------------------------
; Definitions of constants
;--------------------------------------------------------
;--------------------------------------------------------
; Definitions of variables
;--------------------------------------------------------
; min RAM
; max. RAM
;--------------------------------------------------------
; Definition of the program counter value
;--------------------------------------------------------
; the following code is based at address 0
;--------------------------------------------------------
; Assembler program body
;--------------------------------------------------------
; Boot address - jump to core of program
;--------------------------------------------------------
; INTERRUPT HANDLER STARTS HERE
;--------------------------------------------------------
; save the value of the accumulator at
; the start of the interrupt routine
; restore Accu before leaving interrupt handler
;--------------------------------------------------------
; End of Interrupt Handler
;--------------------------------------------------------
;--------------------------------------------------------
; Main program core
;--------------------------------------------------------
;--------------------------------------------------------
; signifies the end of the source code any code placed
; after this directive will be ignored
;--------------------------------------------------------
Fig. 2 EM66xx Generic Program structure
6
Development System
www.emmicroelectronic.com
EM66xx
Binder 4.3-01/03 Rev. B/495

Related parts for EMS6500