Hyundai GMS800 Instruction Manual page 49

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

Advertisement

LSR
( Logical shift right )
Function
:

"0"
Description : Move the contents of the Accumulator or of the memory right by one bit position. "0" comes
in on the left(bit7). Bit0 into the carry flag.

Flag
:
Mnemonic
LSR A
LSR dp
LSR dp + X
LSR !abs
Example
:
424 C183 C4FF
425 C185 E40808
426 C188 A908
427 C18A 48
428 C18B 70FB
MUL
( Multiply )

Function
: YA
Description : Multiply Y-register by accumulator. The result is left in the 16bit accumulator (YA).

Flag
:
Mnemonic
MUL
Example :
624 C2E6 C517
625 C2E8 3E63
626 C2EA 5B
627 C2EB C4FF
628 C2ED 9B
629 C2EE E502
7
6
5
4
3
2
        
OP Code
48
49
59
58
LDA
LDM
LOOP3:
DEC
LSR
BNE
Y × × × × A
OP Code
5B
ADCHK:
LDA
LDY
MUL
LDA
DIV
STA
1
0
C
Bytes
Cycles
1
2
2
4
2
5
3
5
#0FFH
TEMP,#8
TEMP
A
LOOP3
Bytes
Cycles
1
9
ADCD0
#99
;A/D input : 0 ~ 255 --> 0 ~ 99
#0FFH
ADBUF
Instruction Set
45

Advertisement

Table of Contents
loading

Table of Contents