Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
i have a putc function which takes in a const char* but i want to have a hexadecimal integer which corresponds to a code page 437 and i have no idea what to do
Octocontrabass wrote:You're converting a signed char to uint16_t, so it's getting sign-extended. Use unsigned char or a bitwise AND to mask the unneeded bits.
I'm not sure that explains the results you're getting, though. There may be issues with how your kernel is linked or loaded.
turns out i accidentally said putc uses const char* when its actually puts that uses const char* and i should have been using putc the entire time since it uses char
edit: nevermind turns out by coincidence putc printed the character i was trying to print and i thought it worked