Using DOS or a bootcode we can write directly into the screen memory without to use a system call. Texmode address b8000 graphic mode address a0000 or linear framebuffer in the 4.th gb like c0000000 with s3 graphic emulated in DosBox for example.
If a function starts with _ it is __cdecl, so cinvoke getch is the correct code, I think. Why the printf is not preceded with an underscore, is something I don't understand.
@@davidgkirk Oh no! Your website is the only place that explains computer architecture and organization in a way that I can understand. Every other professor just told me to read the Linda Null textbook and finish the exercises with no explanation