Instruction Set
21
AND1B
( Bit logical AND - 1's complement )
Function
: C
( C )
~ ( M.bit )
Description : Logical AND of the carry flag and the 1's complement of specified bit of memory.
The result is left in the carry flag.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
AND1B M.bit
8B
3
4
* The bit4 of 3rd byte is set to "1".
Example
:
60
F_STBY
EQU
1,1FH
61
;
62 F03F 8B1F30
AND1B
F_STBY
; C ^ 1FH.1 -> C
63 F042 5004
BCC
KOR
64 F044 C4C4
LDA
#0C4H
65 F046 2F02
BRA
$+4
66 F048 C410
KOR:
LDA
#10H
67 F04A 6F
RET
ASL
( Arithmetic shift left )
Function
:
C
7
6
5
4
3
2
1
0
Description : Move the contents of the accumulator or of the memory left by one bit position. "0" comes in
on the right(bit0). Bit7 enter into the carry flag.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
ASL A
08
1
2
ASL dp
09
2
4
ASL dp + X
19
2
5
ASL !abs
18
3
5
Example
:
4927 E977 C562
LDA
TAMICNT
4928
;
4929 E979 08
ASL
A
4930 E97A 08
ASL
A
; *4
”
0
”