Datasheet
FS98O22
Rev. 1.6 137/146
CALL
Subroutine CALL
Syntax CALL k
0 ≤ k ≤ 1FFFh
Operation Push Stack
[Top Stack] ← PC + 1
PC ← k
Flag Affected None
Description Subroutine Call. First, return address PC + 1 is pushed onto the stack. The immediate
address is loaded into PC.
Cycle 2
CLRF
Clear f
Syntax CLRF f
0 ≤ f ≤ 255
Operation
[f] ← 0
Flag Affected None
Description Reset the content of memory address f
Cycle 1
Example:
CLRF WORK
Before instruction:
WORK = 5Ah
After instruction:
WORK = 00h
CLRWDT
Clear watch dog timer
Syntax CLRWDT
Operation Watch dog timer counter will be reset
Flag Affected None
Description CLRWDT instruction will reset watch dog timer counter.
Cycle 1
Example:
CLRWDT
After instruction:
WDT = 0
COMF
Complement f
Syntax COMF f, d
0 ≤ f ≤ 255
d ∈ [0,1]
Operation
[f] ← NOT([f])
Flag Affected Z
Description [f] is complemented. If d is 0, the result is stored in the W register. If d is 1, the result is
stored back in [f]
Cycle 1
Example 1:
COMF OPERAND,0
Before instruction:
W = 88h, OPERAND = 23h
After instruction:
W = DCh, OPERAND = 23h
Example 2:
COMF OPERAND,1
Before instruction:
W = 88h, OPERAND = 23h
After instruction:
W = 88h, OPERAND = DCh
FORTUNE'
Properties
For Reference Only