Jump to content

Photo

Jump out of the kernel

stack minikernel variables

1 reply to this topic

#1 bogax OFFLINE  

bogax

    Dragonstomper

  • 793 posts

Posted Mon Apr 8, 2019 4:00 PM

I'm thinking it would be useful to have the facility to (optionally) jump out of the kernel.

 

So eg you might have a construct like this at the end of the kernel

 

  ifconst .kernel_exit
  jmp .kernel_exit
.never_mind
 endif

 

so you could jump to your minikernel and thence back to where you goto'd drawscreen

(or back to .nevermind if you were so minded)

 

and free up a couple of stack locations for those tricky text minikernels where you cant find enough pointers 

 



#2 Trip2018 OFFLINE  

Trip2018

    Star Raider

  • 94 posts
  • Fuzzy boi
  • Location:nebraska

Posted Thu Apr 11, 2019 6:43 PM

This seems like a good idea!




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users