Code: Select all
void kmain(void) {
unsigned char *video = (unsigned char *)0xb8000;
video[0] = 'K';
video[1] = 0x07;
}
Can any one tell me why?
EDIT:
if I do
Code: Select all
video[1] = 'K';
video[0] = 0x07;
Code: Select all
void kmain(void) {
unsigned char *video = (unsigned char *)0xb8000;
video[0] = 'K';
video[1] = 0x07;
}
Code: Select all
video[1] = 'K';
video[0] = 0x07;
I use clang as the compilerCombuster wrote:My crystal ball says you missed the Posting Checklist, and especially the gcc/ld part.
That implies a number of things:I use clang as the compiler