I guess the move went well, it seems to still be notifying us, and replies are going to the new thread. That's the first time I've split a thread, so I wasn't sure.
Back to the topic, this isn't quite what I had thought of earlier, but the code changed since then. I haven't had a chance to try it yet, but it does compile.
So assuming everything is working, I wanted to add one thing that gets you closer to that 1 line "embedded message strings" that you're looking for.
Here's a simple macro that should do the same thing that you have now, but only takes 1 line (of PBP code) to do it. It needs to be before Main:
Code:
ASM
SendStr macro Astring
call _prntSTR
data Astring,0
endm
ENDASM
Now in the "Main" code, it'll look like this...
Code:
Main:
CALL USART_Init
@ SendStr "This is a string"
@ SendStr "yet another string again"
@ SendStr "and one more time!"
OR, of course it could also be...
Code:
ASM
SendStr "This is a string"
SendStr "yet another string again"
SendStr "and one more time!"
ENDASM
Darrel
Bookmarks