Skip to content

Commit 23772c0

Browse files
committed
Fix: Don't swap ebx and ecx in vga_println
1 parent a440748 commit 23772c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/video_mode/vga_320x200.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ vga_println:
4545
mov vga_position, eax
4646

4747
pop edx
48-
pop ebx
4948
pop ecx
49+
pop ebx
5050
pop eax
5151

5252
ret

src/video_mode/vga_text_80x25.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ vga_println:
3939
mov vga_position, eax
4040

4141
pop edx
42-
pop ebx
4342
pop ecx
43+
pop ebx
4444
pop eax
4545

4646
ret

0 commit comments

Comments
 (0)