Search code examples
assemblynasm32-bitosdev

How to print new line in 32 bit protected mode


How would I print a new line in 32 bit protected text mode (using assembly)?

I tried setting the address 0xb8000 to 0, but it just started printing at the beginning of the current line.


Solution

  • If you want to directly manipulate the video buffer (as I understand your question), you just need to start writing your subsequent text at the address that corresponds to the first column of the second line.