From 9373e5d2ee27f6b6fc73e412c737635d3fd74498 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Thu, 21 May 2020 10:54:08 +0200 Subject: [PATCH] Fix 'procnear' -> ' proc near' Automatically done using: sed -i '' -e 's/procnear/ proc near/g' src/*.md --- src/chapter-01.md | 2 +- src/chapter-07.md | 4 ++-- src/chapter-09.md | 6 +++--- src/chapter-28.md | 6 +++--- src/chapter-29.md | 2 +- src/chapter-30.md | 4 ++-- src/chapter-31.md | 8 ++++---- src/chapter-32.md | 6 +++--- src/chapter-53.md | 2 +- src/chapter-54.md | 6 +++--- 10 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/chapter-01.md b/src/chapter-01.md index 8f4a05e..c5fa5f1 100644 --- a/src/chapter-01.md +++ b/src/chapter-01.md @@ -759,7 +759,7 @@ Parmsends .model small .code public _ChecksumChunk -_ChecksumChunkprocnear +_ChecksumChunk proc near push bp mov bp,sp push si ;save C's register variable diff --git a/src/chapter-07.md b/src/chapter-07.md index 5d73234..97dcded 100644 --- a/src/chapter-07.md +++ b/src/chapter-07.md @@ -263,7 +263,7 @@ NoByteFoundMsg db 0dh,0ah db ‘Buffer exhausted with no match.', 0dh, 0ah, ‘$' .code -Startprocnear +Start proc near mov ax,@data ;point to standard data segment mov ds,ax mov dx,offset Prompt @@ -306,7 +306,7 @@ Startendp ; byte is found ; Carry Flag = set if searched-for byte found, reset otherwise -SearchMaxLengthprocnear +SearchMaxLength proc near cld SearchMaxLengthLoop: lodsb ;get the next byte diff --git a/src/chapter-09.md b/src/chapter-09.md index c836fc7..1f50b8a 100644 --- a/src/chapter-09.md +++ b/src/chapter-09.md @@ -395,7 +395,7 @@ Parmsends .model small .code public _FindString -_FindStringprocnear +_FindString proc near push bp ;preserve caller's stack frame mov bp,sp ;point to our stack frame push si ;preserve caller's register variables @@ -492,7 +492,7 @@ Parmsends .model small .code public _FindString -_FindStringprocnear +_FindString proc near push bp ;preserve caller's stack frame mov bp,sp ;point to our stack frame push si ;preserve caller's register variables @@ -743,7 +743,7 @@ parmsends .model small .code public _Div -_Divprocnear +_Div proc near push bp ;preserve caller's stack frame mov bp,sp ;point to our stack frame push si ;preserve caller's register variables diff --git a/src/chapter-28.md b/src/chapter-28.md index 2e88c67..4576cbf 100644 --- a/src/chapter-28.md +++ b/src/chapter-28.md @@ -202,7 +202,7 @@ Startendp ; Draws the image at offset DS:SI to the current image location in ; VGA memory. ; -DrawImageprocnear +DrawImage proc near mov ax,VGA_SEGMENT mov es,ax 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 ; to AL. ; -SelectSetResetColorprocnear +SelectSetResetColor proc near mov dx,GC_INDEX push ax ;preserve color 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' assume cs:code -Startprocnear +Start proc near ; ; Select graphics mode 12h. ; diff --git a/src/chapter-29.md b/src/chapter-29.md index da8e8dc..2bf80c9 100644 --- a/src/chapter-29.md +++ b/src/chapter-29.md @@ -574,7 +574,7 @@ Data ends ; Code segment assume cs:Code, ds:Data -Start procnear +Start proc near cld mov ax,Data mov ds,ax diff --git a/src/chapter-30.md b/src/chapter-30.md index bc390d8..4fa8d60 100644 --- a/src/chapter-30.md +++ b/src/chapter-30.md @@ -328,7 +328,7 @@ Startendp ; ; Registers altered: AL, DX ; -WaitForVerticalSyncStartprocnear +WaitForVerticalSyncStart proc near mov dx,INPUT_STATUS_0 WaitNotVerticalSync: in al,dx @@ -349,7 +349,7 @@ WaitForVerticalSyncStart endp ; ; Registers altered: AL, DX ; -WaitForVerticalSyncEndprocnear +WaitForVerticalSyncEnd proc near mov dx,INPUT_STATUS_0 WaitVerticalSync2: in al,dx diff --git a/src/chapter-31.md b/src/chapter-31.md index e5da35b..91818d8 100644 --- a/src/chapter-31.md +++ b/src/chapter-31.md @@ -491,7 +491,7 @@ WritePixelendp ; ; Registers altered: AX, CX, DX, SI, ES ; -ReadPixelprocnear +ReadPixel proc near mov ax,VGA_SEGMENT mov es,ax ;point to display memory mov ax,SCREEN_WIDTH/4 @@ -757,7 +757,7 @@ Start endp ; ; Output: none ; -Set320By400Modeprocnear +Set320By400Mode proc near ; ; First, go to normal 320x200 256-color mode, which is really a ; 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 ; them vertical. ; -ColorBarsUpprocnear +ColorBarsUp proc near mov ax,VGA_SEGMENT mov es,ax ;point to display memory sub bh,bh ;start with color 0 @@ -891,7 +891,7 @@ ColorBarsUpendp ; ; Waits for the next key and returns it in AX. ; -GetNextKeyprocnear +GetNextKey proc near WaitKey: mov ah,1 int 16h diff --git a/src/chapter-32.md b/src/chapter-32.md index bba9b2f..e8df20d 100644 --- a/src/chapter-32.md +++ b/src/chapter-32.md @@ -199,7 +199,7 @@ _TEXTsegment byte public ‘CODE' ; Returns: nothing ; public _Set360x480Mode -_Set360x480Modeprocnear +_Set360x480Mode proc near push si ;preserve C register vars push di mov ax,12h ; start with mode 12h @@ -258,7 +258,7 @@ Color dw ? ;color in which to draw (in the DParms ends ; public _Draw360x480Dot -_Draw360x480Dotprocnear +_Draw360x480Dot proc near push bp ;preserve caller's BP mov bp,sp ;point to stack frame push si ;preserve C register vars @@ -306,7 +306,7 @@ ReadY dw ? ;Y coordinate from which to read RParms ends ; public _Read360x480Dot -_Read360x480Dotprocnear +_Read360x480Dot proc near push bp ;preserve caller's BP mov bp,sp ;point to stack frame push si ;preserve C register vars diff --git a/src/chapter-53.md b/src/chapter-53.md index 5bcd56e..1253897 100644 --- a/src/chapter-53.md +++ b/src/chapter-53.md @@ -199,7 +199,7 @@ SCparms ends align ALIGNMENT public -CosSin --CosSinprocnear +-CosSin proc near push bp ;preserve stack frame mov bp,sp ;set up local stack frame diff --git a/src/chapter-54.md b/src/chapter-54.md index 9bb7b63..f0b72be 100644 --- a/src/chapter-54.md +++ b/src/chapter-54.md @@ -339,7 +339,7 @@ SCparms ends alignALIGNMENT public _CosSin -_CosSin procnear +_CosSin proc near push bp ;preserve stack frame mov bp,sp ;set up local stack frame @@ -597,7 +597,7 @@ FixedMulDone: align ALIGNMENT public _XformVec -_XformVecprocnear +_XformVec proc near push bp ;preserve stack frame mov bp,sp ;set up local stack frame push si ;preserve register variables @@ -741,7 +741,7 @@ CXparms ends align ALIGNMENT public _ConcatXforms -_ConcatXformsprocnear +_ConcatXforms proc near push bp ;preserve stack frame mov bp,sp ;set up local stack frame push si ;preserve register variables