Arghh. INA woes.
rokicki
Posts: 1,000
I spent about an hour yesterday trackdown a newbie mistake: using
andn ina,pinmask
and couldn't figure out why it wasn't working.
Of course I wanted
andn pinmask,ina
Ina used in the destination field of an instruction does not
actually refer to ina, but rather a "shadow" register "under" ina.
Can we change the assembler so if you use ina in a destination
position, you get an error? And to access the shadow register,
you use a different name, like inashadow or something?
I hate it when we lose orthogonality like this.
Anyway, just my two cents.
andn ina,pinmask
and couldn't figure out why it wasn't working.
Of course I wanted
andn pinmask,ina
Ina used in the destination field of an instruction does not
actually refer to ina, but rather a "shadow" register "under" ina.
Can we change the assembler so if you use ina in a destination
position, you get an error? And to access the shadow register,
you use a different name, like inashadow or something?
I hate it when we lose orthogonality like this.
Anyway, just my two cents.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
It's not ideally suited for your purposes, but my propasm assembler prevents this. (It bit me too.)