bogax Posted April 8, 2019 Share Posted April 8, 2019 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 Quote Link to comment Share on other sites More sharing options...
Trip2018 Posted April 12, 2019 Share Posted April 12, 2019 This seems like a good idea! Quote Link to comment Share on other sites More sharing options...
+Gemintronic Posted May 15, 2019 Share Posted May 15, 2019 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.