From 9072e5d500becc5efb7e5fffbe762fc4ba339524 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Thu, 21 May 2020 11:06:10 +0200 Subject: [PATCH] Fix various (ends) code OCR errors --- src/chapter-01.md | 2 +- src/chapter-28.md | 18 +++++++++--------- src/chapter-30.md | 4 ++-- src/chapter-31.md | 4 ++-- src/chapter-32.md | 4 ++-- src/chapter-33.md | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/chapter-01.md b/src/chapter-01.md index 960d07a..390b347 100644 --- a/src/chapter-01.md +++ b/src/chapter-01.md @@ -754,7 +754,7 @@ Parms struc Buffer dw ? BufferLength dw ? Checksum dw ? -Parmsends +Parms ends ; .model small .code diff --git a/src/chapter-28.md b/src/chapter-28.md index 7dc354b..b06f793 100644 --- a/src/chapter-28.md +++ b/src/chapter-28.md @@ -85,12 +85,12 @@ registers. ; ; By Michael Abrash ; -stacksegmentword stack 'STACK' -db512 dup (?) -stackends +stack segment word stack 'STACK' + db 512 dup (?) +stack ends ; -datasegment word 'DATA' -IMAGE_WIDTHEQU 4 ;in bytes +data segment word 'DATA' +IMAGE_WIDTH EQU 4 ;in bytes IMAGE_HEIGHT EQU 32 ;in pixels LEFT_BOUND EQU 10 ;in bytes RIGHT_BOUND EQU 66 ;in bytes @@ -105,11 +105,11 @@ READ_MAP EQU 4 ;Read Map register index in GC ; PatternPlane0 label byte db 32 dup (0ffh,0ffh,0,0) -PatternPlane1 labelbyte +PatternPlane1 label byte db 32 dup (0ffh,0,0ffh,0) -PatternPlane2 labelbyte +PatternPlane2 label byte db 32 dup (0f0h,0f0h,0f0h,0f0h) -PatternPlane3 labelbyte +PatternPlane3 label byte db 32 dup (0cch,0cch,0cch,0cch) ; ; Temporary storage for 16-color image during animation. @@ -124,7 +124,7 @@ ImagePlane3 db 32*4 dup (?) ImageX dw 40 ;in bytes ImageY dw 100 ;in pixels ImageXDirection dw 1 ;in bytes -dataends +data ends ; code segment word 'CODE' assume cs:code,ds:data diff --git a/src/chapter-30.md b/src/chapter-30.md index 8cd1427..8fed718 100644 --- a/src/chapter-30.md +++ b/src/chapter-30.md @@ -1104,8 +1104,8 @@ DoSetStartAddress: ret PanRight endp ;********************************************************************* -Codeends -endStart +Code ends +end Start ``` ### Notes on Setting and Reading Registers diff --git a/src/chapter-31.md b/src/chapter-31.md index ebe281a..6aac0bf 100644 --- a/src/chapter-31.md +++ b/src/chapter-31.md @@ -901,9 +901,9 @@ WaitKey: ret GetNextKey endp ; -Codeends +Code ends ; -endStart +end Start ``` When you run Listing 31.2, note the extremely smooth edges and fine diff --git a/src/chapter-32.md b/src/chapter-32.md index 05f0adc..5a5c0bb 100644 --- a/src/chapter-32.md +++ b/src/chapter-32.md @@ -171,7 +171,7 @@ vptbl dw 06b00h ; horz total dw 00616h ; v blank end dw 0e317h ; turn on byte mode vpend label word -_DATAends +_DATA ends ; ; Macro to output a word value to a port. ; @@ -336,7 +336,7 @@ _Read360x480Dot proc near pop bp ;restore caller's BP ret _Read360x480Dot endp -_TEX Tends +_TEXT ends end ``` diff --git a/src/chapter-33.md b/src/chapter-33.md index 9af64a5..3d77be3 100644 --- a/src/chapter-33.md +++ b/src/chapter-33.md @@ -532,7 +532,7 @@ FillVertLoop: jnz FillHorzLoop ;no, do the next column ret; - endStart + end Start ``` Note the jagged lines at the corners of the screen when you run Listing