Hyundai GMS800 Instruction Manual page 48

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

Advertisement

HYUNDAI MicroElectonics
LDY
( Load Y-register )

Function
: Y
( M )
Description : The Y-register is loaded with contents of the specified memory or of the immediate data.

Flag
:
Mnemonic
LDY #imm
LDY dp
LDY dp + X
LDY !abs
Example
:
28
29
30
31
32
33
34 F01A E4FFC2
35 F01D CC21
36 F01F D922
37 F021 D526F0
38 F024 E5C4
39
40 F026 C0
F027 F9
F028 A4
F029 B0
F02A 99
F02B 92
F02C 82
F02D D8
F02E 80
F02F 90
LDYA

Function
: YA
( dp +1 ) ( dp )
Description : The 16 bit accumulator(YA) is loaded with contents of specified memory pair.

Flag
:
Mnemonic
LDYA dp
Example
:
416 C17A E4FF38
417 C17D E4AA39
418 C180 7D38
419 C182 DE
44
OP Code
3E
C9
D9
D8
STROBE_PORT
EQU
LED_PORT
EQU
SEG_POINTER
EQU
SEG1
EQU
LDM
LDX
LDY
LDA
STA
FONT
DB
( Load YA - 16bit accumulator )
OP Code
7D
LDM
LDM
LDYA
XAY
Bytes
Cycles
2
2
2
3
2
4
3
4
0C2H
0C4H
21H
22H
STROBE_PORT,#0FFH ;Segment All Turn Off
SEG_POINTER
SEG1+X
!FONT+Y
LED_PORT
0C0H,0F9H,0A4H,0B0H,99H,92H,82H,0D8H,080H,090H
Bytes
Cycles
2
5
38H,#0FFH
39H,#0AAH
38H
; R1 PORT
; R2 PORT
;Segment Pattern Data Output

Advertisement

Table of Contents
loading

Table of Contents