English
Language : 

SD6830 Datasheet, PDF (32/34 Pages) AUK corp – 4BIT MICROCONTROLLER
STA @HL
SD6830
Binary code : 00101001
Syntax
: [<label>] STA @HL
Operation
: M[(HL)] (A)
Flags
: CY : Unaffected
SF : Unaffected
Words/Cycles : 1/1
Description : Stores the contents of accumulator in memory addressed by registers
H and L.
Example
: LDL 0 ; Load 0 to L
SETB H ; Set H to one
STA @HL ; Stores the contents of A in M[(10)]
STA @HL+
Binary code : 00101000
Syntax
: [<label>] STA @HL+
Operation
: M[(HL)] (A), (L) (L) + 1
Flags
: CY : Unaffected
SF : Unaffected
Words/Cycles : 1/1
Description : Stores the contents of accumulator in memory addressed by registers
H and L. And then the contents of register L are incremented by one.
Example
: LDL 15
; Load 15 to L
SETB H
; Set H to one
STA @HL+ ; Stores the contents of A in M[(1F)]. L becomes
JMP 035 ; It is skipped because L is “0”
JMP 045 ; Jump to 045
STA B
Binary code : 00011110
Syntax
: [<label>] STA B
Operation
: (B) (A)
Flags
: CY : Unaffected
SF : Unaffected
Words/Cycles : 1/1
Description : Stores the contents of accumulator in the register B.
Example
: STA B ; Stores the contents of A in B
KSI-W002-000
32