Thanks for the insight, however I want to say...
H9 : pause 10 ...... not HIGH H9 pause 10 .... and achieve same result
I want H9 to mean HIGH PORTB.0
I am old and frail and need help.
Michael
Thanks for the insight, however I want to say...
H9 : pause 10 ...... not HIGH H9 pause 10 .... and achieve same result
I want H9 to mean HIGH PORTB.0
I am old and frail and need help.
Michael
I'm curious why the GOSUB command does not suit your needs.
Do you want to substitute just that one command? If so, you are creating a lot of overhead for something really small.
If it's because you want to keep things extra simple in your code, what about clear comments? My memory is no longer what it used to be so I include a LOT of comments in my code. Comments do nothing to your program; they take no space and do not affect performance.
Robert
I am frail, old and grey and have lost my book.
Here it is again; I think I have not formed the question correctly.
I want to convert:
main:
HIGH PORTB.0 : PAUSE 10 : LOW PORTB.0 : PAUSE 10
GOTO main
to
main:
H9 : PAUSE 10 : LOW H9 : PAUSE 10
GOTO main
?? Can I precede the code with H9 VAR HIGH PORTB.0 ??
Michael
I am frail, old and grey and have lost my book.
It has temporarily disappeared into a QBH, Quantum Black Hole, which I find abound in my locality.
Bookmarks