Jump to content


Jump out of the kernel

stack minikernel variables

2 replies to this topic

#1 bogax OFFLINE  



  • 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


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  


    Star Raider

  • 94 posts
  • Fuzzy boi
  • Location:nebraska

Posted Thu Apr 11, 2019 6:43 PM

This seems like a good idea!

#3 Gemintronic OFFLINE  


    Jason S. - Lead Developer & CEO

  • 9,363 posts

Posted Wed May 15, 2019 5:57 AM

I don't know assembler at all.. but, isn't the answer writing a standard mini kernel that checks for a flag.  If the flag is true it jumps to a label set by a variable as a parameter.  When the jumped to code section is done it returns to the mini kernel for cleanup and return to the canned main kernel?

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users