PLC.ASM Example
Addresses Machine Code in Hex : FA : D1 : C : F B A : F D E00F039031D2220B5 : C05603A D E1A06 : D D :0C E088C000D B : FF plc.lst Listing file
From list file
W Register
TRISA Register Outputs TRISB Register Inputs
INTCON Register
W Register
PortB W Register
Bitwise AND W Register
Put a 1 in 4 th bit of OUTPUT
W Register Bitwise AND old_data xorlw Compare with by checking Z bit
Simulation Create a new project Add the file plc.asm
Input