[Info-vax] debugging stack corruption on Macro64?
John E. Malmberg
wb8tyw at qsl.network
Mon Mar 9 21:46:12 EDT 2015
On 3/9/2015 8:29 PM, John Reagan wrote:
> On Monday, March 9, 2015 at 8:47:50 PM UTC-4, John E. Malmberg wrote:
>
>>
>> This is what the code was intended to be, but it still corrupts the stack.
>>
>> lda sp,-$SIZE(sp)
>> stq r27,(sp)
>> stq r26,16(sp)
>> stq r2,24(sp)
>> stq r3,32(sp)
>> stq r4,40(sp)
>> stq fp,48(sp)
>> mov sp,fp
>>
>
> What did you specify for SIZE on the $ROUTINE macro? You didn't show
> one in your prior example.
The $ROUTINE macro generated it as 48 decimal apparently using the
SAVED_REGS mask.
Regards,
-John
More information about the Info-vax
mailing list