2020-03-20 1:53 PM
I have the 8S105C based Discovery. I'm new to STM, but been writing NXP 9S08 assembler >20 yrs. Customer has 2 products using 9S08PA4, but needs them ported to STM8S. Both are pure assembler - I wrote them and now must port. Best of worlds would illustrate ADC, Timer and PWM aspects, but I'd be happy with just some simple GPIO and the framework to assemble, download and debug. I've looked and see all kinds of C, but only an ST7 asm example - enough different to not seem practical. Thanks in advance, Kevin (66yo newby)
Solved! Go to Solution.
2025-03-23 4:56 PM
Howdy, Sorry, I had a 3 year involuntary hiatus - 5/31/22 center-punched a car with one of my sport bikes (Sniff!) at 40 MPH.
At 70, ya just don't recover the same (DUH!!), but I'm back now.
Please see other post for my current issue.
BTW, ANY are Very Welcome to post queries to me. Nobody knows Everything.... L8R <<<)))
2025-03-23 5:19 PM
I know it's "ago", later post explains, but what I want to mention is I've written asm code that responded to an error level interrupt by "dumping" the return stack and jumping to what fixes the problem.
A compiler would indeed comPILE their diapers over such. Classic case of "I know better than you do".
Nice to be back... L8R <<<)))
2025-03-24 5:40 PM
I've tried that a couple times, Failing Miserably!! Compilers aren't meant to be read by people. Calls to libraries you have NO clue where, OR whether They call Other Libraries. The central reason I write assembler is It Can't LIE!
I'll write a Fair Amount More code but, I get to control ALL of it!
Fave joke: The upside of assembler? It does EXACTLY what you tell it!
The downside of assembler? It does EXACTLY what you tell it! (teehee) <<<)))