hades.models.pic
Class TurboPicCore.SUBLW
java.lang.Object
hades.models.pic.TurboPicCore.PicInstruction
hades.models.pic.TurboPicCore.SUBLW
- Enclosing class:
- TurboPicCore
- class TurboPicCore.SUBLW
- extends TurboPicCore.PicInstruction
SUBLW l
the W register value is subtracted from 8-bit literal l,
and the result is placed in W.
update C, DC, Z flags
Note that the carry flag is used as a "not borrow flag", so
C is set if the result is >= 0.
1 clock period
Field Summary |
(package private) int |
literal
|
(package private) java.lang.String |
mnemonic
|
(package private) int |
opcode
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
literal
int literal
opcode
int opcode
mnemonic
java.lang.String mnemonic
TurboPicCore.SUBLW
TurboPicCore.SUBLW(int l)
execute
final void execute()
- Overrides:
execute
in class TurboPicCore.PicInstruction
setOpcode
void setOpcode(int _opcode)
getOpcode
int getOpcode()
setMnemonic
void setMnemonic(java.lang.String s)
toString
public java.lang.String toString()