Hyundai GMS800 Instruction Manual page 42

Gms800 series 8-bit single-chip microcomputers
Table of Contents

Advertisement

HYUNDAI MicroElectonics
EI
( Enable interrupts )

Function
: I
" 1 "
Description : Enable interrupts by setting interrupt master flag
 
Flag
:
Mnemonic
EI
Example
:
208 C063 E400F3
209 C066 E48AF6
210 C069 E480F4
211 C06C E400F7
212 C06F E400F5
213 C072 E402F8
214 C075 E0
EOR
( Exclusive OR )

( A ) ⊕ ⊕ ⊕ ⊕ ( M )
Function
: A
Description : Exclusive-OR the accumulator and the contents of memory.
The result is left in the accumulator.

Flag
:
Mnemonic
EOR #imm
EOR dp
EOR dp + X
EOR !abs
EOR !abs + Y
EOR [ dp + X ]
EOR [ dp ] + Y
EOR { X }
Example
:
465 F8B0 C40F
466 F8B2 A530
467 F8B4 E5C0
38
OP Code
Bytes
E0
1
LDM
IMOD,#0
LDM
IENH,#8AH
LDM
IENL,#80H
LDM
IRQH,#0
LDM
IRQL,#0
LDM
IEDS,#2
EI
OP Code
Bytes
A4
2
A5
2
A6
2
A7
3
B5
3
B6
2
B7
2
B4
1
LDA
#0000_1111B
EOR
30H
STA
0C0H
Cycles
3
;PRIORITY OF HARDWARE
;ENABLE TIMER0, TIMER2, EXT INT.0
;ENABLE ADC INTERRUPT
;CLEAR INTERRUPT REQUEST FLAG
;EXT. INT.0 RISING EDGE SELECT
;ENABLE INTERRUPT
Cycles
2
3
4
4
5
6
6
3
; REVERSE LOWER 4 BIT
; OUTPUT R0 PORT

Advertisement

Table of Contents
loading

Table of Contents