Hi,
I am trying to implement context switch using gcc for m68k processors. I need to use inline assembly for saving all the registers d0, d1...d7 and a0,...a7. I was wondering if I can use a loop in my inline gcc that would allow me to save these registers instead of write a separate line of code for each register.
for eg.
move.l %d0, temp pcb.cpuregs.d0 = temp
i want to make 0 inside d0 like a loop counter.
Thanks!