Moving text mode cursor not working

后端 未结 2 968
故里飘歌
故里飘歌 2021-01-16 13:35

I have been working on moving the text mode cursor in the operating system I am currently developing. I am having trouble getting it to show up at all. Here is the code that

2条回答
  •  情话喂你
    2021-01-16 14:08

    Your outb function has port and value in the wrong places. Instead of:

    asm volatile ( "outb %0, %1" : : "a"(value), "Nd"(port) );
    

    Try:

    asm volatile ("outb %1, %0" : : "dN" (port), "a" (value));
    

    Hope it helps :)

提交回复
热议问题