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:
@ -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
|
||||
|
BIN
stage2/bootasm2.o
Normal file
BIN
stage2/bootasm2.o
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
stage2/xv6.img
(Stored with Git LFS)
BIN
stage2/xv6.img
(Stored with Git LFS)
Binary file not shown.
Reference in New Issue
Block a user