Added stage 3

Split the plot pixel part of the main function into its own function
Changed the add to a arithmetic shift left
Fixed comment error on the number of colors
This commit is contained in:
iDunnoDev
2022-11-07 23:38:16 +00:00
committed by iDunnoDev
parent fe2e14921a
commit 3d102dd9b8
24 changed files with 591 additions and 6 deletions

View File

@ -159,7 +159,7 @@ cons_line_loop_start:
cons_line_loop_next_point:
movw err(%bp), %ax # Load err into ax so that we can change it
add %ax, %ax # e2 is 2 * err, so we can just add err to itself
sal %ax # e2 is 2 * err, so we can do an arithmatic shift left
cons_line_loop_move_y_point:
movw deltay(%bp), %bx
@ -197,7 +197,7 @@ real_start:
call cons_writeline
draw_start:
# Set the Video mode to VGA 320 x 200 x 8
# Set the Video mode to VGA 320 x 200 x 256
movb $0, %ah
movb $0x13, %al
int $0x10