Page 1 of 1

Can't print on screen when keyboard interrupt happens

Posted: Sun Apr 12, 2020 10:35 am
by Shvets04
hi, i want to implement simple shell in text screen mode.
i've implemented interrupts, and keyboard driver, but i cant put char on screen when intterrupt happens.

this is my keyboard handler

Code: Select all

static void keyboard_callback(registers_t regs) {
    
    kprintf("int"); // for debug only, but anyway it does not print anything on screen;
    dlog("key int"); // it works
    u8 scancode = inb(0x60);
    char *sc_ascii = convert(scancode, 10);
    print_letter(scancode); //<-- it is function that call shell_handler() and it should print text on screen.
    

}
the dlog() just print text on terminal(for debug) and it function work correctly.
how to solve this problem?

code - https://github.com/s04v/OSv1.0

Re: Can't print on screen when keyboard interrupt happens

Posted: Mon Apr 13, 2020 9:05 am
by Octocontrabass
I'm surprised it works at all, since there are many mistakes in boot.asm and boot2.asm. For starters, which one of those are you actually using? You can't possibly be using both!