Listing 1.3: fix typos

This commit is contained in:
Igor de Sant'Ana Fontana 2018-07-23 16:40:27 -03:00 committed by GitHub
commit c25e885362
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -363,12 +363,12 @@ _ChecksumFile proc near
ChecksumLoop:
mov ah,3fh ;DOS read file function #
int 21h ;read the byte
jcErrorEnd;an error occurred
jc ErrorEnd ;an error occurred
and ax,ax ;any bytes read?
jz Success ;no-end of file reached-we're done
add si,[TempWord] ;add the byte into the
;checksum total
jmpChecksumLoop
jmp ChecksumLoop
ErrorEnd:
sub ax,ax ;error
jmp short Done
@ -381,7 +381,7 @@ Done:
pop si ;restore C's register variable
pop bp
ret
_ChecksumFileendp
_ChecksumFile endp
end
```