CompuServe Messages

#C and Assembler

    26-Jan-89 17:52:06
Sb: #32166-#C and Assembler
Fm: Richard Rae/SYSOP 76703,4253
To: Vic Wagner 76046,3004
"Arithmetic right shifts are NOT divides by powers of two for negative numbers." Am I missing something here? Is there something peculiar to the 68000 that I don't know about? (Probably… I've done VERY little 68000 assembly.) A negative number is nominally 2's complement notation with the MSB (sign bit) lit. An ASR shifts the byte/word right N bits, replicating the MSB as the shift occurs. In any assembly language I've ever used and any reference I've ever seen, this is a divide by 2^N. What do you know that I don't?