mburkley / tms9900-gcc

gcc cross-compiler for TMS9900
GNU General Public License v3.0
13 stars 1 forks source link

Shouldn't compare to zero by doing MOV in place #34

Closed mburkley closed 10 months ago

mburkley commented 10 months ago

Issuing MOV Rx, Rx to test for zero causes problems if *Rx points to a ROM area that uses writes to select a bank. Safer to move to R0 instead as R0 is never allocated a persistent value between insns.