Completed Part2: 02_driver.
This commit is contained in:
parent
ccd9c75f8e
commit
5b7ee6f1ad
BIN
Part2/.DS_Store
vendored
BIN
Part2/.DS_Store
vendored
Binary file not shown.
BIN
Part2/A4/.DS_Store
vendored
BIN
Part2/A4/.DS_Store
vendored
Binary file not shown.
@ -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
|
||||
|
Reference in New Issue
Block a user