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 bp
ret
_ChecksumChunkendp
_ChecksumChunk endp
end
```

View file

@ -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
```

View file

@ -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
```

View file

@ -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
```

View file

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

View file

@ -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.

View file

@ -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.
;

View file

@ -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.

View file

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

View file

@ -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
```

View file

@ -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