Jump to content
Sign in to follow this  
bogax

Jump out of the kernel

Recommended Posts

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

 

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...