Menu

#1 Wrong mnemonics posted

v1.0_(example)
open
nobody
7
2003-08-25
2003-02-21
Anonymous
No

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

Discussion

  • Nobody/Anonymous

    Sample file that demonstrates the problem

     
  • Dave Nielson

    Dave Nielson - 2003-08-25
    • priority: 5 --> 7
     
  • Dave Nielson

    Dave Nielson - 2003-08-25

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.