hades.models.pic
Class TurboPicCore.SUBLW

java.lang.Object
  extended byhades.models.pic.TurboPicCore.PicInstruction
      extended byhades.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
           
 
Constructor Summary
(package private) TurboPicCore.SUBLW(int l)
           
 
Method Summary
(package private)  void execute()
           
(package private)  int getOpcode()
           
(package private)  void setMnemonic(java.lang.String s)
           
(package private)  void setOpcode(int _opcode)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

literal

int literal

opcode

int opcode

mnemonic

java.lang.String mnemonic
Constructor Detail

TurboPicCore.SUBLW

TurboPicCore.SUBLW(int l)
Method Detail

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()