无法使用BIOS中断将光标移动到装配操作系统中的下一行

时间:2014-04-10 17:01:52

标签: assembly newline 16-bit real-mode

我制作了一个简单的16位实模式操作系统,并且我已经编写了下面的代码将光标移动到下一行,但它只移动了一次,尽管它是在有和没有其他命令的情况下多次调用。

nextLine:
    pusha

    mov ah, 0x2

    mov bh, 0
    mov dl, 0               ; move the cursor to the far left of the
                            ; screen
    inc dh                  ; move the cursor onto the next line
    int 0x10                ; call the BIOS interupt to move the cursor

    popa
    ret

0 个答案:

没有答案