Skip to main content
Visitor II
May 17, 2007
Question

inline assembly with cosmic and stvd7

  • May 17, 2007
  • 3 replies
  • 810 views
Posted on May 17, 2007 at 02:35

inline assembly with cosmic and stvd7

    This topic has been closed for replies.

    3 replies

    jasonnganAuthor
    Visitor II
    May 16, 2007
    Posted on May 16, 2007 at 08:06

    I write assembly in C.

    _asm(''bres PDDR,#6'');

    But the cosmic show the error massage like this

    symbol PDDR not defined

    bad addressing mode

    bad addressing mode

    How do i solve it ,please?

    Thank!

    Visitor II
    May 16, 2007
    Posted on May 16, 2007 at 10:22

    try to put an _ before PDDR.

    [ This message was edited by: _luca on 16-05-2007 13:54 ]

    jasonnganAuthor
    Visitor II
    May 17, 2007
    Posted on May 17, 2007 at 02:35

    Thx! It work! :D