File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments