Hyundai GMS800 Instruction Manual page 61

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

Advertisement

STYA
( Store YA - 16bit accumulator )
Function
: ( dp +1 ) ( dp )
Description : Store the contents of 16bit accumulator(YA) to memory pair

Flag
:
Mnemonic
STYA dp
Example
:
405
406
407
408 F868 7D30
409 F86A 1D40
410 F86C DD50
SUBW

: YA
Function
Description : Subtract the contents of memory pair from 16-bit accumulator(YA).

Flag
:
Mnemonic
SUBW dp
Example
:
430
431 C16C E4AA18
432 C16F E43F19
433 C172 C47F
434 C174 3EEA
435 C176 3D18
436 C178 DD18

YA
OP Code
DD
;=============================
; 16-BIT DATA PROCESS
;=============================
LDYA
ADDW
STYA
(Subtract word without Carry )
( YA )
( dp+1 ) ( dp )
OP Code
3D
DATA_WORD DS
LDM
LDM
LDA
LDY
SUBW
STYA
Bytes
Cycles
2
5
30H
40H
; M(31H)M(30H) + M(41H)M(40H)
50H
; YA -> M(51H)M(50H)
Bytes
Cycles
2
5
2
DATA_WORD,#0AAH
DATA_WORD+1,#03FH
#7FH
#0EAH
DATA_WORD
DATA_WORD
Instruction Set
57

Advertisement

Table of Contents
loading

Table of Contents