Skip to content

Commit a49a7ec

Browse files
carry
1 parent 72ae5b8 commit a49a7ec

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

asm/bios/mbr.asm

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,24 +130,24 @@ cpySec:
130130

131131
mov sp, di ;; Clean stack.
132132

133-
;;jnc .success ;; Check for errors.
133+
jnc .success ;; Check for errors.
134134

135135
.failure:
136-
mov si, msg_err ;; TO-DO: retry before failure. Can also report error co
136+
mov si, msg_err ;; TO-DO: retry before failure. Can also report error co
137137
;; de in ah.
138138
jmp failure
139139
140140
.success:
141-
add ebx, 1 ;; increment next sector with carry
142-
add cx, 512 ;; Add bytes per sector
143-
jnc no_incr_es ;; if overflow...
141+
add ebx, 1 ;; Next sector.
142+
add cx, 512 ;; Destination addr update.
143+
jnc .noCarry ;; if overflow...
144144

145-
incr_es:
145+
.carry:
146146
mov dx, es
147-
add dh, 0x10 ;; ...add 1000h to ES
147+
add dh, 0x10 ;; Carry to real mode segment register.
148148
mov es, dx
149149

150-
no_incr_es:
150+
.noCarry:
151151
pop di
152152
pop si
153153
pop dx

0 commit comments

Comments
 (0)