Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
so what i did was just have a function which copies a 128-member u16 array to an address (0x4000) and just uses inline assembly to jump into it and it works when copying an array with assembly of just cli hlt
Octocontrabass wrote:Isn't that how all programs get loaded?
Not really. Many program loaders also perform some relocation of memory addresses. Simply copying hex codes places some restrictions on the code being copied.
in an os could i theoretically copy hexadecimal code of compiled assembly into a space in memory and jump to it
I think you mean "data representing compiled assembly". It's not hexadecimal nor any other base; it's just data. Don't use "hexadecimal" to mean "data"