Redefining Stack Top to make room for aligned data

Topics related to the API, programming discussions & questions, coding tips, bugs, etc. should go here.
Post Reply
User avatar
Jubatian
Posts: 1563
Joined: Thu Oct 01, 2015 9:44 pm
Location: Hungary
Contact:

Redefining Stack Top to make room for aligned data

Post by Jubatian »

I added a new feature to the kernel.

It is the UZEBOX_STACK_TOP, which I intend for video mode design. This allows for setting a custom stack top (below the normal 0x10FF), which allows for reserving RAM on the upper end of the memory space. This makes it easy to allocate room for aligned stuff, so video modes demanding such would become easier to pull off and easier to use.

(Maybe I will look into Mode 3 whether this could be used to aling the VRAM and the RAM tiles proper without needing the user to set up linker parameters, anyway, the point is that a lot of video modes could do a lot better if you could just have something aligned or within a 256b bank, now this kernel feature enables to easily have such)
User avatar
Artcfox
Posts: 1382
Joined: Thu Jun 04, 2015 5:35 pm
Contact:

Re: Redefining Stack Top to make room for aligned data

Post by Artcfox »

Cool, so many improvements!
Post Reply