From 97d436fb730d5ec4fe5d13102b6f142d34dc11cf Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Thu, 21 May 2020 10:55:36 +0200 Subject: [PATCH] Fix 'endp' -> ' endp' Automatically done using: sed -i '' -e 's/\([^ ]\)endp/\1 endp/g' src/*.md --- src/chapter-01.md | 2 +- src/chapter-07.md | 8 ++++---- src/chapter-09.md | 6 +++--- src/chapter-28.md | 12 ++++++------ src/chapter-29.md | 2 +- src/chapter-30.md | 8 ++++---- src/chapter-31.md | 6 +++--- src/chapter-32.md | 4 ++-- src/chapter-43.md | 2 +- src/chapter-53.md | 6 +++--- src/chapter-54.md | 2 +- 11 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/chapter-01.md b/src/chapter-01.md index c5fa5f1..960d07a 100644 --- a/src/chapter-01.md +++ b/src/chapter-01.md @@ -779,7 +779,7 @@ ChecksumLoop: pop si ;restore C's register variable pop bp ret -_ChecksumChunkendp +_ChecksumChunk endp end ``` diff --git a/src/chapter-07.md b/src/chapter-07.md index 97dcded..7ba7d2d 100644 --- a/src/chapter-07.md +++ b/src/chapter-07.md @@ -289,7 +289,7 @@ PrintStatus: int 21h ;report status mov ah,4ch ;return to DOS int 21h -Startendp +Start endp ; Function to search a buffer of a specified length until either a ; specified byte or a zero byte is encountered. @@ -324,7 +324,7 @@ ByteFound: ;we found the searched-for byte stc ;return "found" status ret -SearchMaxLengthendp +SearchMaxLength endp end Start ``` @@ -403,7 +403,7 @@ PrintStatus: mov ah,4ch ;return to DOS int 21h -Startendp +Start endp ; Function to search a buffer of a specified length until either a ; specified byte or a zero byte is encountered. @@ -468,7 +468,7 @@ ByteFound: ; we found the searched-for byte stc ;return "found" status ret -SearchMaxLengthendp +SearchMaxLength endp end Start ``` diff --git a/src/chapter-09.md b/src/chapter-09.md index 1f50b8a..5ee0fac 100644 --- a/src/chapter-09.md +++ b/src/chapter-09.md @@ -458,7 +458,7 @@ FindStringDone: pop si pop bp ;restore caller's stack frame ret -_FindStringendp +_FindString endp end ``` @@ -559,7 +559,7 @@ FindStringDone: pop si pop bp ;restore caller's stack frame ret -_FindStringendp +_FindString endp end ``` @@ -778,7 +778,7 @@ DivLoop: pop si pop bp ;restore caller's stack frame ret -_Divendp +_Div endp end ``` diff --git a/src/chapter-28.md b/src/chapter-28.md index 4576cbf..7dc354b 100644 --- a/src/chapter-28.md +++ b/src/chapter-28.md @@ -197,7 +197,7 @@ DelayLoop: int 10h mov ah,4ch int 21h -Startendp +Start endp ; ; Draws the image at offset DS:SI to the current image location in ; VGA memory. @@ -233,7 +233,7 @@ DrawImageLoop: cmp al,10h ;have we done all four planes? jnz DrawImagePlaneLoop ret -DrawImageendp +DrawImage endp ; ; Copies the image from its current location in VGA memory into the ; buffer at DS:DI. @@ -274,7 +274,7 @@ GetImageLoop: push es pop ds ;restore original DS ret -GetImageendp +GetImage endp ; ; Erases the image at its current location. ; @@ -513,7 +513,7 @@ WaitKeyLoop: int 10h ;return to text mode mov ah,4ch int 21h ;done -Startendp +Start endp ; ; Enables set/reset for all planes, and sets the set/reset color ; to AL. @@ -533,7 +533,7 @@ SelectSetResetColor proc near mov al,0fh out dx,al ;enable set/reset for all planes ret -SelectSetResetColorendp +SelectSetResetColor endp code ends end Start ``` @@ -713,7 +713,7 @@ WaitKeyLoop: int 10h ;return to text mode mov ah,4ch int 21h ;done -Startendp +Start endp code ends end Start ``` diff --git a/src/chapter-29.md b/src/chapter-29.md index 2bf80c9..6f095cb 100644 --- a/src/chapter-29.md +++ b/src/chapter-29.md @@ -764,7 +764,7 @@ ColorNumberLoop: mov dx,offset ColorNumbers int 21h ;put up the attribute numbers ret -ColorNumbersUpendp +ColorNumbersUp endp ; Start endp Code ends diff --git a/src/chapter-30.md b/src/chapter-30.md index 4fa8d60..8cd1427 100644 --- a/src/chapter-30.md +++ b/src/chapter-30.md @@ -318,7 +318,7 @@ CountVerticalSyncsLoop: int 10h ;return to text mode mov ah,4ch int 21h ;return to DOS -Startendp +Start endp ;********************************************************************* ; Waits for the leading edge of the vertical sync pulse. ; @@ -360,7 +360,7 @@ WaitNotVerticalSync2: test al,08h jnz WaitNotVerticalSync2 ret -WaitForVerticalSyncEndendp +WaitForVerticalSyncEnd endp ;********************************************************************* ; Sets the start address to the value specifed by StartAddress. ; Wait for the trailing edge of vertical sync before setting so that @@ -904,7 +904,7 @@ endif int 10h ;return to text mode mov ah,4ch int 21h ;return to DOS -Startendp +Start endp ;********************************************************************* ; Waits for the leading edge of the vertical sync pulse. ; @@ -997,7 +997,7 @@ SetPelPan proc near mov al,[PelPan] out dx,al ;load the new Pel Pan setting ret -SetPelPanendp +SetPelPan endp ;********************************************************************* ; Sets the scan line the split screen starts after to the scan line ; specified by SplitScreenLine. diff --git a/src/chapter-31.md b/src/chapter-31.md index 91818d8..ebe281a 100644 --- a/src/chapter-31.md +++ b/src/chapter-31.md @@ -477,7 +477,7 @@ WritePixel proc near ; the pixel mov es:[di],bl ;draw the pixel ret -WritePixelendp +WritePixel endp ; ; Reads the color of the pixel at the specified location in 320x400 ; 256-color mode. @@ -513,7 +513,7 @@ ReadPixel proc near ; the pixel lodsbyte ptr es:[si] ;read the pixel ret -ReadPixelendp +ReadPixel endp ; ; Waits for the next key and returns it in AX. ; @@ -887,7 +887,7 @@ MAP_SELECT = MAP_SELECT shl 1 dec si ;count down lines on the screen jnz RowLoop ret -ColorBarsUpendp +ColorBarsUp endp ; ; Waits for the next key and returns it in AX. ; diff --git a/src/chapter-32.md b/src/chapter-32.md index e8df20d..05f0adc 100644 --- a/src/chapter-32.md +++ b/src/chapter-32.md @@ -239,7 +239,7 @@ _Set360x480Mode proc near pop di ;restore C register vars pop si ret -_Set360x480Modeendp +_Set360x480Mode endp ; ; Draws a pixel in the specified color at the specified ; location in 360x480 256-color mode. @@ -289,7 +289,7 @@ _Draw360x480Dot proc near pop si pop bp ;restore caller's BP ret -_Draw360x480Dotendp +_Draw360x480Dot endp ; ; Reads the color of the pixel at the specified ; location in 360x480 256-color mode. diff --git a/src/chapter-43.md b/src/chapter-43.md index 1e8736b..7e2289f 100644 --- a/src/chapter-43.md +++ b/src/chapter-43.md @@ -720,7 +720,7 @@ DrawLoop: dec dx ;count down the lines of the image jnz DrawLoop ret -DrawObjectendp +DrawObject endp ; Code ends end Start diff --git a/src/chapter-53.md b/src/chapter-53.md index 1253897..1f5905e 100644 --- a/src/chapter-53.md +++ b/src/chapter-53.md @@ -272,7 +272,7 @@ CSDone: pop bp;restore stack frame ret --CosSinendp +-CosSin endp ;===================================================================== ; Matrix multiplies Xform by SourceVec, and stores the result in ; DestVec. Multiplies a 4x4 matrix times a 4x1 matrix; the result @@ -351,7 +351,7 @@ pop di;restore register variables pop si pop bp;restore stack frame ret --XformVecendp +-XformVec endp ;===================================================================== ; Matrix multiplies SourceXform1 by SourceXform2 and stores the ; result in DestXform. Multiplies a 4x4 matrix times a 4x4 matrix; @@ -475,7 +475,7 @@ pop di;restore register variables pop si pop bp;restore stack frame ret --ConcatXformsendp +-ConcatXforms endp end ``` diff --git a/src/chapter-54.md b/src/chapter-54.md index f0b72be..466388a 100644 --- a/src/chapter-54.md +++ b/src/chapter-54.md @@ -704,7 +704,7 @@ endif ;USE386 pop si pop bp ;restore stack frame ret -_XformVecendp +_XformVec endp ;===================================================================== ; Matrix multiplies SourceXform1 by SourceXform2 and stores the