Fix 'endp' -> ' endp'

Automatically done using:

    sed -i '' -e 's/\([^ ]\)endp/\1 endp/g' src/*.md
This commit is contained in:
Thomas Perl 2020-05-21 10:55:36 +02:00
commit 97d436fb73
11 changed files with 29 additions and 29 deletions

View file

@ -779,7 +779,7 @@ ChecksumLoop:
pop si ;restore C's register variable pop si ;restore C's register variable
pop bp pop bp
ret ret
_ChecksumChunkendp _ChecksumChunk endp
end end
``` ```

View file

@ -289,7 +289,7 @@ PrintStatus:
int 21h ;report status int 21h ;report status
mov ah,4ch ;return to DOS mov ah,4ch ;return to DOS
int 21h int 21h
Startendp Start endp
; Function to search a buffer of a specified length until either a ; Function to search a buffer of a specified length until either a
; specified byte or a zero byte is encountered. ; specified byte or a zero byte is encountered.
@ -324,7 +324,7 @@ ByteFound:
;we found the searched-for byte ;we found the searched-for byte
stc ;return "found" status stc ;return "found" status
ret ret
SearchMaxLengthendp SearchMaxLength endp
end Start end Start
``` ```
@ -403,7 +403,7 @@ PrintStatus:
mov ah,4ch ;return to DOS mov ah,4ch ;return to DOS
int 21h int 21h
Startendp Start endp
; Function to search a buffer of a specified length until either a ; Function to search a buffer of a specified length until either a
; specified byte or a zero byte is encountered. ; specified byte or a zero byte is encountered.
@ -468,7 +468,7 @@ ByteFound:
; we found the searched-for byte ; we found the searched-for byte
stc ;return "found" status stc ;return "found" status
ret ret
SearchMaxLengthendp SearchMaxLength endp
end Start end Start
``` ```

View file

@ -458,7 +458,7 @@ FindStringDone:
pop si pop si
pop bp ;restore caller's stack frame pop bp ;restore caller's stack frame
ret ret
_FindStringendp _FindString endp
end end
``` ```
@ -559,7 +559,7 @@ FindStringDone:
pop si pop si
pop bp ;restore caller's stack frame pop bp ;restore caller's stack frame
ret ret
_FindStringendp _FindString endp
end end
``` ```
@ -778,7 +778,7 @@ DivLoop:
pop si pop si
pop bp ;restore caller's stack frame pop bp ;restore caller's stack frame
ret ret
_Divendp _Div endp
end end
``` ```

View file

@ -197,7 +197,7 @@ DelayLoop:
int 10h int 10h
mov ah,4ch mov ah,4ch
int 21h int 21h
Startendp Start endp
; ;
; Draws the image at offset DS:SI to the current image location in ; Draws the image at offset DS:SI to the current image location in
; VGA memory. ; VGA memory.
@ -233,7 +233,7 @@ DrawImageLoop:
cmp al,10h ;have we done all four planes? cmp al,10h ;have we done all four planes?
jnz DrawImagePlaneLoop jnz DrawImagePlaneLoop
ret ret
DrawImageendp DrawImage endp
; ;
; Copies the image from its current location in VGA memory into the ; Copies the image from its current location in VGA memory into the
; buffer at DS:DI. ; buffer at DS:DI.
@ -274,7 +274,7 @@ GetImageLoop:
push es push es
pop ds ;restore original DS pop ds ;restore original DS
ret ret
GetImageendp GetImage endp
; ;
; Erases the image at its current location. ; Erases the image at its current location.
; ;
@ -513,7 +513,7 @@ WaitKeyLoop:
int 10h ;return to text mode int 10h ;return to text mode
mov ah,4ch mov ah,4ch
int 21h ;done int 21h ;done
Startendp Start endp
; ;
; Enables set/reset for all planes, and sets the set/reset color ; Enables set/reset for all planes, and sets the set/reset color
; to AL. ; to AL.
@ -533,7 +533,7 @@ SelectSetResetColor proc near
mov al,0fh mov al,0fh
out dx,al ;enable set/reset for all planes out dx,al ;enable set/reset for all planes
ret ret
SelectSetResetColorendp SelectSetResetColor endp
code ends code ends
end Start end Start
``` ```
@ -713,7 +713,7 @@ WaitKeyLoop:
int 10h ;return to text mode int 10h ;return to text mode
mov ah,4ch mov ah,4ch
int 21h ;done int 21h ;done
Startendp Start endp
code ends code ends
end Start end Start
``` ```

View file

@ -764,7 +764,7 @@ ColorNumberLoop:
mov dx,offset ColorNumbers mov dx,offset ColorNumbers
int 21h ;put up the attribute numbers int 21h ;put up the attribute numbers
ret ret
ColorNumbersUpendp ColorNumbersUp endp
; ;
Start endp Start endp
Code ends Code ends

View file

@ -318,7 +318,7 @@ CountVerticalSyncsLoop:
int 10h ;return to text mode int 10h ;return to text mode
mov ah,4ch mov ah,4ch
int 21h ;return to DOS int 21h ;return to DOS
Startendp Start endp
;********************************************************************* ;*********************************************************************
; Waits for the leading edge of the vertical sync pulse. ; Waits for the leading edge of the vertical sync pulse.
; ;
@ -360,7 +360,7 @@ WaitNotVerticalSync2:
test al,08h test al,08h
jnz WaitNotVerticalSync2 jnz WaitNotVerticalSync2
ret ret
WaitForVerticalSyncEndendp WaitForVerticalSyncEnd endp
;********************************************************************* ;*********************************************************************
; Sets the start address to the value specifed by StartAddress. ; Sets the start address to the value specifed by StartAddress.
; Wait for the trailing edge of vertical sync before setting so that ; Wait for the trailing edge of vertical sync before setting so that
@ -904,7 +904,7 @@ endif
int 10h ;return to text mode int 10h ;return to text mode
mov ah,4ch mov ah,4ch
int 21h ;return to DOS int 21h ;return to DOS
Startendp Start endp
;********************************************************************* ;*********************************************************************
; Waits for the leading edge of the vertical sync pulse. ; Waits for the leading edge of the vertical sync pulse.
; ;
@ -997,7 +997,7 @@ SetPelPan proc near
mov al,[PelPan] mov al,[PelPan]
out dx,al ;load the new Pel Pan setting out dx,al ;load the new Pel Pan setting
ret ret
SetPelPanendp SetPelPan endp
;********************************************************************* ;*********************************************************************
; Sets the scan line the split screen starts after to the scan line ; Sets the scan line the split screen starts after to the scan line
; specified by SplitScreenLine. ; specified by SplitScreenLine.

View file

@ -477,7 +477,7 @@ WritePixel proc near
; the pixel ; the pixel
mov es:[di],bl ;draw the pixel mov es:[di],bl ;draw the pixel
ret ret
WritePixelendp WritePixel endp
; ;
; Reads the color of the pixel at the specified location in 320x400 ; Reads the color of the pixel at the specified location in 320x400
; 256-color mode. ; 256-color mode.
@ -513,7 +513,7 @@ ReadPixel proc near
; the pixel ; the pixel
lodsbyte ptr es:[si] ;read the pixel lodsbyte ptr es:[si] ;read the pixel
ret ret
ReadPixelendp ReadPixel endp
; ;
; Waits for the next key and returns it in AX. ; 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 dec si ;count down lines on the screen
jnz RowLoop jnz RowLoop
ret ret
ColorBarsUpendp ColorBarsUp endp
; ;
; Waits for the next key and returns it in AX. ; Waits for the next key and returns it in AX.
; ;

View file

@ -239,7 +239,7 @@ _Set360x480Mode proc near
pop di ;restore C register vars pop di ;restore C register vars
pop si pop si
ret ret
_Set360x480Modeendp _Set360x480Mode endp
; ;
; Draws a pixel in the specified color at the specified ; Draws a pixel in the specified color at the specified
; location in 360x480 256-color mode. ; location in 360x480 256-color mode.
@ -289,7 +289,7 @@ _Draw360x480Dot proc near
pop si pop si
pop bp ;restore caller's BP pop bp ;restore caller's BP
ret ret
_Draw360x480Dotendp _Draw360x480Dot endp
; ;
; Reads the color of the pixel at the specified ; Reads the color of the pixel at the specified
; location in 360x480 256-color mode. ; location in 360x480 256-color mode.

View file

@ -720,7 +720,7 @@ DrawLoop:
dec dx ;count down the lines of the image dec dx ;count down the lines of the image
jnz DrawLoop jnz DrawLoop
ret ret
DrawObjectendp DrawObject endp
; ;
Code ends Code ends
end Start end Start

View file

@ -272,7 +272,7 @@ CSDone:
pop bp;restore stack frame pop bp;restore stack frame
ret ret
-CosSinendp -CosSin endp
;===================================================================== ;=====================================================================
; Matrix multiplies Xform by SourceVec, and stores the result in ; Matrix multiplies Xform by SourceVec, and stores the result in
; DestVec. Multiplies a 4x4 matrix times a 4x1 matrix; the result ; DestVec. Multiplies a 4x4 matrix times a 4x1 matrix; the result
@ -351,7 +351,7 @@ pop di;restore register variables
pop si pop si
pop bp;restore stack frame pop bp;restore stack frame
ret ret
-XformVecendp -XformVec endp
;===================================================================== ;=====================================================================
; Matrix multiplies SourceXform1 by SourceXform2 and stores the ; Matrix multiplies SourceXform1 by SourceXform2 and stores the
; result in DestXform. Multiplies a 4x4 matrix times a 4x4 matrix; ; result in DestXform. Multiplies a 4x4 matrix times a 4x4 matrix;
@ -475,7 +475,7 @@ pop di;restore register variables
pop si pop si
pop bp;restore stack frame pop bp;restore stack frame
ret ret
-ConcatXformsendp -ConcatXforms endp
end end
``` ```

View file

@ -704,7 +704,7 @@ endif ;USE386
pop si pop si
pop bp ;restore stack frame pop bp ;restore stack frame
ret ret
_XformVecendp _XformVec endp
;===================================================================== ;=====================================================================
; Matrix multiplies SourceXform1 by SourceXform2 and stores the ; Matrix multiplies SourceXform1 by SourceXform2 and stores the