Skip to content
Advertisement

How to clear screen on protected mode

I’m using NASM for Linux and I’d like know how, in the protected mode, you can clear the screen. I found a solution using the int10h, but on the protected mode I can only use int80h. Thanks in advance.

Advertisement

Answer

You can write x1b[2J to the standard output so the terminal get cleared and fix the cursor position using x1b[H, for example in nasm:

JavaScript

for gnu assembler:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement