Hyundai GMS800 Instruction Manual page 41

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

Advertisement

DI
( Disable all interrupts )

Function
: I
" 0 "
Description : Inhibit interrupts by clearing interrupt master flag(I)
 
Flag
:
Mnemonic
DI
Example
:
243 C000 60
244 C001 1E
245 C003 C400
246 C005 FB
247 C006 5EC0
248 C008 70F9
DIV
( Divide )
Function
: YA / X
Description : Divide 16bit accumulator(YA) by the X-register.
The quotient is left in the accumulator and The remainder is left in the Y-register.

Flag
:
Mnemonic
DIV
Example
:
464 C1D9 1E0A
465 C1DB 3E00
466 C1DD C50C
467 C1DF 9B
468 C1E0 E510
469 C1E2 BF
470 C1E3 E50F
OP Code
60
RESET:
DI
LDX
RAM_CLR:
LDA
STA
CMPX
BNE

Q: A,
R: Y
OP Code
9B
HDCON:
LDX
LDY
LDA
DIV
STA
TYA
STA
Bytes
Cycles
1
3
;Disable All Interrupts
#0
#0
;RAM Clear(!0000H->!00BFH)
{X}+
#0C0H
RAM_CLR
Bytes
Cycles
1
12
#10
; LOAD DIVISOR
#0
; LOAD DIVIDEND HIGH
ECD
; LOAD DIVIDEND LOW(SECOND)
SECH
; STORE QUOTIENT
SECL
; STORE REMAINDER
Instruction Set
37

Advertisement

Table of Contents
loading

Table of Contents