We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5783d11 + 1eaedc1 commit 936e8c0Copy full SHA for 936e8c0
src/video_mode/vga_320x200.s
@@ -19,7 +19,7 @@ vga_map_frame_buffer_loop:
19
mov [_p1 + ecx * 8], eax
20
21
add eax, 4096
22
- cmp eax, 0xa0000 + 320 * 200
+ cmp eax, 0xc0000
23
jl vga_map_frame_buffer_loop
24
25
ret
src/video_mode/vga_text_80x25.s
@@ -11,11 +11,17 @@ config_video_mode:
11
.code32
12
13
vga_map_frame_buffer:
14
- mov eax, 0xb8000
+ mov eax, 0xa0000
15
or eax, (1 | 2)
16
- mov ecx, 0xb8000
+vga_map_frame_buffer_loop:
17
+ mov ecx, eax
18
shr ecx, 12
+
+ add eax, 4096
+ jl vga_map_frame_buffer_loop
26
27
# print a string and a newline
0 commit comments