[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: [f-cpu] reg. rotation [Was: New suggestion about call convention]



> >PS: A macro that do a call will certainly look like this.
> >	.macro call name
> >		loadaddri name, t0
> >		store [sp], ra
> >		jmp [t0], ra
> >	.endm
 
> nice but how do you manage the stack
> (increment/decrement the pointer) ?...
 
I forgot... So it look like this :
.macro call name
	loadaddri name, t0
	storei -8, [sp], ra
	jmp [t0], ra
	loadi +8, [sp], ra
.endm

Cedric
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/