English
Language : 

SD6830 Datasheet, PDF (29/34 Pages) AUK corp – 4BIT MICROCONTROLLER
SD6830
NOT
Binary code :
Syntax
:
Operation :
Flags
:
Words/Cycles :
Description :
Example
:
00010111
[<label>] NOT
(A) /(A)
CY : Unaffected
SF : Unaffected
1/1
The contents of accumulator are 1
LDA 7
NOT ; 1’s complement 7, then leaves 8 in A
RET
Binary code : 00011101
Syntax
: [<label>] RET
Operation : (PC) (SK0), (SK0) (SK1)
Flags
: CY: Unaffected
SF: Unaffected
Words/Cycles : 1/1
Description : Returns from the subroutine to main routine.
Example
: RET ; Returns from the subroutine to main routine
RRC
Binary code : 00010011
Syntax
: [<label>] RRC
Operation : (A.b) (A.b+1) (A.3) (CY) (CY) (A.0)
Flags
: CY : Set to bit 0 of the accumulator
SF : Unaffected
Words/Cycles : 1/1
Description : Shifts the contents of accumulator 1-bit to the right through the carry.
The carry bit content shifts into the bit 3 of accumulator, and the bit 0 of
accumulator is shifted into the carry bit.
Example
: SETB CY ; Set CY to one.
LDA 5 ; Load 5 to A
RRC
; CY becomes zero, and the contents of A is 11
KSI-W002-000
29