Merge pull request #34 from ayghor/ayghor-listing-1.3
Listing 1.3: fix typos
This commit is contained in:
commit
9892775079
1 changed files with 3 additions and 3 deletions
|
|
@ -363,12 +363,12 @@ _ChecksumFile proc near
|
||||||
ChecksumLoop:
|
ChecksumLoop:
|
||||||
mov ah,3fh ;DOS read file function #
|
mov ah,3fh ;DOS read file function #
|
||||||
int 21h ;read the byte
|
int 21h ;read the byte
|
||||||
jcErrorEnd;an error occurred
|
jc ErrorEnd ;an error occurred
|
||||||
and ax,ax ;any bytes read?
|
and ax,ax ;any bytes read?
|
||||||
jz Success ;no-end of file reached-we're done
|
jz Success ;no-end of file reached-we're done
|
||||||
add si,[TempWord] ;add the byte into the
|
add si,[TempWord] ;add the byte into the
|
||||||
;checksum total
|
;checksum total
|
||||||
jmpChecksumLoop
|
jmp ChecksumLoop
|
||||||
ErrorEnd:
|
ErrorEnd:
|
||||||
sub ax,ax ;error
|
sub ax,ax ;error
|
||||||
jmp short Done
|
jmp short Done
|
||||||
|
|
@ -381,7 +381,7 @@ Done:
|
||||||
pop si ;restore C's register variable
|
pop si ;restore C's register variable
|
||||||
pop bp
|
pop bp
|
||||||
ret
|
ret
|
||||||
_ChecksumFileendp
|
_ChecksumFile endp
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue