English
Language : 

GMS36 Datasheet, PDF (56/109 Pages) Hynix Semiconductor – 4-BIT SINGLE CHIP MICROCOMPUTERS
Chapter 5. INSTRUCTION
(20) SM
Naming :
Subtract Accumulator to Memory and Status 1 Not Borrow
Status :
Format :
éCarry to status
Function :
A à M(X,Y) - A
ST à 1(when A õ M(X,Y))
ST à 0(when A > M(X,Y))
<Comment> Data of the accumulator is, through a 2`s complemental
addition, subtracted from the memory word addressed by the
Y-register. Results are stored in the accumulator. If data of
the accumulator is less than or equal to the memory word, the
status is set to indicate that a borrow is not caused.
If more than the memory word, a borrow occurs to reset the
status to Ì0Ì.
(21) IM
Naming :
Increment Memory and Status 1 on Carry
Status :
Format :
éCarry to status
Function :
A à M(X,Y) + 1
ST à 1(when M(X,Y) ö 15)
ST à 0(when M(X,Y) < 15)
<Comment> Data of the memory addressed by the X and Y-register is
fetched. Adding 1 to this word, results are stored in the
accumulator. Carry data as results is transferred to the status.
When the total is more than 15, the status is set. The memory
is left unchanged.
(22) DM
Naming :
Status :
Format :
Function :
<Comment>
Decrement Memory and Status 1 on Not Borrow
éCarry to status
A à M(X,Y) - 1
ST à 1(when M(X,Y) ö1)
ST à 0 (when M(X,Y) = 0)
Data of the memory addressed by the X and Y-register is
fetched, and one is subtracted from this word (addition of Fh)>
Results are stored in the accumulator. Carry data as results is
transferred to the status. If the data is more than or equal to
one, the status is set to indicate that no borrow is caused. The
memory is left unchanged.
5-11