View Single Post
Old 20th Dec 2021, 2:33 pm   #32
Slothie
Octode
 
Join Date: Apr 2018
Location: Newbury, Berkshire, UK.
Posts: 1,287
Default Re: Yet another MK14 tape interface (ESP32).

I don't mind macros in assembler, it can make programming complex programs a lot clearer, but they do mask register usage, so can lead to problems. For instance the "JS" built in psuedo-op changes the accumulator which is not obvious, and "JS" looks like an ordinary opcode which has no reason to affect the accumulator. At least in SBASM actual macro calls stand out because they are prefixed with a '>' character, and therefore warn you to look at the expansion in the listing.
Slothie is offline