2017-03-25 01:38 AM
Hello. I want compile a simple program that is :
stm8/
segment 'rom'PD_ODR EQU $500FPD_DDR EQU $5011PD_CR1 EQU $5012;///////////////////////bset PD_DDR,#6
bset PD_CR1,#6loop2bset pd_odr,#6bres pd_odr,#6jp loop2end
when I compile this program Stvd get a lot of error that is :
can any one help me??
my windows is 7 and 64bit and I use from STVD and st assembler linker.
Thanks
2017-03-25 04:24 AM
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 $500FPD_DDR EQU $5011PD_CR1 EQU $5012;/////////////////////// bset PD_DDR,#6 bset PD_CR1,#6loop2 bset PD_ODR,#6 bres PD_ODR,#6 jp loop2 end2017-03-25 04:24 PM
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
2017-03-25 04:26 PM
I don't know. I've never used the simulation.
2017-03-26 12:50 AM
So how you test your program??
2017-03-26 01:36 AM
Load it in the device.