Printing a string without OS

前端 未结 2 1112
长情又很酷
长情又很酷 2020-12-11 20:52

I have a simple program in x86 assembly language. It should print a string directly to the video memory without OS.

[bits 16]
[org 0x7c00]
mov ax, 0x3
int 0x         


        
2条回答
  •  抹茶落季
    2020-12-11 21:14

    With the repnz prefix you must first set the cx register to the character count, and as nrz points out you shouldn't use that one as it stops when zero is encountered.

提交回复
热议问题