CompuServe Thread

#A68k 2.6 bug??

2 messages in this thread
#85649From: Lou BertatoJan 21, 1990 2:42 PM
Actually, try this short program to see the bug in A68k 2.6 movem.l a0-a7/d1-d7,-(sp) movem.l (sp)+,a0-a7/d1-d7 rts END Then run it and it crashes. Check with Metascope, and you'll see that the first line is assembled as movem.l a0-a7/d0-d7,-(sp).
#85658From: Bill HawesJan 21, 1990 3:40 PM
Just out of curiosity, why have you included the stack pointer (a7) in your movem register mask? Since you have to have the stack correct at the end of the program to permit the registers to be restored, why put the stack inself in the mask?