DCPU, where is the stack?

All discussions related to the DCPU and in game hardware (equipment, vehicles)

DCPU, where is the stack?

Postby abebarker » Sun Apr 13, 2014 2:27 am

Where is the stack in the DCPU?
I see the stack pointer (SP) but I do not see any stack segment or stack location in the documentation.
The DCPU is not segmented is it? I don't see any segment pointers. It's paged but not segmented, right? That's not a problem.

I don't see any page table pointer/ pointers.

The interrupt table can be implied to be at address 0x000000. That leaves the stack base address and the page table addresses that need pointers because they can't both be at the top of memory.

What am I missing?
abebarker
 
Posts: 16
Joined: Mon Aug 12, 2013 11:41 pm

Re: DCPU, where is the stack?

Postby S0lll0s » Tue Jun 24, 2014 8:30 pm

The stack uses the same memory the application uses too; it grows downwards (towards 0x0000) starting at 0xffff. There are no segments and there is no paging, just 0xFFFF words of plain memory that may be used for the code, the data or the stack.
S0lll0s
 
Posts: 58
Joined: Fri Sep 20, 2013 9:13 pm


Return to Hardware

Who is online

Users browsing this forum: No registered users and 2 guests