plc.asm example addresses machine code in hex :020000040000fa :020000000528d1...
Post on 15-Jan-2016
216 views
TRANSCRIPT
PLC.ASM Example
Addresses
Machine Code in Hex
:020000040000FA:020000000528D1:08000800112800308C00831662:1000100000308500F0308600831288308B0063004A:100020000F2800308D0006088E00F039031D2220B5:1000300060300C05603A031925208D1928280E1A06:100040002520282810308D04080008308D04080071:0C0050000E088C000D0885000B10090044:00000001FF
plc.lst Listing file
From list file
0 0 0 0 0 0 0 0
W Register
0 0 0 0 0 0 0 0
TRISA Register
Outputs
1 1 1 1 0 0 0 0
TRISB Register
Inputs
1 0 0 0 1 0 0 0
INTCON Register
0 0 0 0 0 0 0 0
W Register
0 1 0 1 0 0 0 0
PortB
0 1 0 1 0 0 0 0
W Register
1 1 1 1 0 0 0 0
0 1 0 1 0 0 0 0
W Register
Bitwise AND
0 1 0 1 0 0 0 0
W Register
0 0 0 1 0 0 0 0
0 0 0 1 0 0 0 0
W Register
Put a 1 in 4th bit of OUTPUT
0 1 1 0 0 0 0 0
0 1 0 0 0 0 0 0
W Register
Bitwise AND
old_data
0 1 1 0 0 0 0 0
xorlw
0 0 1 0 0 0 0 0 Compare with00000000 bychecking Z bit
Simulation• Create a new project• Add the file plc.asm
Input