I have attached a small two rung ladder program
(testrll.prj) which I believe demonstrates an error in
the logic, at least as far as the outputted mnemonics go.
The two rungs are electrically equivalent but generate
different mnemonics. The first rung outputs correctly,
the second one doesn't.
0 STR X0
1 STR X10
2 STR X1
3 STR X2
4 OR X3
5 ANDSTR
6 ORSTR
7 ANDSTR
8 ENDOFRUNG
9 STR X0
10 AND X1 (should be STR X1)
11 STR X2
12 OR X3
(should have ANDSTR inserted)
13 OR X10
14 ANDSTR
15 ENDOFRUNG
I have not looked into the code yet to find the problem
as I spent a few hours getting it to compile as a VC++
6.0 project.
I found other examples of incorrect posting of
mnemonics but perhaps they will disappear once this
problem is fixed.
keithd@adelphia.net
Sample file that demonstrates the problem
Logged In: YES
user_id=623443
Thanks for the notification. We've confirmed the problem.
There is a problem in the way the compiler identifies where
certain branch types start and end. That was a good catch.
Thanks