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:
@ -138,7 +138,7 @@ cons_line_loop_start:
|
||||
|
||||
cons_line_loop_next_point:
|
||||
movw err, %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 arithmatic shift left
|
||||
|
||||
cons_line_loop_move_y_point:
|
||||
movw deltay, %bx
|
||||
@ -165,7 +165,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
|
||||
|
Reference in New Issue
Block a user