English
Language : 

SD6830 Datasheet, PDF (24/34 Pages) AUK corp – 4BIT MICROCONTROLLER
SD6830
IFEQU @HL
Binary code
Syntax
Operation
Flags
Words/Cycles
Description
Example
IFEQU n
Binary code
Syntax
Operation
Flags
Words/Cycles
Description
Example
INC L
Binary code
Syntax
Operation
Flags
Words/Cycles
Description
Example
: 00001111
: [<label>] IFEQU @HL
: (A) = M[(HL)]
: CY : Unaffected
SF : Set to one if equal, cleared otherwise
: 1/1
: Compares the contents of accumulator with the contents of data
memory addressed by registers H and L.
: LDA 14 ; Load 14 to A, and 14 must be decimal number
SETB H ; Sets H to one
LDL 4 ; Loads 4 to L
IFEQU @HL ; Compares 14 with M[(14)]
JMP 050 ; Jump to 050 if not equal
JMP 060 ; Jump to 060 if equal
: 00001110
0111xxxx
: [<label>] IFEQU n
: (A) = n, n = 0 ~15 ( n must be decimal number )
: CY: Unaffected
SF: Set to one if equal, cleared otherwise
: 2/2
: Compares the contents of accumulator with an immediate data.
: IFEQU 15 ; Compare the contents of accumulator with 15
JMP 070 ; Jump to 070 if not equal
JMP 080 ; Jump to 080 if equal
: 00100010
: [<label>] INC L
: (L) (L) + 1
: CY : Unaffect SF:As a result of execution, set to one if the contents
of register L are zero, cleared otherwise.
: 1/1
: The contents of register L are incremented by one.
: LDL 14 ; Load 14 to L
INC L ; The contents of L are incremented by one
INC L ; The contents of L are incremented by one
JMP 090 ; It is skipped because the contents of L is
JMP 0A0 ; Jump to 0A0
KSI-W002-000
24