Patent ID: 6341344
Filing Date: 2002-01-22
Classification: G06F

Abstract:
A method for manipulating data from a processor on a stack memory, the method comprising:aligning a stack pointer in said stack memory to a first memory address in said stack memory; incrementing said stack pointer to a second memory address to create an empty memory address in said stack memory; saving data from at least one register into said stack memory at said second memory address indicated by said stack pointer; performing processor operations; restoring data from said stack memory into said at least one register after completion of said processor operations; decrementing said stack pointer from said second memory location to said first memory location wherein said empty memory address in said stack memory is removed; aligning said stack pointer to a new memory address when said stack pointer indicates only an odd address after said saving step is complete; and unaligning said stack pointer from said new memory address to said odd address.