Skip to content

Commit 5a4b487

Browse files
authored
Use only si instead of esi for println in real mode (#47)
1 parent 8c880fd commit 5a4b487

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/stage_1.s

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ spin:
109109

110110
# print a string and a newline
111111
# IN
112-
# esi: points at zero-terminated String
112+
# si: points at zero-terminated String
113113
# CLOBBER
114114
# ax
115115
real_mode_println:
@@ -121,7 +121,7 @@ real_mode_println:
121121

122122
# print a string
123123
# IN
124-
# esi: points at zero-terminated String
124+
# si: points at zero-terminated String
125125
# CLOBBER
126126
# ax
127127
real_mode_print:
@@ -130,7 +130,7 @@ real_mode_print_loop:
130130
# note: if direction flag is set (via std)
131131
# this will DECREMENT the ptr, effectively
132132
# reading/printing in reverse.
133-
lodsb al, BYTE PTR [esi]
133+
lodsb al, BYTE PTR [si]
134134
test al, al
135135
jz real_mode_print_done
136136
call real_mode_print_char

0 commit comments

Comments
 (0)