STACKS

The 6×09 microprocessors contain two stack pointer registers S, and U.

The microprocessor itself uses the S or System stack pointer for all of its operations which require stack.

The U or User stack pointer is available for the developer to use as their own stack.

CMOC EXAMPLE

void stacks(word sstack, word ustack) {
	asm {
		TFR S,D
		STD sstack
	}
	printf("S STACK = %4x\n", sstack);
	asm {
		TFR U,D
		STD ustack
	}
	printf("U STACK = %4x\n", ustack);
}

Color Computer 2B Color Computer 3

SEE ALSO

The Color Computer 3 also uses a Secondary Stack memory block for high-resolution drawing commands.

RTS

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies