Skip to main content
Visitor II
March 25, 2017
Question

my problem is stvd and compile with st assembler linker

  • March 25, 2017
  • 1 reply
  • 1349 views
Posted on March 25, 2017 at 09:38

Hello. I want compile a simple program that is :

stm8/

segment 'rom'

PD_ODR EQU $500F

PD_DDR EQU $5011

PD_CR1 EQU $5012

;///////////////////////

bset PD_DDR,#6

bset PD_CR1,#6

loop2

bset pd_odr,#6

bres pd_odr,#6

jp loop2

end

when I compile this program Stvd get a lot of error that is :

0690X00000603ieQAA.jpg

can any one help me??

my windows is 7 and 64bit and I use from STVD and st assembler linker.

Thanks

    This topic has been closed for replies.

    1 reply

    Visitor II
    March 25, 2017
    Posted on March 25, 2017 at 12:24

    You need to start your lines with spaces or tabs, otherwise the assembler assumes you're defining a label.  Like so:

    stm8/

        segment 'rom'

    PD_ODR EQU $500F

    PD_DDR EQU $5011

    PD_CR1 EQU $5012

    ;///////////////////////

        bset PD_DDR,#6   

       bset PD_CR1,#6

    loop2

       bset PD_ODR,#6

       bres PD_ODR,#6

       jp loop2

       end
    Visitor II
    March 25, 2017
    Posted on March 25, 2017 at 23:24

    Exactly. Thank you very much. can you help me about simulating?? when I build the program and press the start Debug I think I should press step into but when I press step into I don't see any change in simulating.if you have a video about simulating can you send me ?? thank you

    Visitor II
    March 25, 2017
    Posted on March 25, 2017 at 23:26

    I don't know. I've never used the simulation.