Fix 'procnear' -> ' proc near'

Automatically done using:

    sed -i '' -e 's/procnear/ proc near/g' src/*.md
This commit is contained in:
Thomas Perl 2020-05-21 10:54:08 +02:00
commit 9373e5d2ee
10 changed files with 23 additions and 23 deletions

View file

@ -759,7 +759,7 @@ Parmsends
.model small .model small
.code .code
public _ChecksumChunk public _ChecksumChunk
_ChecksumChunkprocnear _ChecksumChunk proc near
push bp push bp
mov bp,sp mov bp,sp
push si ;save C's register variable push si ;save C's register variable

View file

@ -263,7 +263,7 @@ NoByteFoundMsg db 0dh,0ah
db Buffer exhausted with no match.', 0dh, 0ah, $' db Buffer exhausted with no match.', 0dh, 0ah, $'
.code .code
Startprocnear Start proc near
mov ax,@data ;point to standard data segment mov ax,@data ;point to standard data segment
mov ds,ax mov ds,ax
mov dx,offset Prompt mov dx,offset Prompt
@ -306,7 +306,7 @@ Startendp
; byte is found ; byte is found
; Carry Flag = set if searched-for byte found, reset otherwise ; Carry Flag = set if searched-for byte found, reset otherwise
SearchMaxLengthprocnear SearchMaxLength proc near
cld cld
SearchMaxLengthLoop: SearchMaxLengthLoop:
lodsb ;get the next byte lodsb ;get the next byte

View file

@ -395,7 +395,7 @@ Parmsends
.model small .model small
.code .code
public _FindString public _FindString
_FindStringprocnear _FindString proc near
push bp ;preserve caller's stack frame push bp ;preserve caller's stack frame
mov bp,sp ;point to our stack frame mov bp,sp ;point to our stack frame
push si ;preserve caller's register variables push si ;preserve caller's register variables
@ -492,7 +492,7 @@ Parmsends
.model small .model small
.code .code
public _FindString public _FindString
_FindStringprocnear _FindString proc near
push bp ;preserve caller's stack frame push bp ;preserve caller's stack frame
mov bp,sp ;point to our stack frame mov bp,sp ;point to our stack frame
push si ;preserve caller's register variables push si ;preserve caller's register variables
@ -743,7 +743,7 @@ parmsends
.model small .model small
.code .code
public _Div public _Div
_Divprocnear _Div proc near
push bp ;preserve caller's stack frame push bp ;preserve caller's stack frame
mov bp,sp ;point to our stack frame mov bp,sp ;point to our stack frame
push si ;preserve caller's register variables push si ;preserve caller's register variables

View file

@ -202,7 +202,7 @@ Startendp
; 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.
; ;
DrawImageprocnear DrawImage proc near
mov ax,VGA_SEGMENT mov ax,VGA_SEGMENT
mov es,ax mov es,ax
call GetImageOffset ;ES:DI is the destination address for the call GetImageOffset ;ES:DI is the destination address for the
@ -518,7 +518,7 @@ Startendp
; 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.
; ;
SelectSetResetColorprocnear SelectSetResetColor proc near
mov dx,GC_INDEX mov dx,GC_INDEX
push ax ;preserve color push ax ;preserve color
mov al,SET_RESET mov al,SET_RESET
@ -636,7 +636,7 @@ COLOR_DONT_CARE EQU 7 ;Color Don't Care register index in GC
; ;
code segment word 'CODE' code segment word 'CODE'
assume cs:code assume cs:code
Startprocnear Start proc near
; ;
; Select graphics mode 12h. ; Select graphics mode 12h.
; ;

View file

@ -574,7 +574,7 @@ Data ends
; ;
Code segment Code segment
assume cs:Code, ds:Data assume cs:Code, ds:Data
Start procnear Start proc near
cld cld
mov ax,Data mov ax,Data
mov ds,ax mov ds,ax

View file

@ -328,7 +328,7 @@ Startendp
; ;
; Registers altered: AL, DX ; Registers altered: AL, DX
; ;
WaitForVerticalSyncStartprocnear WaitForVerticalSyncStart proc near
mov dx,INPUT_STATUS_0 mov dx,INPUT_STATUS_0
WaitNotVerticalSync: WaitNotVerticalSync:
in al,dx in al,dx
@ -349,7 +349,7 @@ WaitForVerticalSyncStart endp
; ;
; Registers altered: AL, DX ; Registers altered: AL, DX
; ;
WaitForVerticalSyncEndprocnear WaitForVerticalSyncEnd proc near
mov dx,INPUT_STATUS_0 mov dx,INPUT_STATUS_0
WaitVerticalSync2: WaitVerticalSync2:
in al,dx in al,dx

View file

@ -491,7 +491,7 @@ WritePixelendp
; ;
; Registers altered: AX, CX, DX, SI, ES ; Registers altered: AX, CX, DX, SI, ES
; ;
ReadPixelprocnear ReadPixel proc near
mov ax,VGA_SEGMENT mov ax,VGA_SEGMENT
mov es,ax ;point to display memory mov es,ax ;point to display memory
mov ax,SCREEN_WIDTH/4 mov ax,SCREEN_WIDTH/4
@ -757,7 +757,7 @@ Start endp
; ;
; Output: none ; Output: none
; ;
Set320By400Modeprocnear Set320By400Mode proc near
; ;
; First, go to normal 320x200 256-color mode, which is really a ; First, go to normal 320x200 256-color mode, which is really a
; 320x400 256-color mode with each line scanned twice. ; 320x400 256-color mode with each line scanned twice.
@ -853,7 +853,7 @@ Set320By400Mode endp
; make them slant down and to the left, 0 to make ; make them slant down and to the left, 0 to make
; them vertical. ; them vertical.
; ;
ColorBarsUpprocnear ColorBarsUp proc near
mov ax,VGA_SEGMENT mov ax,VGA_SEGMENT
mov es,ax ;point to display memory mov es,ax ;point to display memory
sub bh,bh ;start with color 0 sub bh,bh ;start with color 0
@ -891,7 +891,7 @@ ColorBarsUpendp
; ;
; Waits for the next key and returns it in AX. ; Waits for the next key and returns it in AX.
; ;
GetNextKeyprocnear GetNextKey proc near
WaitKey: WaitKey:
mov ah,1 mov ah,1
int 16h int 16h

View file

@ -199,7 +199,7 @@ _TEXTsegment byte public CODE'
; Returns: nothing ; Returns: nothing
; ;
public _Set360x480Mode public _Set360x480Mode
_Set360x480Modeprocnear _Set360x480Mode proc near
push si ;preserve C register vars push si ;preserve C register vars
push di push di
mov ax,12h ; start with mode 12h mov ax,12h ; start with mode 12h
@ -258,7 +258,7 @@ Color dw ? ;color in which to draw (in the
DParms ends DParms ends
; ;
public _Draw360x480Dot public _Draw360x480Dot
_Draw360x480Dotprocnear _Draw360x480Dot proc near
push bp ;preserve caller's BP push bp ;preserve caller's BP
mov bp,sp ;point to stack frame mov bp,sp ;point to stack frame
push si ;preserve C register vars push si ;preserve C register vars
@ -306,7 +306,7 @@ ReadY dw ? ;Y coordinate from which to read
RParms ends RParms ends
; ;
public _Read360x480Dot public _Read360x480Dot
_Read360x480Dotprocnear _Read360x480Dot proc near
push bp ;preserve caller's BP push bp ;preserve caller's BP
mov bp,sp ;point to stack frame mov bp,sp ;point to stack frame
push si ;preserve C register vars push si ;preserve C register vars

View file

@ -199,7 +199,7 @@ SCparms ends
align ALIGNMENT align ALIGNMENT
public -CosSin public -CosSin
-CosSinprocnear -CosSin proc near
push bp ;preserve stack frame push bp ;preserve stack frame
mov bp,sp ;set up local stack frame mov bp,sp ;set up local stack frame

View file

@ -339,7 +339,7 @@ SCparms ends
alignALIGNMENT alignALIGNMENT
public _CosSin public _CosSin
_CosSin procnear _CosSin proc near
push bp ;preserve stack frame push bp ;preserve stack frame
mov bp,sp ;set up local stack frame mov bp,sp ;set up local stack frame
@ -597,7 +597,7 @@ FixedMulDone:
align ALIGNMENT align ALIGNMENT
public _XformVec public _XformVec
_XformVecprocnear _XformVec proc near
push bp ;preserve stack frame push bp ;preserve stack frame
mov bp,sp ;set up local stack frame mov bp,sp ;set up local stack frame
push si ;preserve register variables push si ;preserve register variables
@ -741,7 +741,7 @@ CXparms ends
align ALIGNMENT align ALIGNMENT
public _ConcatXforms public _ConcatXforms
_ConcatXformsprocnear _ConcatXforms proc near
push bp ;preserve stack frame push bp ;preserve stack frame
mov bp,sp ;set up local stack frame mov bp,sp ;set up local stack frame
push si ;preserve register variables push si ;preserve register variables