Hardware bug: AUGS + ALTS doesn't clear internal AUGS flag
Just something to be aware of. And perhaps fix in whatever the next rev is @cgracey
CON _CLKFREQ = 10_000_000 DAT org mov pb,#someval alts pb,##1024 mov sometmp,0-0 nop nop mov pa,#0 sub pb,#someval debug(uhex_long(pa),uhex_long(pb)) jmp #$ someval long $DEADBEEF sometmp res 1
pa = $0000_0400 and
pb = $0000_0002. The value for PB is as expected (ALTx autoincrement), but PA should obviously be zero, but isn't because it gets the high bits from the AUGS that is supposed to apply to ALTS only.