/****************************************************************************** Example #17 -- SPARC functions and register windows ******************************************************************************/ .global main .section ".text" .align 4 main: save %sp, -96, %sp call iu_registers nop call iu_window nop set 0xaaaaaaaa, %g1 set 0xbbbbbbbb, %o1 set 0xcccccccc, %l1 set 0xdddddddd, %i1 call iu_window nop call one nop call iu_window nop ret restore .global one .section ".text" .align 4 one: save %sp, -96, %sp call iu_window nop set 0x11111111, %g1 set 0x22222222, %o1 set 0x33333333, %l1 set 0x44444444, %i1 call iu_window nop ret restore