From c25e885362239c9b2ef192eed1c98b07d307d417 Mon Sep 17 00:00:00 2001 From: Igor de Sant'Ana Fontana Date: Mon, 23 Jul 2018 16:40:27 -0300 Subject: [PATCH] Listing 1.3: fix typos --- src/chapter-01.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chapter-01.md b/src/chapter-01.md index 0e27fbc..8f4a05e 100644 --- a/src/chapter-01.md +++ b/src/chapter-01.md @@ -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 ```