我在用HC12芯片。 我们有SUBA和DECA的说明。使用SUBA的方法是从寄存器A中减去一些值(在内存中或您指定的值)。但是,DECA不带参数,只是从寄存器A中减去$01。所以我的问题是,指令SUBA #01和DECA之间有什么区别?我的猜测是,它们在负数上的表现不同,但我不完全确定。我正在处理的问题是: LDAA #230 ; 8 bit system, so this number is technically -26 in 2s complement. Register A is 8 bits, with LDAA loading into register A
LOOP