Completed Part2: 02_driver.

This commit is contained in:
Jonathan Turner 2023-09-14 14:25:40 -04:00
parent ccd9c75f8e
commit 5b7ee6f1ad
3 changed files with 8 additions and 0 deletions

BIN
Part2/.DS_Store vendored

Binary file not shown.

BIN
Part2/A4/.DS_Store vendored

Binary file not shown.

View File

@ -9,6 +9,14 @@ void _start() {
position = position << 8; /* high byte */
port_byte_out(0x3d4, 15); /* requesting low byte */
/*
Explaination:
Since the VGA output on the kernal has a set number of
positions per row. That number is 80. So by entering 80,
it goes to the first position on the second row.
Thus putting 250 is 80+80+80 (3rd row) + 10 columns over.
*/
position += port_byte_in(0x3d5) + 250;
/* VGA 'cells' consist of the character and its control data