compiles on modified jwasm

This commit is contained in:
NishiOwO 2025-04-02 07:52:59 +09:00
parent 5746ab4feb
commit 207c82c19f
No known key found for this signature in database
GPG Key ID: 27EF69B208EB9343
49 changed files with 1793 additions and 1964 deletions

118
SRC/GNUmakefile Normal file
View File

@ -0,0 +1,118 @@
.SUFFIXES: .asm .obj
.PHONY: vz default clean
OBJS = main.obj alias.obj char.obj core.obj disp.obj dos.obj expr.obj\
filer.obj gets.obj harderr.obj inst.obj key.obj ledit.obj macro.obj\
memo.obj menu.obj misc.obj open.obj printf.obj scrn.obj smooth.obj\
string.obj text.obj view.obj wind.obj swap.obj ems.obj xscr.obj msg.obj
HARD =
FLAG = -DPC98
default:
@echo "Available paltforms: 98 J31 IBM IBMJ AX 55 US"
@echo "Run $(MAKE) vz PLATFORM=<platform> to build"
ifeq ($(PLATFORM),98)
HARD=
FLAG=-DPC98
endif
ifeq ($(PLATFORM),J31)
HARD=J31
FLAG=-DJ31
endif
ifeq ($(PLATFORM),IBM)
HARD=IBM
FLAG=-DIBMV
endif
ifeq ($(PLATFORM),IBMJ)
HARD=IBMJ
FLAG=-DIBMJ
endif
ifeq ($(PLATFORM),AX)
HARD=AX
FLAG=-DIBMAX
endif
ifeq ($(PLATFORM),55)
HARD=55
FLAG=-DJBM
endif
ifeq ($(PLATFORM),US)
HARD=US
FLAG=-DUS
endif
vz: vz$(HARD).com
.asm.obj:
jwasm -Zm -Zg -ml -Zne -Zg -fpc -nologo -Cu -zcw -c $(FLAG) -Fo$@ $< || (rm -f $@ ; exit 1)
vz$(HARD).com: $(OBJS)
wlink format dos com name $@ file `echo $^ | sed "s/ /,/g"`
main.obj: vz.inc main.asm
alias.obj: vz.inc alias.asm
char.obj: vz.inc char.asm
core.obj: vz.inc core.asm
disp.obj: vz.inc disp.asm
dos.obj: vz.inc dos.asm
expr.obj: vz.inc expr.asm
filer.obj: vz.inc filer.asm
gets.obj: vz.inc gets.asm
harderr.obj: vz.inc harderr.asm
inst.obj: vz.inc inst.asm
key.obj: vz.inc key.asm key98.asm keyibm.asm
ledit.obj: vz.inc ledit.asm
macro.obj: vz.inc macro.asm
memo.obj: vz.inc memo.asm
menu.obj: vz.inc menu.asm
misc.obj: vz.inc misc.asm
open.obj: vz.inc open.asm
printf.obj: sprintf.inc printf.asm
scrn.obj: vz.inc scrn.asm scrn98.asm scrnibm.asm
smooth.obj: vz.inc smooth.asm
string.obj: vz.inc string.asm
text.obj: vz.inc text.asm
view.obj: vz.inc view.asm
wind.obj: vz.inc wind.asm
xscr.obj: vz.inc xscr.asm
swap.obj: vz.inc swap.asm
ems.obj: vz.inc ems.asm
msg.obj: vz.inc msg.asm
clean:
rm -f vz*.com *.obj *.err

View File

@ -1,29 +0,0 @@
echo off
rem ------- Assemble a source -------
rem ... called by cmos.def [f¥10],[SHIFT]+[f¥10]
rem
rem %ASM% :assembler name cap (opt,t,m) ex. set asm=opt
rem %MASM% :assemble option (/ml) ex. set masm=/ml
echo ===== %ASM%asm %1 =====
if not "%2"=="" goto asm2
if not "%HARD%"=="" goto asm1d
%ASM%asm %MASM% %1;
goto end
:asm1d
%ASM%asm %MASM% /d%HARD% %1;
goto end
:asm2
if not "%HARD%"=="" goto asm2d
%ASM%asm %MASM% /%2 %1;
goto end
:asm2d
%ASM%asm %MASM% /d%HARD% /%2 %1;
goto end
:end
if errorlevel 1 echo 


View File

@ -99,7 +99,7 @@ isatm3:
mov di,si mov di,si
stc stc
isatm8: pop si isatm8: pop si
ret VZ_RET
isatom endp isatom endp
;--- Word length --- ;--- Word length ---
@ -118,7 +118,7 @@ wlen1: lodsb
wlen2: dec si wlen2: dec si
sub cx,si sub cx,si
neg cx neg cx
ret VZ_RET
wordlen endp wordlen endp
;--- Statement length --- ;--- Statement length ---
@ -141,7 +141,7 @@ slen2: tst al
slen3: dec si slen3: dec si
sub cx,si sub cx,si
neg cx neg cx
wlen9: ret wlen9: VZ_RET
statelen endp statelen endp
;--- Insert string --- ;--- Insert string ---
@ -179,7 +179,7 @@ insstr1:
pop ds pop ds
popm <di,si,dx,cx> popm <di,si,dx,cx>
call memmove call memmove
ret VZ_RET
insertstr endp insertstr endp
;--- Spread %n variables --- ;--- Spread %n variables ---
@ -205,7 +205,7 @@ _if z
clr dl clr dl
jmps spvar_all jmps spvar_all
_endif _endif
spvar9: ret spvar9: VZ_RET
spvar2: spvar2:
inc cx inc cx
@ -313,7 +313,7 @@ _repeat
dec dl dec dl
_until _until
skpar0: clr si skpar0: clr si
skpar9: ret skpar9: VZ_RET
seekparm endp seekparm endp
;--- Parse parmeter --- ;--- Parse parmeter ---
@ -329,32 +329,32 @@ parseparm proc
mov di,si mov di,si
call parsepath call parsepath
dec si dec si
test dl,PRS_DRV test dl,VZ_PRS_DRV
_ifn z _ifn z
or dl,PRS_DIR or dl,VZ_PRS_DIR
_endif _endif
and dl,PRS_DIR+PRS_NAME+PRS_EXT and dl,VZ_PRS_DIR+VZ_PRS_NAME+VZ_PRS_EXT
shl dh,1 shl dh,1
mov al,dl mov al,dl
and al,dh and al,dh
jz papar0 jz papar0
test al,PRS_DIR test al,VZ_PRS_DIR
jnz papar2 jnz papar2
mov di,bx mov di,bx
test al,PRS_NAME test al,VZ_PRS_NAME
jnz papar2 jnz papar2
mov di,cx mov di,cx
inc di inc di
papar2: xchg si,di papar2: xchg si,di
mov ax,bx mov ax,bx
test dl,PRS_NAME test dl,VZ_PRS_NAME
jz papar3 jz papar3
test dh,PRS_NAME+PRS_EXT test dh,VZ_PRS_NAME+VZ_PRS_EXT
jz papar4 jz papar4
papar3: mov ax,cx papar3: mov ax,cx
test dl,PRS_EXT test dl,VZ_PRS_EXT
jz papar5 jz papar5
test dh,PRS_EXT test dh,VZ_PRS_EXT
jnz papar5 jnz papar5
papar4: mov di,ax papar4: mov di,ax
papar5: mov cx,di papar5: mov cx,di
@ -362,7 +362,7 @@ papar5: mov cx,di
jmps papar9 jmps papar9
papar0: clr cx papar0: clr cx
papar9: pop di papar9: pop di
ret VZ_RET
parseparm endp parseparm endp
;--- Dump alias --- ;--- Dump alias ---
@ -382,14 +382,14 @@ aliasmenu proc
mov si,bx mov si,bx
add si,type _menu add si,type _menu
call popupmenu call popupmenu
almnu9: ret almnu9: VZ_RET
aliasmenu endp aliasmenu endp
drawalias proc drawalias proc
tst ah tst ah
_ifn z _ifn z
stc stc
ret VZ_RET
_endif _endif
mov cl,al mov cl,al
clr ch clr ch
@ -399,7 +399,7 @@ _endif
call fillspc call fillspc
call skipspc call skipspc
call puts call puts
ret VZ_RET
drawalias endp drawalias endp
;--- Count alias --- ;--- Count alias ---
@ -417,7 +417,7 @@ _repeat
_loop _loop
cntal8: mov si,di cntal8: mov si,di
pop di pop di
ret VZ_RET
cntalias endp cntalias endp
;--- Parse command line --- ;--- Parse command line ---
@ -515,7 +515,7 @@ pacmd5:
mov si,tmpbuf mov si,tmpbuf
call ems_loadmap call ems_loadmap
pacmd9: tstb poolf pacmd9: tstb poolf
ret VZ_RET
parseline endp parseline endp
;--- Next statement --- ;--- Next statement ---
@ -548,7 +548,7 @@ _endif
call skipspc call skipspc
mov ax,si mov ax,si
pop si pop si
next9: ret next9: VZ_RET
nextstate endp nextstate endp
;--- Parse statement (%%,%env%) --- ;--- Parse statement (%%,%env%) ---
@ -616,7 +616,7 @@ _endif
add si,cx add si,cx
jmp pastat1 jmp pastat1
pastat9:dec si pastat9:dec si
ret VZ_RET
parsestate endp parsestate endp
endes endes
@ -627,4 +627,3 @@ ENDIF
; End of 'alias.asm' ; End of 'alias.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -16,9 +16,9 @@ isupper proc
cmp al,'Z' cmp al,'Z'
ja notup ja notup
stc stc
isupr9: ret isupr9: VZ_RET
notup: clc notup: clc
ret VZ_RET
isupper endp isupper endp
;--- Is lower/alpha? --- ;--- Is lower/alpha? ---
@ -34,9 +34,9 @@ islower:
cmp al,'z' cmp al,'z'
ja notalp ja notalp
stc stc
ret VZ_RET
notalp: clc notalp: clc
isal9: ret isal9: VZ_RET
isalpha endp isalpha endp
endbs endbs
@ -53,9 +53,9 @@ isdigit proc
cmp al,'9' cmp al,'9'
ja notdig ja notdig
stc stc
ret VZ_RET
notdig: clc notdig: clc
ret VZ_RET
isdigit endp isdigit endp
;--- Is kanji ? --- ;--- Is kanji ? ---
@ -65,9 +65,9 @@ isdigit endp
iskanji proc iskanji proc
ifkanji kjyes ifkanji kjyes
clc clc
ret VZ_RET
kjyes: stc kjyes: stc
ret VZ_RET
iskanji endp iskanji endp
;--- Char to upper/lower case --- ;--- Char to upper/lower case ---
@ -81,7 +81,7 @@ _if c
sub al,'a'-'A' sub al,'a'-'A'
stc stc
_endif _endif
ret VZ_RET
toupper endp toupper endp
tolower proc tolower proc
@ -90,7 +90,7 @@ _if c
add al,'a'-'A' add al,'a'-'A'
stc stc
_endif _endif
ret VZ_RET
tolower endp tolower endp
;--- String to upper/lower case --- ;--- String to upper/lower case ---
@ -110,7 +110,7 @@ _repeat
_cont _cont
strup2: lodsb strup2: lodsb
_until _until
ret VZ_RET
strupr endp strupr endp
strlwr proc strlwr proc
@ -126,7 +126,7 @@ _repeat
_cont _cont
strlw2: lodsb strlw2: lodsb
_until _until
ret VZ_RET
strlwr endp strlwr endp
;--- Copy string --- ;--- Copy string ---
@ -142,7 +142,7 @@ _repeat
tst al tst al
_until z _until z
dec di dec di
ret VZ_RET
strcpy endp strcpy endp
;--- Copy string (max) --- ;--- Copy string (max) ---
@ -163,7 +163,7 @@ _loop
sncpy2: clr al sncpy2: clr al
stosb stosb
sncpy3: dec di sncpy3: dec di
ret VZ_RET
strncpy endp strncpy endp
;--- Copy word --- ;--- Copy word ---
@ -181,7 +181,7 @@ _until be
dec si dec si
dec di dec di
mov byte ptr es:[di],0 mov byte ptr es:[di],0
ret VZ_RET
wrdcpy endp wrdcpy endp
;--- Compare two strings --- ;--- Compare two strings ---
@ -193,7 +193,7 @@ strcmp proc
pushm <si,di> pushm <si,di>
call strcmp1 call strcmp1
popm <di,si> popm <di,si>
ret VZ_RET
strcmp endp strcmp endp
strcmp1 proc strcmp1 proc
@ -207,7 +207,7 @@ strcmp1 proc
rep cmpsb rep cmpsb
mov al,es:[di-1] mov al,es:[di-1]
pop cx pop cx
ret VZ_RET
strcmp1 endp strcmp1 endp
;----- Ignore case compare ----- ;----- Ignore case compare -----
@ -229,7 +229,7 @@ _repeat
tst al tst al
_until z _until z
popm <di,si> popm <di,si>
ret VZ_RET
stricmp endp stricmp endp
;--- Ignore case word compare --- ;--- Ignore case word compare ---
@ -258,7 +258,7 @@ wcmp1: cmp ah,SPC
stc stc
wcmp9: mov ax,si ; AX=next si wcmp9: mov ax,si ; AX=next si
pop si pop si
ret VZ_RET
wrdicmp endp wrdicmp endp
;--- String length --- ;--- String length ---
@ -274,7 +274,7 @@ strlen proc
not ax not ax
dec ax dec ax
popm <es,di,cx> popm <es,di,cx>
ret VZ_RET
strlen endp strlen endp
public skipstr public skipstr
@ -285,7 +285,7 @@ skipstr proc
repnz scasb repnz scasb
mov ax,cx mov ax,cx
pop cx pop cx
ret VZ_RET
skipstr endp skipstr endp
public strskip public strskip
@ -296,7 +296,7 @@ strskip proc
call skipstr call skipstr
mov si,di mov si,di
popm <es,di> popm <es,di>
ret VZ_RET
strskip endp strskip endp
;--- Skip SPC,TAB --- ;--- Skip SPC,TAB ---
@ -313,7 +313,7 @@ skipspc1:
cmp al,SPC cmp al,SPC
je skipspc je skipspc
skpspc8:dec si skpspc8:dec si
ret VZ_RET
skipspc endp skipspc endp
;--- Skip to next char --- ;--- Skip to next char ---
@ -328,7 +328,7 @@ _repeat
cmp al,SPC cmp al,SPC
_until be _until be
call skipspc1 call skipspc1
ret VZ_RET
skipchar endp skipchar endp
;--- Change LF to NULL --- ;--- Change LF to NULL ---
@ -347,7 +347,7 @@ lftonull proc
dec ax dec ax
mov byte ptr [di],0 mov byte ptr [di],0
pop cx pop cx
ret VZ_RET
lftonull endp lftonull endp
;--- Scan CS:table --- ;--- Scan CS:table ---
@ -358,9 +358,9 @@ scantbl proc
movseg es,cs movseg es,cs
repne scasb repne scasb
pop es pop es
ret VZ_RET
scantbl endp scantbl endp
ret VZ_RET
;----- strchr(s,c) ----- ;----- strchr(s,c) -----
;<-- CY :found(SI:ptr, CX:index) ;<-- CY :found(SI:ptr, CX:index)
@ -407,7 +407,7 @@ _until e
_endif _endif
stc stc
strchr_x: pop bx strchr_x: pop bx
ret VZ_RET
strchr endp strchr endp
;----- strstr(si,di) ----- ;----- strstr(si,di) -----
@ -448,7 +448,7 @@ _repeat
_loop _loop
strstr8: clc strstr8: clc
strstr9: pop bx strstr9: pop bx
ret VZ_RET
strstr endp strstr endp
endes endes

View File

@ -112,7 +112,7 @@ _if z
schex_x:stc schex_x:stc
_endif _endif
dec si dec si
ret VZ_RET
scanhexa endp scanhexa endp
;--- Scan substring2 in string1 (ignore case) --- ;--- Scan substring2 in string1 (ignore case) ---
@ -144,7 +144,7 @@ stri2: lodsb
inc di inc di
jmp stri1 jmp stri1
stri_o: stc stri_o: stc
stri_x: ret stri_x: VZ_RET
stristr endp stristr endp
;--- Is upper? --- ;--- Is upper? ---
@ -156,9 +156,9 @@ isupper proc
cmp al,'Z' cmp al,'Z'
ja notup ja notup
stc stc
isupr9: ret isupr9: VZ_RET
notup: clc notup: clc
ret VZ_RET
isupper endp isupper endp
;--- Is lower/alpha? --- ;--- Is lower/alpha? ---
@ -173,9 +173,9 @@ islower:
cmp al,'z' cmp al,'z'
ja notalp ja notalp
stc stc
ret VZ_RET
notalp: clc notalp: clc
isal9: ret isal9: VZ_RET
isalpha endp isalpha endp
;--- Is digit ? --- ;--- Is digit ? ---
@ -187,9 +187,9 @@ isdigit proc
cmp al,'9' cmp al,'9'
ja notdig ja notdig
stc stc
ret VZ_RET
notdig: clc notdig: clc
ret VZ_RET
isdigit endp isdigit endp
;--- Char to upper/lower case --- ;--- Char to upper/lower case ---
@ -202,7 +202,7 @@ _if c
sub al,'a'-'A' sub al,'a'-'A'
stc stc
_endif _endif
ret VZ_RET
toupper endp toupper endp
;--- Skip SPC,TAB --- ;--- Skip SPC,TAB ---
@ -218,7 +218,7 @@ skipspc1:
cmp al,SPC cmp al,SPC
je skipspc je skipspc
skpspc8:dec si skpspc8:dec si
ret VZ_RET
skipspc endp skipspc endp
;--- Messages --- ;--- Messages ---

View File

@ -19,7 +19,7 @@
extrn w_back :word extrn w_back :word
endws endws
extrn chkdosheight :near ; extrn chkdosheight :near
extrn chkline1 :near extrn chkline1 :near
extrn clrbtm :near extrn clrbtm :near
extrn cls :near extrn cls :near
@ -65,7 +65,7 @@ _if c
sub al,cl sub al,cl
mov cl,255 mov cl,255
_endif _endif
ret VZ_RET
do_tab endp do_tab endp
endes endes
@ -131,7 +131,7 @@ blod5: mov [bp].lbseg,ss ; ##1.5
mov [bp].wnxt,0 mov [bp].wnxt,0
clc clc
blod9: pop es blod9: pop es
ret VZ_RET
bload endp bload endp
;--- Save from Line buffer --- ;--- Save from Line buffer ---
@ -229,7 +229,7 @@ _endif
call offlbuf call offlbuf
clc clc
bsav9: pop es bsav9: pop es
ret VZ_RET
bsave endp bsave endp
;--- Close Line buffer --- ;--- Close Line buffer ---
@ -246,7 +246,7 @@ offlbuf proc
pop si pop si
mov [bp].bmax,0FFFFh mov [bp].bmax,0FFFFh
mov [bp].inbuf,FALSE mov [bp].inbuf,FALSE
ret VZ_RET
offlbuf endp offlbuf endp
;--- Scan line start ptr --- ;--- Scan line start ptr ---
@ -265,7 +265,7 @@ topl1: dec si
cld cld
inc si inc si
inc si inc si
topl9: ret topl9: VZ_RET
toplin endp toplin endp
endlin proc endlin proc
@ -277,7 +277,7 @@ endlin proc
repne scasb repne scasb
mov si,di mov si,di
popm <es,di,cx> popm <es,di,cx>
ret VZ_RET
endlin endp endlin endp
;--- Scan field start ptr --- ;--- Scan field start ptr ---
@ -294,7 +294,7 @@ _if c
inc [bp].lnumb inc [bp].lnumb
_endif _endif
inc [bp].dnumb inc [bp].dnumb
ret VZ_RET
prefldl: prefldl:
cmp byte ptr [si-1],LF cmp byte ptr [si-1],LF
_if e _if e
@ -380,7 +380,7 @@ fild4:
jne fild1 jne fild1
clc clc
fild8: mov si,bx fild8: mov si,bx
fild9: ret fild9: VZ_RET
prefld endp prefld endp
nxtfld endp nxtfld endp
@ -402,7 +402,7 @@ _repeat
cmp si,di cmp si,di
_until a _until a
mov si,ax mov si,ax
tfld9: ret tfld9: VZ_RET
topfld endp topfld endp
;**************************** ;****************************
@ -460,7 +460,7 @@ _endif
call scrout_cp call scrout_cp
call dispstat call dispstat
dspscr9:clc dspscr9:clc
ret VZ_RET
dspscr endp dspscr endp
@ -519,7 +519,7 @@ tout1:
call isdnumb call isdnumb
jz tout9 jz tout9
tout8: inc dx tout8: inc dx
tout9: ret tout9: VZ_RET
tout endp tout endp
;--- Check block --- ;--- Check block ---
@ -585,10 +585,10 @@ _ifn z
mov cx,-1 mov cx,-1
_endif _endif
_endif _endif
ret VZ_RET
noblk: noblk:
clr ah clr ah
ret VZ_RET
chktblk endp chktblk endp
chkbblk proc chkbblk proc
@ -689,7 +689,7 @@ sout41: clr ax
jz sout9 jz sout9
sout5: call cls sout5: call cls
sout9: clc sout9: clc
ret VZ_RET
scrout endp scrout endp
;--- Display lower screen --- ;--- Display lower screen ---
@ -737,7 +737,7 @@ bout2:
jmp bout1 jmp bout1
bout8: pop ds bout8: pop ds
clc clc
ret VZ_RET
bufout endp bufout endp
;--- Set home line number --- ;--- Set home line number ---
@ -757,7 +757,7 @@ sethomdnumb:
sub dl,[bp].wy sub dl,[bp].wy
sbb dh,0 sbb dh,0
_endif _endif
ret VZ_RET
sethomnumb endp sethomnumb endp
;--- Set bottom line number --- ;--- Set bottom line number ---
@ -777,7 +777,7 @@ _else
clr dh clr dh
add dx,[bp].dnumb add dx,[bp].dnumb
_endif _endif
ret VZ_RET
setbtmnumb endp setbtmnumb endp
;--- Clear message line --- ;--- Clear message line ---
@ -802,7 +802,7 @@ _endif
mov ds,[bp].ttops mov ds,[bp].ttops
call clrmsg1 call clrmsg1
popm <ds,bp> popm <ds,bp>
ret VZ_RET
clrmsg1: clrmsg1:
mov dx,[bp].lnumb mov dx,[bp].lnumb
@ -832,7 +832,7 @@ _else
call cls call cls
_endif _endif
_endif _endif
ret VZ_RET
clrmsg endp clrmsg endp
endcs endcs
@ -962,7 +962,7 @@ cpxeq:
mov [bp].lx,cl mov [bp].lx,cl
mov [bp].lxs,cl mov [bp].lxs,cl
pop ds pop ds
ret VZ_RET
cptoxy endp cptoxy endp
endes endes
@ -1102,7 +1102,7 @@ xyc_lf: dec cl
xyc8: xyc8:
mov [bp].tcp,si mov [bp].tcp,si
mov [bp].lx,cl mov [bp].lx,cl
ret VZ_RET
xytocp endp xytocp endp
;--- Adjust by cp --- ;--- Adjust by cp ---
@ -1146,7 +1146,7 @@ setlendp:
mov [bp].tnxt,si mov [bp].tnxt,si
call setbend call setbend
pop si pop si
ret VZ_RET
setlinep endp setlinep endp
;--- Set bend --- ;--- Set bend ---
@ -1159,7 +1159,7 @@ _if e
dec si dec si
_endif _endif
mov [bp].bend,si mov [bp].bend,si
ret VZ_RET
setbend endp setbend endp
;--- Set home ptr --- ;--- Set home ptr ---
@ -1202,7 +1202,7 @@ home4:
mov [bp].wy,al ;set wy mov [bp].wy,al ;set wy
home5: mov [bp].thom,si ;set thom home5: mov [bp].thom,si ;set thom
_endif _endif
ret VZ_RET
sethome endp sethome endp
endcs endcs
@ -1230,7 +1230,7 @@ _endif
sub al,ah sub al,ah
_if b _if b
hadj9: clc hadj9: clc
ret VZ_RET
_endif _endif
inc al inc al
tstb [bp].ckanj tstb [bp].ckanj
@ -1241,7 +1241,7 @@ _endif
hadj4: mov [bp].fofs,al hadj4: mov [bp].fofs,al
mov [bp].wnxt,0 ; ##100.04 mov [bp].wnxt,0 ; ##100.04
stc stc
ret VZ_RET
hadjust endp hadjust endp
endes endes
@ -1286,11 +1286,11 @@ vadjm:
vadjb: vadjb:
call sethome call sethome
vadjs: stc vadjs: stc
ret VZ_RET
vadj0: vadj0:
mov [bp].wy,al mov [bp].wy,al
vadjc: clc vadjc: clc
ret VZ_RET
vadjust endp vadjust endp
@ -1332,7 +1332,7 @@ vscr2: push dx
vscr3: popf vscr3: popf
call scrout1 call scrout1
vscr8: pop dx vscr8: pop dx
ret VZ_RET
vscr5: vscr5:
mov al,dh mov al,dh
vscr6: vscr6:
@ -1381,7 +1381,7 @@ _else
pop si pop si
call tout call tout
_endif _endif
ret VZ_RET
vscroll endp vscroll endp
public vscroll2 public vscroll2
@ -1426,4 +1426,3 @@ vscroll2 endp
; End of 'core.asm' ; End of 'core.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -21,23 +21,23 @@ _FN equ 10000000b ; file name char
isupper: cmp al,'A' isupper: cmp al,'A'
jb isnot jb isnot
cmp al,'Z'+1 cmp al,'Z'+1
ret VZ_RET
isalpha: call isupper isalpha: call isupper
jc isal9 jc isal9
islower: cmp al,'a' islower: cmp al,'a'
jb isnot jb isnot
cmp al,'z'+1 cmp al,'z'+1
isal9: ret isal9: VZ_RET
isdigit: cmp al,'0' isdigit: cmp al,'0'
jb isnot jb isnot
cmp al,'9'+1 cmp al,'9'+1
ret VZ_RET
iskanji: ifkanji yes iskanji: ifkanji yes
isnot: clc isnot: clc
ret VZ_RET
;----- Is file name? ----- ;----- Is file name? -----
;--> AL :char (20h<=AL<80h) ;--> AL :char (20h<=AL<80h)
@ -58,7 +58,7 @@ isfilename proc
popm <cx,bx> popm <cx,bx>
jz isfl9 jz isfl9
yes: stc yes: stc
isfl9: ret isfl9: VZ_RET
isfilename endp isfilename endp
fnbittbl db 01011111b,11000100b,11111111b,11000000b fnbittbl db 01011111b,11000100b,11111111b,11000000b

View File

@ -135,7 +135,7 @@ newline proc
mov msgon,-1 mov msgon,-1
popm <dx,cx,ax> popm <dx,cx,ax>
popf popf
ret VZ_RET
newline endp newline endp
endes endes
@ -183,7 +183,7 @@ _endif
call getloc ; ##156.139 call getloc ; ##156.139
call locate call locate
popm <ds,di,si,dx> popm <ds,di,si,dx>
ret VZ_RET
dispmsg endp dispmsg endp
messagep proc messagep proc
@ -195,7 +195,7 @@ _repeat
dec dl dec dl
_until z _until z
mov si,di mov si,di
ret VZ_RET
messagep endp messagep endp
assume ds:cgroup assume ds:cgroup
@ -213,7 +213,7 @@ dispstr proc
mov si,sbuf mov si,sbuf
call puts call puts
pop ds pop ds
ret VZ_RET
dispstr endp dispstr endp
assume ds:nothing assume ds:nothing
@ -264,7 +264,7 @@ ask8: pushf
call csroff call csroff
pop ax pop ax
popf popf
ret VZ_RET
dispaskn: dispaskn:
mov al,dl mov al,dl
@ -289,7 +289,7 @@ disppole proc
mov dl,vsplit mov dl,vsplit
call locate call locate
call vlinec call vlinec
ret VZ_RET
disppole endp disppole endp
;**************************** ;****************************
@ -368,14 +368,14 @@ _endif
mov al,ATR_TXT mov al,ATR_TXT
call setatr call setatr
pop ds pop ds
ret VZ_RET
setatr_r: setatr_r:
mov al,[bp].atrstt1 mov al,[bp].atrstt1
tst al tst al
_ifn z _ifn z
call set_attr call set_attr
ret VZ_RET
_endif _endif
mov al,ATR_STT mov al,ATR_STT
tstb [bp].tchf tstb [bp].tchf
@ -387,7 +387,7 @@ _if z
mov al,ATR_STT2 mov al,ATR_STT2
_endif _endif
call setatr call setatr
ret VZ_RET
fillright proc fillright proc
_ifn cxz _ifn cxz
@ -395,7 +395,7 @@ _ifn cxz
call putspc call putspc
_loop _loop
_endif _endif
ret VZ_RET
fillright endp fillright endp
;--- Edit mode --- ;--- Edit mode ---
@ -444,7 +444,7 @@ _endif
mov bx,sp mov bx,sp
call printf call printf
add sp,4 add sp,4
ret VZ_RET
;--- Indicator bar --- ;--- Indicator bar ---
@ -511,7 +511,7 @@ _endif
mov dl,33 mov dl,33
call fillspc call fillspc
mov al,GRC_VL mov al,GRC_VL
ret VZ_RET
;--- System parameter --- ;--- System parameter ---
@ -572,7 +572,7 @@ sys_cp: push ax ; %
mov si,offset cgroup:pf_sysparm mov si,offset cgroup:pf_sysparm
call printf call printf
add sp,10 add sp,10
ret VZ_RET
dispstat endp dispstat endp
assume ds:nothing assume ds:nothing
@ -605,7 +605,7 @@ _if z
sub ax,1 sub ax,1
sbb dx,0 sbb dx,0
_endif _endif
tsize9: ret tsize9: VZ_RET
textsize endp textsize endp
;--- Get current ptr --- ;--- Get current ptr ---
@ -626,7 +626,7 @@ _if a
mov dx,cx mov dx,cx
mov ax,bx mov ax,bx
_endif _endif
ret VZ_RET
getcurptr endp getcurptr endp
gettcp proc gettcp proc
@ -640,7 +640,7 @@ _ifn z
mov ax,[bp].tnxt mov ax,[bp].tnxt
_endif _endif
_endif _endif
ret VZ_RET
gettcp endp gettcp endp
;--- Display text label --- ;--- Display text label ---
@ -659,7 +659,7 @@ _else
_endif _endif
_endif _endif
pop ax pop ax
ret VZ_RET
setatr_p endp setatr_p endp
displabel1 proc displabel1 proc
@ -667,7 +667,7 @@ displabel1 proc
call displabel call displabel
call putspc call putspc
call setatr_r call setatr_r
ret VZ_RET
displabel1 endp displabel1 endp
public displabel public displabel
@ -704,7 +704,7 @@ _endif
pop ds pop ds
mov dl,28 mov dl,28
call fillspc call fillspc
ret VZ_RET
displabel endp displabel endp
;--- Display Line header --- ;--- Display Line header ---
@ -761,7 +761,7 @@ _ifn z
pop si pop si
_endif _endif
pop dx pop dx
ret VZ_RET
disphead endp disphead endp
endcs endcs
@ -804,7 +804,7 @@ dispframe proc
call locate call locate
call vlinec call vlinec
popm <dx,cx> popm <dx,cx>
ret VZ_RET
dispframe endp dispframe endp
;--- Repeat put char --- ;--- Repeat put char ---
@ -821,7 +821,7 @@ _repeat
pop ax pop ax
_loop _loop
pop cx pop cx
ret VZ_RET
repputc endp repputc endp
assume ds:cgroup assume ds:cgroup
@ -838,7 +838,7 @@ dispprmpt proc
mov si,prompt mov si,prompt
call puts_t call puts_t
pop ds pop ds
ret VZ_RET
dispprmpt endp dispprmpt endp
;--- Display key mode --- ;--- Display key mode ---
@ -887,7 +887,7 @@ dspk2: clr ah
call abputc call abputc
_loop _loop
dspk8: pop ax dspk8: pop ax
dspk9: ret dspk9: VZ_RET
dispkeymode endp dispkeymode endp
;--- Display macro message --- ;--- Display macro message ---
@ -943,7 +943,7 @@ _ifn z
_endif _endif
call loadwloc call loadwloc
pop silent pop silent
macmsg9:ret macmsg9:VZ_RET
dispmacmsg endp dispmacmsg endp
;--- Put message --- ;--- Put message ---
@ -954,7 +954,7 @@ putmg proc
movseg ds,cs movseg ds,cs
call puts call puts
pop ds pop ds
ret VZ_RET
putmg endp putmg endp
endes endes

View File

@ -64,7 +64,7 @@ _pblk ends
extrn stopintnum :word extrn stopintnum :word
extrn stops :word extrn stops :word
extrn syssw :word extrn syssw :word
extrn texts :word ;extrn texts :word
extrn tmpbuf :word extrn tmpbuf :word
; extrn tmpbuf2 :word ; extrn tmpbuf2 :word
extrn parbuf :near ; ##156.96 extrn parbuf :near ; ##156.96
@ -90,7 +90,7 @@ _pblk ends
extrn xmem_close :near extrn xmem_close :near
extrn xmem_extend :near extrn xmem_extend :near
extrn tmp_close :near extrn tmp_close :near
extrn ems_free :near ; extrn ems_free :near
extrn ems_resetmap :near extrn ems_resetmap :near
extrn ems_restore :near extrn ems_restore :near
extrn ems_save :near extrn ems_save :near
@ -146,7 +146,7 @@ ENDIF
extrn cs_stack :near extrn cs_stack :near
extrn windgets1 :near extrn windgets1 :near
extrn dos_go :near ; extrn dos_go :near
;--- Local work --- ;--- Local work ---
@ -241,7 +241,7 @@ isfreeme proc
mov es,ax mov es,ax
tstw es:[mcb_psp] tstw es:[mcb_psp]
_ifn z _ifn z
ret VZ_RET
_endif _endif
pop ax pop ax
mov dx,loseg mov dx,loseg
@ -275,7 +275,7 @@ exec1:
call setfnckey call setfnckey
call setdosloc call setdosloc
mov si,xbuf mov si,xbuf
mov buflen,DOSLEN-2 mov buflen,VZ_DOSLEN-2
call dosgets call dosgets
mov flret,0 mov flret,0
jnc exec2 jnc exec2
@ -338,7 +338,7 @@ _endif
call resetint24 call resetint24
call swapout call swapout
; call resetgbank ; call resetgbank
jmp lo_exec jmp near ptr lo_exec
cs_exec: cs_exec:
pop bp pop bp
@ -507,7 +507,7 @@ isvz3: cmp al,'.'
ja isvz2 ja isvz2
isvz_o: clc isvz_o: clc
isvz8: popm <di,es> isvz8: popm <di,es>
ret VZ_RET
ENDIF ENDIF
intdos: intdos:
@ -725,7 +725,7 @@ dosget_i:
dosget1: dosget1:
mov flcmdp,0 ; ##153.43 mov flcmdp,0 ; ##153.43
mov cl,buflen mov cl,buflen
test dossw,DOS_RETURN test dossw,VZ_DOS_RETURN
_ifn z _ifn z
tstb flret tstb flret
_if z _if z
@ -774,7 +774,7 @@ dos_esc:
mov execcmd,0 mov execcmd,0
dosesc1:mov frompool,ah dosesc1:mov frompool,ah
stc stc
ret VZ_RET
IFNDEF NOFILER IFNDEF NOFILER
dos_filer: dos_filer:
mov pathp,0 mov pathp,0
@ -794,7 +794,7 @@ dosfl0:
tstb doslen ; by DOSBOX tstb doslen ; by DOSBOX
_ifn z _ifn z
doscr1: doscr1:
and dossw,not DOS_GO and dossw,not VZ_DOS_GO
clr cx clr cx
xchg cx,word ptr doslen xchg cx,word ptr doslen
jmps dos_cr jmps dos_cr
@ -874,7 +874,7 @@ dosget8:
;ENDIF ;ENDIF
popm <si,cx> popm <si,cx>
clc clc
ret VZ_RET
dosgets endp dosgets endp
;--- Skip command --- ; ##1.5 ;--- Skip command --- ; ##1.5
@ -893,7 +893,7 @@ _until be
mov flcmdp,si mov flcmdp,si
jmp skcmd1 jmp skcmd1
skcmd7: mov si,bx skcmd7: mov si,bx
skcmd8: ret skcmd8: VZ_RET
skipcmd endp skipcmd endp
ENDIF ENDIF
@ -920,7 +920,7 @@ _until
call strcpy call strcpy
mov al,LF mov al,LF
stosb stosb
ret VZ_RET
dosspread endp dosspread endp
ENDIF ENDIF
@ -963,7 +963,7 @@ _endif
; mov ax,cs ; mov ax,cs
; mov ss,ax ; mov ss,ax
; sti ; sti
ret VZ_RET
quit_tsr endp quit_tsr endp
endcs endcs
@ -986,7 +986,7 @@ _if e
; _endif ; _endif
_endif _endif
ENDIF ENDIF
ret VZ_RET
install_vz endp install_vz endp
endis ; endws endis ; endws
@ -1019,7 +1019,7 @@ ENDIF
stc stc
_endif _endif
pop ds pop ds
ret VZ_RET
remove_vz endp remove_vz endp
endis endis
@ -1047,7 +1047,7 @@ _ifn z
mov gends,ax mov gends,ax
pop es pop es
_endif _endif
ret VZ_RET
expandfar endp expandfar endp
;--- Init far area --- ;--- Init far area ---
@ -1086,10 +1086,10 @@ _if ae
_endif _endif
mov gends,bx mov gends,bx
clr ax clr ax
ret VZ_RET
inifar_x: inifar_x:
stc stc
ret VZ_RET
initfar endp initfar endp
;--- Allocate TPA --- ;--- Allocate TPA ---
@ -1145,9 +1145,9 @@ _until e
mov cs:tpafreep,bx mov cs:tpafreep,bx
alloc8: pop es alloc8: pop es
mov es:[bx],dx mov es:[bx],dx
alloc9: ret alloc9: VZ_RET
alloc_x:pop ax alloc_x:pop ax
ret VZ_RET
allocTPA endp allocTPA endp
endes endes
@ -1172,7 +1172,7 @@ _endif
jz chkmcb9 jz chkmcb9
cmp es:[mcb_psp],ax cmp es:[mcb_psp],ax
chkmcb9:pop es chkmcb9:pop es
ret VZ_RET
checkmcb endp checkmcb endp
;--- Free TPA --- ;--- Free TPA ---
@ -1188,7 +1188,7 @@ _ifn z
msdos F_FREE msdos F_FREE
_endif _endif
_endif _endif
ret VZ_RET
freeTPA endp freeTPA endp
;--- Get TPA top seg ptr --- ;--- Get TPA top seg ptr ---
@ -1207,7 +1207,7 @@ _if ae
_endif _endif
inc bx inc bx
inc bx inc bx
ret VZ_RET
TPAptr endp TPAptr endp
;--- Set/reset INT06h --- ;--- Set/reset INT06h ---
@ -1235,7 +1235,7 @@ setintstop proc
mov ax,offset cgroup:int06in mov ax,offset cgroup:int06in
call setint call setint
mov cs:stopf,FALSE mov cs:stopf,FALSE
ret VZ_RET
setintstop endp setintstop endp
public resetintstop public resetintstop
@ -1243,7 +1243,7 @@ resetintstop proc
mov bx,offset cgroup:vct06 mov bx,offset cgroup:vct06
mov di,cs:stopintnum mov di,cs:stopintnum
call resetint call resetint
ret VZ_RET
resetintstop endp resetintstop endp
endes endes
@ -1261,7 +1261,7 @@ setint21 proc
mov di,21h*4 mov di,21h*4
mov ax,offset cgroup:int21in mov ax,offset cgroup:int21in
call setint call setint
ret VZ_RET
setint21 endp setint21 endp
@ -1269,7 +1269,7 @@ resetint21 proc
mov bx,offset cgroup:vct21 mov bx,offset cgroup:vct21
mov di,21h*4 mov di,21h*4
call resetint1 call resetint1
ret VZ_RET
resetint21 endp resetint21 endp
;--- Set/reset INT vector --- ;--- Set/reset INT vector ---
@ -1305,7 +1305,7 @@ _endif
pop es pop es
pop ds pop ds
sti sti
ret VZ_RET
setint endp setint endp
public resetint,resetint1 public resetint,resetint1
@ -1330,7 +1330,7 @@ _ifn z
_endif _endif
pop ds pop ds
sti sti
ret VZ_RET
resetint endp resetint endp
IFDEF DEBUG21 IFDEF DEBUG21
@ -1345,4 +1345,3 @@ ENDIF
; End of 'dos.asm' ; End of 'dos.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -160,7 +160,7 @@ eopen1: mov ax,PAGEMAX
jmps eopen9 jmps eopen9
eopen_x: stc eopen_x: stc
eopen9: pop es eopen9: pop es
ret VZ_RET
ems_open endp ems_open endp
;----- Open XMS ----- ;----- Open XMS -----
@ -220,7 +220,7 @@ xopen1: mov dx,cx
jmps xopen9 jmps xopen9
xopen_x: stc xopen_x: stc
xopen9: pop es xopen9: pop es
ret VZ_RET
xms_open endp xms_open endp
endis endis
@ -248,7 +248,7 @@ xmem_close proc
mov dx,offset cgroup:tmppath mov dx,offset cgroup:tmppath
msdos F_DELETE msdos F_DELETE
_endif _endif
ret VZ_RET
xmem_close endp xmem_close endp
;----- Allocate EMS pages ----- ;----- Allocate EMS pages -----
@ -270,7 +270,7 @@ ems_alloc:
clr ch clr ch
call ems_alloc1 call ems_alloc1
popm <ds,si,cx> popm <ds,si,cx>
ealc9: ret ealc9: VZ_RET
ems_alloc1 proc ems_alloc1 proc
call ems_check call ems_check
@ -284,7 +284,7 @@ ems_alloc1 proc
clc clc
_endif _endif
_endif _endif
ret VZ_RET
ems_alloc1 endp ems_alloc1 endp
ems_salloc endp ems_salloc endp
@ -294,13 +294,13 @@ size2pc proc
_if z _if z
inc sp inc sp
inc sp inc sp
ret VZ_RET
_endif _endif
dec ax dec ax
rolm ax,2 rolm ax,2
and ax,3 and ax,3
inc ax inc ax
ret VZ_RET
size2pc endp size2pc endp
;----- Allocate XMEM pages ----- ;----- Allocate XMEM pages -----
@ -331,7 +331,7 @@ xmem_alloc proc
call bmp_alloc call bmp_alloc
_endif _endif
xmalc8: popm <ds,di,si,dx,cx,bx> xmalc8: popm <ds,di,si,dx,cx,bx>
ret VZ_RET
xmem_alloc endp xmem_alloc endp
;----- Free XMEM pages ----- ;----- Free XMEM pages -----
@ -352,7 +352,7 @@ xmem_free proc
_endif _endif
popm <ds,si,dx,cx,ax> popm <ds,si,dx,cx,ax>
_endif _endif
ret VZ_RET
xmem_free endp xmem_free endp
@ -373,7 +373,7 @@ ex_emsmap proc
call ems_map2 call ems_map2
_endif _endif
exmap9: mov retval,ax exmap9: mov retval,ax
ret VZ_RET
ex_emsmap endp ex_emsmap endp
endes endes
@ -391,7 +391,7 @@ ems_save proc
emm EM_SAVE emm EM_SAVE
_endif _endif
_endif _endif
ret VZ_RET
ems_save endp ems_save endp
ems_restore proc ems_restore proc
@ -402,7 +402,7 @@ ems_restore proc
emm EM_RESTORE emm EM_RESTORE
_endif _endif
_endif _endif
ret VZ_RET
ems_restore endp ems_restore endp
;----- Get handle ----- ;----- Get handle -----
@ -410,13 +410,13 @@ ems_restore endp
get_h_ems proc get_h_ems proc
mov dx,cs:h_ems mov dx,cs:h_ems
tst dx tst dx
ret VZ_RET
get_h_ems endp get_h_ems endp
get_h_tmp proc get_h_tmp proc
mov bx,cs:h_tmp mov bx,cs:h_tmp
tst bx tst bx
ret VZ_RET
get_h_tmp endp get_h_tmp endp
;----- Map EMS pages ----- ;----- Map EMS pages -----
@ -482,7 +482,7 @@ _loop
tst cx tst cx
popm <ds,di,cx,bx> popm <ds,di,cx,bx>
emap9: pop dx emap9: pop dx
ret VZ_RET
ems_map endp ems_map endp
;----- Reset EMS page map ----- ;----- Reset EMS page map -----
@ -496,7 +496,7 @@ ems_resetmap proc
clr ax clr ax
rep stosw rep stosw
popm <es,di,cx> popm <es,di,cx>
ret VZ_RET
ems_resetmap endp ems_resetmap endp
;----- Check EMS/XMS ----- ;----- Check EMS/XMS -----
@ -505,13 +505,13 @@ ems_resetmap endp
public ems_check public ems_check
ems_check proc ems_check proc
tstw cs:h_ems tstw cs:h_ems
ret VZ_RET
ems_check endp ems_check endp
public xms_check public xms_check
xms_check proc xms_check proc
tstw cs:h_xms tstw cs:h_xms
ret VZ_RET
xms_check endp xms_check endp
;----- Save map ----- ;----- Save map -----
@ -527,7 +527,7 @@ _repeat
mov [si+MAX_PAGE*2-2],ax mov [si+MAX_PAGE*2-2],ax
_loop _loop
popm <ds,si,cx,ax> popm <ds,si,cx,ax>
ret VZ_RET
ems_savemap endp ems_savemap endp
;----- Load map ----- ;----- Load map -----
@ -559,7 +559,7 @@ ems_loadmap proc
_until e _until e
_endif _endif
popm <ds,si,dx,bx,ax> popm <ds,si,dx,bx,ax>
ret VZ_RET
ems_loadmap endp ems_loadmap endp
endbs endbs
@ -630,7 +630,7 @@ _endif
_endif _endif
trunc8: call tmp_close trunc8: call tmp_close
pop ds pop ds
ret VZ_RET
xmem_trunc endp xmem_trunc endp
;------------------------------------------------ ;------------------------------------------------
@ -689,7 +689,7 @@ scanbmp:
mov ah,1 mov ah,1
_endif _endif
test al,ah test al,ah
scbmp9: ret scbmp9: VZ_RET
scanend: scanend:
tst di tst di
jnz scbmp9 jnz scbmp9
@ -698,7 +698,7 @@ scanend:
stc stc
bmaloc9: bmaloc9:
popm <di,dx,cx,bx> popm <di,dx,cx,bx>
ret VZ_RET
bmp_alloc endp bmp_alloc endp
;----- Truncate BMP ----- ;----- Truncate BMP -----
@ -738,7 +738,7 @@ _repeat
bmptr7: tst dx bmptr7: tst dx
_until z _until z
bmptr8: mov ax,dx bmptr8: mov ax,dx
bmptr9: ret bmptr9: VZ_RET
bmp_trunc endp bmp_trunc endp
endes endes
@ -786,7 +786,7 @@ _repeat
_loop _loop
pop cx pop cx
popm <bx,ax> popm <bx,ax>
ret VZ_RET
bmp_free endp bmp_free endp
;----- Unpack BMP handle ----- ;----- Unpack BMP handle -----
@ -802,7 +802,7 @@ bmp_unpack proc
and cx,3 and cx,3
inc cx inc cx
and ah,00000011b and ah,00000011b
ret VZ_RET
bmp_unpack endp bmp_unpack endp
endbs endbs
@ -838,7 +838,7 @@ init_bmp proc
mov ax,PAGEMAX mov ax,PAGEMAX
sub ax,dx sub ax,dx
mov [si].bm_max,ax mov [si].bm_max,ax
ret VZ_RET
initbmp1 proc initbmp1 proc
mov [si].bm_max,ax mov [si].bm_max,ax
@ -851,7 +851,7 @@ initbmp1 proc
add dx,ax add dx,ax
shrm ax,3 shrm ax,3
add bx,ax add bx,ax
ret VZ_RET
initbmp1 endp initbmp1 endp
init_bmp endp init_bmp endp
@ -885,7 +885,7 @@ ishandle proc
mov si,offset cgroup:r_tmp mov si,offset cgroup:r_tmp
ishdl8: pop ax ishdl8: pop ax
sub ax,[si].bm_base sub ax,[si].bm_base
ret VZ_RET
ishandle endp ishandle endp
;----- XMEM block read/write ----- ;----- XMEM block read/write -----
@ -974,7 +974,7 @@ xms_rw1:
mov es:[di+bx],dl mov es:[di+bx],dl
_endif _endif
xmemrw9: popm <es,ds,si,dx,cx,bx> xmemrw9: popm <es,ds,si,dx,cx,bx>
ret VZ_RET
xmem_read endp xmem_read endp
;----- TMPfile read/write ----- ;----- TMPfile read/write -----
@ -997,7 +997,7 @@ tmp_write proc
jmps tmp_rw jmps tmp_rw
tmpw_x: pop ax tmpw_x: pop ax
stc stc
ret VZ_RET
tmp_write endp tmp_write endp
tmp_read proc tmp_read proc
@ -1029,7 +1029,7 @@ tmp_rw:
_endif _endif
pop ds pop ds
tmpr9: tmpr9:
ret VZ_RET
tmp_read endp tmp_read endp
tmp_open proc tmp_open proc
@ -1040,7 +1040,7 @@ tmp_open proc
jc tmpop9 jc tmpop9
mov bx,ax mov bx,ax
_endif _endif
tmpop9: ret tmpop9: VZ_RET
tmp_open endp tmp_open endp
public tmp_close public tmp_close
@ -1050,7 +1050,7 @@ tmp_close proc
msdos F_CLOSE msdos F_CLOSE
mov cs:h_tmp,INVALID mov cs:h_tmp,INVALID
_endif _endif
ret VZ_RET
tmp_close endp tmp_close endp
endbs endbs

View File

@ -180,10 +180,10 @@ _endif
call readexpr call readexpr
jc setopt_x jc setopt_x
mov optptr,NULL mov optptr,NULL
ret VZ_RET
setopt_x: setopt_x:
stc stc
ret VZ_RET
setoption endp setoption endp
;----- Set open option ----- ;----- Set open option -----
@ -207,9 +207,9 @@ set_opnopt proc
_endif _endif
mov dl,OPE_SET mov dl,OPE_SET
call readexpr call readexpr
ret VZ_RET
setopop_x: stc setopop_x: stc
ret VZ_RET
set_opnopt endp set_opnopt endp
;--- Read expression --- ;--- Read expression ---
@ -457,7 +457,7 @@ _endif
clc clc
rexp9: mov sp,sp_save rexp9: mov sp,sp_save
pop di pop di
ret VZ_RET
readexpr endp readexpr endp
;--- Set option No. --- ;--- Set option No. ---
@ -489,7 +489,7 @@ _if z
neg cx neg cx
clc clc
_endif _endif
ret VZ_RET
setoptnum endp setoptnum endp
;--- Set option value --- ;--- Set option value ---
@ -638,7 +638,7 @@ IFNDEF NEWEXPR
clr cx clr cx
ENDIF ENDIF
stval9: popm <es,bx> stval9: popm <es,bx>
ret VZ_RET
;--- Operate --- ;--- Operate ---
;--> ;-->
@ -738,7 +738,7 @@ ELSE
ENDIF ENDIF
op_get: op_get:
op_nop: op_nop:
ret VZ_RET
op_push: op_push:
mov bx,macsp mov bx,macsp
dec bx dec bx
@ -751,46 +751,46 @@ op_pop:
inc bx inc bx
inc bx inc bx
oppop1: mov macsp,bx oppop1: mov macsp,bx
ret VZ_RET
op_inc: op_inc:
inc ax inc ax
ret VZ_RET
op_dec: op_dec:
dec ax dec ax
ret VZ_RET
op_com: op_com:
not ax not ax
ret VZ_RET
op_swap: op_swap:
xchg al,ah xchg al,ah
ret VZ_RET
IFDEF NEWEXPR IFDEF NEWEXPR
op_wptr: op_wptr:
movhl cx,VARPTR+WORDPTR,0 movhl cx,VARPTR+WORDPTR,0
add ax,dx add ax,dx
add ax,dx add ax,dx
ret VZ_RET
op_ptr: op_ptr:
movhl cx,VARPTR,0 movhl cx,VARPTR,0
ENDIF ENDIF
op_add: op_add:
add ax,dx add ax,dx
ret VZ_RET
op_sub: op_sub:
sub ax,dx sub ax,dx
ret VZ_RET
op_shl: op_shl:
mov cl,dl mov cl,dl
shl ax,cl shl ax,cl
ret VZ_RET
op_shr: op_shr:
mov cl,dl mov cl,dl
sar ax,cl sar ax,cl
ret VZ_RET
op_mul: op_mul:
imul dx imul dx
ret VZ_RET
op_div: op_div:
tst dx tst dx
_ifn z _ifn z
@ -798,12 +798,12 @@ _ifn z
cwd cwd
idiv cx idiv cx
_endif _endif
ret VZ_RET
op_mod: op_mod:
call op_div call op_div
op_equ: op_equ:
mov ax,dx mov ax,dx
ret VZ_RET
op_pushequ: op_pushequ:
call op_push call op_push
jmps op_equ jmps op_equ
@ -811,17 +811,17 @@ op_andc:
call tobool call tobool
op_and: op_and:
and ax,dx and ax,dx
ret VZ_RET
op_orc: op_orc:
call tobool call tobool
op_or: op_or:
or ax,dx or ax,dx
ret VZ_RET
op_xorc: op_xorc:
call tobool call tobool
op_xor: op_xor:
xor ax,dx xor ax,dx
ret VZ_RET
tobool: tobool:
tst ax tst ax
mov ax,FALSE mov ax,FALSE
@ -833,7 +833,7 @@ _endif
_ifn z _ifn z
inc dx inc dx
_endif _endif
ret VZ_RET
op_lt: op_lt:
jl op_set jl op_set
@ -854,13 +854,13 @@ op_ne:
jne op_set jne op_set
op_clr: op_clr:
mov ax,FALSE mov ax,FALSE
ret VZ_RET
op_not: op_not:
tst ax tst ax
jnz op_clr jnz op_clr
op_set: op_set:
mov ax,TRUE mov ax,TRUE
ret VZ_RET
setoptval endp setoptval endp
@ -933,7 +933,7 @@ _if z
_endif _endif
_endif _endif
popm <cx,bx> popm <cx,bx>
ret VZ_RET
public scan_chr,scan_str public scan_chr,scan_str
scan_chr: scan_chr:
@ -950,7 +950,7 @@ scan_str:
call strskip call strskip
scstr8: lodsb scstr8: lodsb
clc clc
ret VZ_RET
scannum endp scannum endp
;--- Scan decimal word --- ;--- Scan decimal word ---
@ -975,9 +975,9 @@ deciw1:
aad aad
mov dx,ax mov dx,ax
clc clc
ret VZ_RET
deciw_x:stc deciw_x:stc
ret VZ_RET
scandeciw endp scandeciw endp
;--- Scan decimal word or alpha --- ;--- Scan decimal word or alpha ---
@ -995,9 +995,9 @@ scandecial proc
xchg al,ah xchg al,ah
call deciw1 call deciw1
mov al,0 mov al,0
ret VZ_RET
scand9: clc scand9: clc
ret VZ_RET
scandecial endp scandecial endp
;--- Option in 'puts' --- ;--- Option in 'puts' ---
@ -1034,7 +1034,7 @@ _else
call putval call putval
_endif _endif
oputs8: pop ds oputs8: pop ds
oputs9: ret oputs9: VZ_RET
optputs endp optputs endp
@ -1057,7 +1057,7 @@ get_optkwd proc
add di,offset cgroup:tb_opt_b add di,offset cgroup:tb_opt_b
mov ax,es:[di] mov ax,es:[di]
popm <es,di,cx> popm <es,di,cx>
ret VZ_RET
get_optkwd endp get_optkwd endp
;----- Scan Long hexa ----- ;----- Scan Long hexa -----
@ -1093,7 +1093,7 @@ _until
sclh8: mov ax,bx sclh8: mov ax,bx
popm <cx,bx> popm <cx,bx>
dec si dec si
ret VZ_RET
scan_lhexa endp scan_lhexa endp
endes endes

View File

@ -390,7 +390,7 @@ int9in endp
ishireso proc ishireso proc
tstb hireso tstb hireso
ret VZ_RET
ishireso endp ishireso endp
;--- INT18h entry --- ;--- INT18h entry ---
@ -438,33 +438,33 @@ isrv1:
je set_stt je set_stt
cmp ah,4 ; AH=4 :Set ext function ptr cmp ah,4 ; AH=4 :Set ext function ptr
je set_ext je set_ext
ret VZ_RET
srvfunc: srvfunc:
pushm <bx,cx,dx,si,di,es> pushm <bx,cx,dx,si,di,es>
mov bx,offset opttbl mov bx,offset opttbl
call do_function call do_function
popm <es,di,si,dx,cx,bx> popm <es,di,si,dx,cx,bx>
ret VZ_RET
get_stt: get_stt:
mov al,status mov al,status
ret VZ_RET
set_stt: set_stt:
mov status,al mov status,al
ret VZ_RET
set_ext: set_ext:
xchg bx,vcthook.@off ; ES:BX :function ptr xchg bx,vcthook.@off ; ES:BX :function ptr
push vcthook.@seg push vcthook.@seg
mov vcthook.@seg,es mov vcthook.@seg,es
pop es pop es
ret VZ_RET
intsrvin endp intsrvin endp
dummy proc far dummy proc far
ret VZ_RET
dummy endp dummy endp
;--- Function --- ;--- Function ---
@ -532,7 +532,7 @@ func2: push ax
shl di,1 shl di,1
call cs:[di+offset funcjmptbl] call cs:[di+offset funcjmptbl]
pop ax pop ax
func9: ret func9: VZ_RET
do_function endp do_function endp
;--- Function jump table --- ;--- Function jump table ---
@ -562,7 +562,7 @@ scrnsize proc
mov di,ax mov di,ax
shl di,1 shl di,1
tstb es:dosfkey tstb es:dosfkey
ret VZ_RET
scrnsize endp scrnsize endp
;--- Clear graphic screen --- ;--- Clear graphic screen ---
@ -600,7 +600,7 @@ _ifn z
clr di clr di
mov es:[di],dx mov es:[di],dx
_endif _endif
ret VZ_RET
gclsplane: gclsplane:
mov es,ax mov es,ax
clr ax clr ax
@ -609,12 +609,12 @@ gclsplane:
rep stosw rep stosw
mov ax,es mov ax,es
add ax,0800h add ax,0800h
ret VZ_RET
do_grafcls endp do_grafcls endp
gvdraw0 proc gvdraw0 proc
outi 0A6h,0 outi 0A6h,0
ret VZ_RET
gvdraw0 endp gvdraw0 endp
;--- Clear text screen --- ;--- Clear text screen ---
@ -634,7 +634,7 @@ do_textcls proc
mov di,2000h mov di,2000h
pop ax pop ax
rep stosw rep stosw
ret VZ_RET
do_textcls endp do_textcls endp
;--- Save text screen --- ;--- Save text screen ---
@ -650,7 +650,7 @@ scrnsize30 proc
_if b _if b
mov ax,800h mov ax,800h
_endif _endif
ret VZ_RET
scrnsize30 endp scrnsize30 endp
do_textsave proc do_textsave proc
@ -678,7 +678,7 @@ _repeat
inc di inc di
_loop _loop
_endif _endif
ret VZ_RET
do_textsave endp do_textsave endp
;--- Swap text VRAM --- ;--- Swap text VRAM ---
@ -688,14 +688,14 @@ do_textswap proc
_if z _if z
clr dx clr dx
bios 0Eh bios 0Eh
ret VZ_RET
_endif _endif
call scrnsize30 call scrnsize30
cmp ax,800h cmp ax,800h
_if e _if e
mov dx,1000h mov dx,1000h
bios 0Eh bios 0Eh
ret VZ_RET
_endif _endif
shl ax,1 shl ax,1
mov bx,offset splittbl mov bx,offset splittbl
@ -713,7 +713,7 @@ _endif
mov bx,cs mov bx,cs
mov dx,2 mov dx,2
bios 0Fh bios 0Fh
ret VZ_RET
IF 0 IF 0
mov bx,offset splittbl mov bx,offset splittbl
mov [bx],ax mov [bx],ax
@ -730,7 +730,7 @@ IF 0
mov bx,cs mov bx,cs
mov dx,2 mov dx,2
bios 0Fh bios 0Fh
ret VZ_RET
ENDIF ENDIF
do_textswap endp do_textswap endp
@ -740,14 +740,14 @@ do_keylock proc
not locked not locked
mov ch,WAIT_LOCK mov ch,WAIT_LOCK
call beep call beep
ret VZ_RET
do_keylock endp do_keylock endp
;--- Reset CRTV interrupt --- ;--- Reset CRTV interrupt ---
do_resetcrtv proc do_resetcrtv proc
out 64h,al out 64h,al
ret VZ_RET
do_resetcrtv endp do_resetcrtv endp
;--- Reset CPU --- ;--- Reset CPU ---
@ -788,7 +788,7 @@ _ifn z
mov ah,41h mov ah,41h
_endif _endif
int 18h int 18h
ret VZ_RET
do_grafon endp do_grafon endp
;--- Analog/Digital mode --- ;--- Analog/Digital mode ---
@ -800,7 +800,7 @@ _if le
_endif _endif
and al,1 and al,1
out 6Ah,al out 6Ah,al
ret VZ_RET
do_analog endp do_analog endp
;--- Display blue back --- ;--- Display blue back ---
@ -844,7 +844,7 @@ _ifn z
_endif _endif
; out 6Ah,al ; out 6Ah,al
mov opttbl.analog,al mov opttbl.analog,al
ret VZ_RET
do_blueback endp do_blueback endp
;--- Click sound --- ;--- Click sound ---
@ -858,7 +858,7 @@ beep proc
loop $ loop $
outi 37h,7 outi 37h,7
popf popf
ret VZ_RET
beep endp beep endp
;--- Convert [GRPH]+[A] --- ;--- Convert [GRPH]+[A] ---
@ -883,7 +883,7 @@ cvtgr1: sub al,80h
xlat xlat
mov es:[di],al mov es:[di],al
pop bx pop bx
cvtgr9: ret cvtgr9: VZ_RET
do_cvtgrph endp do_cvtgrph endp
do_cvtgrph_hi proc do_cvtgrph_hi proc
@ -898,7 +898,7 @@ do_cvtgrph_hi proc
cvtgh1: and al,not K_GRPH cvtgh1: and al,not K_GRPH
or al,K_CTRL or al,K_CTRL
mov es:[di],al mov es:[di],al
cvtgh9: ret cvtgh9: VZ_RET
do_cvtgrph_hi endp do_cvtgrph_hi endp
;--- Display [CAPS],[¶Å] mode --- ;--- Display [CAPS],[¶Å] mode ---
@ -938,7 +938,7 @@ _else
_endif _endif
_endif _endif
call putcn call putcn
dspcap9:ret dspcap9:VZ_RET
do_keycaps endp do_keycaps endp
;--- Display [SHIFT]+[f¥n] --- ;--- Display [SHIFT]+[f¥n] ---
@ -966,7 +966,7 @@ _endif
call dspfkey5 call dspfkey5
call dspfkey5 call dspfkey5
dspfky8:pop ds dspfky8:pop ds
dspfky9:ret dspfky9:VZ_RET
dspfkey5: dspfkey5:
add di,6 add di,6
@ -980,7 +980,7 @@ _repeat
popm <si,cx> popm <si,cx>
add si,16 add si,16
_loop _loop
ret VZ_RET
dispfkey endp dispfkey endp
;--- Is f-key white ? --- ;--- Is f-key white ? ---
@ -994,7 +994,7 @@ _ifn z
and al,11100000b and al,11100000b
cmp al,11100000b cmp al,11100000b
_endif _endif
ret VZ_RET
is_white endp is_white endp
;--- Put char to VRAM --- ;--- Put char to VRAM ---
@ -1016,7 +1016,7 @@ kanj1: mov ah,al
normal: stosw normal: stosw
jcxz putcn9 jcxz putcn9
_loop _loop
putcn9: ret putcn9: VZ_RET
putcn endp putcn endp
assume ds:cgroup assume ds:cgroup
@ -1042,7 +1042,7 @@ _if ae
_endif _endif
_endif _endif
pop ax pop ax
sfunc9: ret sfunc9: VZ_RET
do_subfunction endp do_subfunction endp
;--- Snapshot --- ;--- Snapshot ---
@ -1062,7 +1062,7 @@ do_snapshot proc
mov ax,es mov ax,es
add ax,TVSIZE/16 add ax,TVSIZE/16
snap8: mov snapseg,ax snap8: mov snapseg,ax
ret VZ_RET
do_snapshot endp do_snapshot endp
do_snapnext proc do_snapnext proc
@ -1088,7 +1088,7 @@ _ifn e
sub ax,TVSIZE/16 sub ax,TVSIZE/16
_endif _endif
call dispsnap call dispsnap
ret VZ_RET
do_snapprev endp do_snapprev endp
dispsnap proc dispsnap proc
@ -1103,7 +1103,7 @@ snap1: push ds
mov cx,TVSIZE/4 mov cx,TVSIZE/4
rep movsw rep movsw
pop ds pop ds
ret VZ_RET
dispsnap endp dispsnap endp
;--- Startup --- ;--- Startup ---
@ -1249,7 +1249,7 @@ free_env proc
rep movsb rep movsb
mov es,envseg mov es,envseg
msdos F_FREE msdos F_FREE
ret VZ_RET
free_env endp free_env endp
;--- Read option --- ;--- Read option ---
@ -1267,7 +1267,7 @@ ropt1: lodsb
cmp al,SPC cmp al,SPC
jbe ropt1 jbe ropt1
ropt_x: stc ropt_x: stc
ropt9: ret ropt9: VZ_RET
ropt2: ropt2:
lodsb lodsb

File diff suppressed because it is too large Load Diff

View File

@ -156,7 +156,7 @@ _ifn e
mov dh,al mov dh,al
_endif _endif
call fill_vram call fill_vram
ret VZ_RET
;--- Move video ram --- ;--- Move video ram ---
@ -215,7 +215,7 @@ _endif
dec dh dec dh
_until z _until z
movvr9: popm <ds,ax> movvr9: popm <ds,ax>
ret VZ_RET
vramend_si: vramend_si:
mov cx,2000h mov cx,2000h
@ -283,7 +283,7 @@ _repeat
dec dh dec dh
_until z _until z
pop ax pop ax
ret VZ_RET
;--- Move code buffer --- ;--- Move code buffer ---
@ -312,7 +312,7 @@ _repeat
dec dh dec dh
_until z _until z
movcb9: popm <es,ds,ax> movcb9: popm <es,ds,ax>
ret VZ_RET
;--- Fill code buffer --- ;--- Fill code buffer ---
@ -334,7 +334,7 @@ _repeat
dec dh dec dh
_until z _until z
popm <es,ax> popm <es,ax>
ret VZ_RET
;--- Hardware scroll --- ;--- Hardware scroll ---
@ -437,7 +437,7 @@ _endif
mov bx,ax mov bx,ax
mov al,14 mov al,14
call outcrtc call outcrtc
ret VZ_RET
;--- Sub routine --- ;--- Sub routine ---
@ -460,7 +460,7 @@ outcrtc:
mov al,bl mov al,bl
out dx,al out dx,al
sti sti
ret VZ_RET
;--- Set parameter --- ;--- Set parameter ---
;<-- ;<--
@ -499,7 +499,7 @@ _endif
inc dh inc dh
inc dl inc dl
pop ax pop ax
ret VZ_RET
;--- Make video ram ptr --- ;--- Make video ram ptr ---
;--> CX ;--> CX
@ -523,7 +523,7 @@ _endif
add cx,vrhome add cx,vrhome
and cx,1FFFh and cx,1FFFh
pop ax pop ax
ret VZ_RET
;--- Make code buffer ptr --- ;--- Make code buffer ptr ---
;--> CX ;--> CX
@ -543,7 +543,7 @@ mkcbufp:
mov cx,ax mov cx,ax
shl bx,1 shl bx,1
pop ax pop ax
ret VZ_RET
;--- Flick Cursor --- ;--- Flick Cursor ---
@ -579,7 +579,7 @@ flcsr1:
and bx,1FFFh and bx,1FFFh
jmp flcsr1 jmp flcsr1
flcsr8: popm <es,cx,bx,ax> flcsr8: popm <es,cx,bx,ax>
ret VZ_RET
flickcsr endp flickcsr endp
fret dd 0 fret dd 0
@ -597,7 +597,7 @@ _if e
push fret.@seg push fret.@seg
push fret.@off push fret.@off
_endif _endif
ret VZ_RET
flickcsr1 endp flickcsr1 endp
;--- Startup --- ;--- Startup ---
@ -687,7 +687,7 @@ free_env proc
rep movsb rep movsb
mov es,envseg mov es,envseg
msdos F_FREE msdos F_FREE
ret VZ_RET
free_env endp free_env endp
;--- Replace display cursor proc. --- ;--- Replace display cursor proc. ---
@ -732,9 +732,9 @@ srch2: cmpsb
rep movsb rep movsb
sti sti
clc clc
ret VZ_RET
srch_x: stc srch_x: stc
ret VZ_RET
resetcsrproc: resetcsrproc:
mov di,es:csrprocp mov di,es:csrprocp
@ -749,7 +749,7 @@ _ifn z
rep movsb rep movsb
sti sti
_endif _endif
ret VZ_RET
;--- Messages --- ;--- Messages ---

View File

@ -159,7 +159,7 @@ gets_esc:
stc stc
gets8: gets8:
popm <ds,bp,si> popm <ds,bp,si>
ret VZ_RET
;--- Init gets --- ;--- Init gets ---
@ -202,7 +202,7 @@ igets5: call loadstr
igets6: call getwindow igets6: call getwindow
mov word ptr [bp].tw_px,dx mov word ptr [bp].tw_px,dx
mov word ptr [bp].tw_sx,cx mov word ptr [bp].tw_sx,cx
ret VZ_RET
;--- Scan history buffer --- ;--- Scan history buffer ---
@ -220,9 +220,9 @@ _repeat
stup1: call nextstr stup1: call nextstr
tstb [si] tstb [si]
_until z _until z
ret VZ_RET
stup2: call loadstr stup2: call loadstr
stup9: ret stup9: VZ_RET
histdwn: histdwn:
mov si,[bp].hbptr mov si,[bp].hbptr
@ -246,7 +246,7 @@ stdn2: call prestr
jc newstr jc newstr
call prestr call prestr
stdn3: call loadstr stdn3: call loadstr
stdn9: ret stdn9: VZ_RET
newstr: newstr:
mov [bp].hbptr,si mov [bp].hbptr,si
@ -254,7 +254,7 @@ newstr:
mov byte ptr [di],LF mov byte ptr [di],LF
mov [bp].bend,di mov [bp].bend,di
mov [bp].bword,0 mov [bp].bword,0
ret VZ_RET
curstr: curstr:
mov di,[bp].btop mov di,[bp].btop
@ -265,7 +265,7 @@ curstr:
dec di dec di
mov [di],al mov [di],al
mov [bp].bend,di mov [bp].bend,di
ret VZ_RET
; ;
loadstr: loadstr:
@ -295,7 +295,7 @@ _ifn z
_endif _endif
mov [bp].hbptr,si mov [bp].hbptr,si
mov [bp].bend,di mov [bp].bend,di
ret VZ_RET
nextstr: nextstr:
tstw [bp].bword tstw [bp].bword
@ -304,7 +304,7 @@ _repeat
lodsb lodsb
tst al tst al
_until z _until z
ret VZ_RET
nextword: nextword:
_repeat _repeat
lodsb lodsb
@ -318,7 +318,7 @@ _repeat
or al,[si] or al,[si]
_until z _until z
dec si dec si
ret VZ_RET
prestr: prestr:
cmp si,[bp].hbtop cmp si,[bp].hbtop
@ -331,7 +331,7 @@ _repeat
je prest_c je prest_c
tstb [si-1] tstb [si-1]
_until z _until z
ret VZ_RET
preword: preword:
_repeat _repeat
dec si dec si
@ -343,9 +343,9 @@ _repeat
cmp al,SPC cmp al,SPC
_until be _until be
clc clc
ret VZ_RET
prest_c:stc prest_c:stc
ret VZ_RET
; ;
skipword proc skipword proc
@ -369,7 +369,7 @@ _until be
ja skword8 ja skword8
clr al ; stz clr al ; stz
skword8:pop si skword8:pop si
skword9:ret skword9:VZ_RET
skipword endp skipword endp
; ;
@ -405,7 +405,7 @@ iscmp2: mov si,[bp].hbtop
_endif _endif
mov [bp].bword,di mov [bp].bword,di
_endif _endif
ret VZ_RET
histcmp: histcmp:
push si push si
@ -420,7 +420,7 @@ _repeat
cmpsb cmpsb
_while e _while e
pop si pop si
ret VZ_RET
gets endp gets endp
@ -495,7 +495,7 @@ _endif
rep movsb rep movsb
pop cx pop cx
dec cx dec cx
stst9: ret stst9: VZ_RET
stcut: stcut:
mov si,[bp].hbend mov si,[bp].hbend
@ -517,7 +517,7 @@ stct3: mov byte ptr [si],0
inc si inc si
mov di,si mov di,si
add di,cx add di,cx
ret VZ_RET
storestr endp storestr endp
@ -565,7 +565,7 @@ _ifn cxz
_endif _endif
add sp,type _getswk-bufwk_top add sp,type _getswk-bufwk_top
popm <ds,bp> popm <ds,bp>
ret VZ_RET
histcpy endp histcpy endp
endes endes

View File

@ -51,7 +51,7 @@ setint24 proc
mov ax,offset cgroup:int24in mov ax,offset cgroup:int24in
mov dx,cs mov dx,cs
call setint1 call setint1
ret VZ_RET
setint24 endp setint24 endp
public resetint24 public resetint24
@ -60,7 +60,7 @@ resetint24 proc
mov di,24h*4 mov di,24h*4
mov dx,cs mov dx,cs
call resetint1 call resetint1
ret VZ_RET
resetint24 endp resetint24 endp
;--- INT24h handler --- ;--- INT24h handler ---

View File

@ -18,12 +18,12 @@ PKEYCNT equ 6
ELSECNT equ 13 ELSECNT equ 13
HISTCNT equ 7 HISTCNT equ 7
DF_IF equ 2 VZ_DF_IF equ 2
DF_IFN equ 3 VZ_DF_IFN equ 3
DF_ELSE equ 4 VZ_DF_ELSE equ 4
DF_ENDIF equ 5 VZ_DF_ENDIF equ 5
DF_ELSEIF equ 6 VZ_DF_ELSEIF equ 6
DF_ELSEIFN equ 7 VZ_DF_ELSEIFN equ 7
;--- External symbols --- ;--- External symbols ---
@ -175,7 +175,7 @@ _endif
mov di,temptop mov di,temptop
call readclass call readclass
tstb errcnt tstb errcnt
ret VZ_RET
customize endp customize endp
;--- Syntax error --- ;--- Syntax error ---
@ -216,7 +216,7 @@ _repeat
_until _until
mov si,bx mov si,bx
opte8: call cputcrlf opte8: call cputcrlf
ret VZ_RET
synerr endp synerr endp
;--- Insert converted data --- ;--- Insert converted data ---
@ -246,7 +246,7 @@ _endif
pop cx pop cx
call memmove call memmove
popm <di,si,cx> popm <di,si,cx>
ret VZ_RET
insertcvt endp insertcvt endp
;--- Move customize area --- ;--- Move customize area ---
@ -281,7 +281,7 @@ _repeat
cmp bx,offset cgroup:custm_end - 2 ; ##155.70 cmp bx,offset cgroup:custm_end - 2 ; ##155.70
_while b _while b
pop bx pop bx
ret VZ_RET
movearea endp movearea endp
;--- Is next class ? --- ;--- Is next class ? ---
@ -298,7 +298,7 @@ _ifn z
pop si pop si
_endif _endif
_endif _endif
ret VZ_RET
nextclass1 endp nextclass1 endp
;--- Command key --- ;--- Command key ---
@ -340,7 +340,7 @@ pkey1:
mov [bx],ah mov [bx],ah
jmp ckey2 jmp ckey2
ckey_x: stc ckey_x: stc
ret VZ_RET
ckeymsg1: ckeymsg1:
mov al,dl mov al,dl
ckmsg1: stosb ckmsg1: stosb
@ -373,7 +373,7 @@ _until c
tbox_x: tbox_x:
fkey_x: pop di fkey_x: pop di
stc stc
ret VZ_RET
df_fnckey endp df_fnckey endp
;--- Text box --- ;--- Text box ---
@ -457,7 +457,7 @@ _until be
opt_x: opt_x:
hist_x: hist_x:
else_x: stc else_x: stc
ret VZ_RET
df_history endp df_history endp
public get_histsym public get_histsym
@ -474,10 +474,10 @@ get_histsym proc
shl bx,1 shl bx,1
add bx,offset cgroup:hist_top add bx,offset cgroup:hist_top
clc clc
ret VZ_RET
histsym_x: histsym_x:
stc stc
ret VZ_RET
get_histsym endp get_histsym endp
;--- Else --- ;--- Else ---
@ -576,7 +576,7 @@ _else
stkey3: mov es:[bx+1],al stkey3: mov es:[bx+1],al
_endif _endif
clc clc
stkey9: ret stkey9: VZ_RET
storekey endp storekey endp
;--- Macro key --- ;--- Macro key ---
@ -655,7 +655,7 @@ _ifn z
mac_x: mac_x:
pop di pop di
stc stc
ret VZ_RET
_endif _endif
_endif _endif
cmp si,enddefp cmp si,enddefp
@ -854,7 +854,7 @@ menu_x1:pop di
dec di dec di
dec di dec di
menu_x: stc menu_x: stc
ret VZ_RET
df_menu endp df_menu endp
;--- Alias --- ;--- Alias ---
@ -884,7 +884,7 @@ cpeol2: lodsb
jne cpeol1 jne cpeol1
clr al clr al
stosb stosb
ret VZ_RET
copytoeol endp copytoeol endp
;--- Skip space,tab --- ;--- Skip space,tab ---
@ -896,7 +896,7 @@ skpsp1: cmp al,SPC
ja skps9 ja skps9
cmp al,LF cmp al,LF
jne skpsp jne skpsp
skps9: ret skps9: VZ_RET
skpsp endp skpsp endp
;--- Skip to next line --- ;--- Skip to next line ---
@ -912,7 +912,7 @@ skipline proc
repne scasb repne scasb
mov si,di mov si,di
popm <es,di,cx> popm <es,di,cx>
ret VZ_RET
skipline endp skipline endp
;--- Scan connma & numerics --- ;--- Scan connma & numerics ---
@ -926,7 +926,7 @@ scannumc proc
_if e _if e
call skipline call skipline
stc stc
ret VZ_RET
_endif _endif
cmp al,',' cmp al,','
_if e _if e
@ -935,11 +935,11 @@ _if e
mov ax,dx mov ax,dx
dec si dec si
clc clc
ret VZ_RET
_endif _endif
dec si dec si
stc stc
ret VZ_RET
scannumc endp scannumc endp
;--- Scan string --- ;--- Scan string ---
@ -959,7 +959,7 @@ scanstr proc
cmp al,'"' cmp al,'"'
je scanstr1 je scanstr1
scstr_x:stc scstr_x:stc
ret VZ_RET
scans1: scans1:
stosb stosb
scanstr1: scanstr1:
@ -987,7 +987,7 @@ scans2: cmp al,'"'
jmp scanstr1 jmp scanstr1
scans8: clr al scans8: clr al
stosb stosb
ret VZ_RET
scancode: scancode:
mov al,'$' mov al,'$'
call scannum call scannum
@ -1126,7 +1126,7 @@ scank_o:
scank_x: scank_x:
stc stc
scank9: popm <di,dx,bx> scank9: popm <di,dx,bx>
ret VZ_RET
scankey endp scankey endp
;--- Check prefix key --- ;--- Check prefix key ---
@ -1147,7 +1147,7 @@ _if e
stc stc
_endif _endif
popm <es,di,cx> popm <es,di,cx>
ret VZ_RET
isprekey endp isprekey endp
;--- Scan follow key --- ;--- Scan follow key ---
@ -1173,11 +1173,11 @@ scanpkey proc
add al,ah add al,ah
clr ah clr ah
clc clc
ret VZ_RET
pkey_x: stc pkey_x: stc
ret VZ_RET
pkeyn: mov al,INVALID pkeyn: mov al,INVALID
ret VZ_RET
scanpkey endp scanpkey endp
;--- Re-customize --- ;--- Re-customize ---
@ -1205,7 +1205,7 @@ _endif
pushf pushf
call dspscr call dspscr
popf popf
ret VZ_RET
se_recust endp se_recust endp
public re_cust,re_cust1 public re_cust,re_cust1
@ -1235,7 +1235,7 @@ _ifn c
call set_readmac call set_readmac
clc clc
_endif _endif
ret VZ_RET
re_cust endp re_cust endp
;--- Check next class --- ;--- Check next class ---
@ -1271,7 +1271,7 @@ _endif
inc sp inc sp
inc sp inc sp
clc clc
nclas9: ret nclas9: VZ_RET
nextclass endp nextclass endp
;--- Copy to buffer --- ;--- Copy to buffer ---
@ -1319,13 +1319,13 @@ _endif
jc re_ovflow jc re_ovflow
mov storep,ax mov storep,ax
recust8:pop di recust8:pop di
recust9:ret recust9:VZ_RET
re_ovflow: re_ovflow:
popm <ax,ax,si,ax,ax,ax,ax> ; !!! popm <ax,ax,si,ax,ax,ax,ax> ; !!!
mov dl,E_NOBUFFER mov dl,E_NOBUFFER
stc stc
ret VZ_RET
recust endp recust endp
rec_alias proc rec_alias proc
@ -1340,9 +1340,9 @@ _endif
call memmove call memmove
dec ax dec ax
clc clc
ret VZ_RET
reals_x:stc reals_x:stc
ret VZ_RET
rec_alias endp rec_alias endp
;--- Read class symbol --- ;--- Read class symbol ---
@ -1390,7 +1390,7 @@ class2:
tstb inedit tstb inedit
jnz class0 jnz class0
stc stc
ret VZ_RET
class3: class3:
push bx push bx
call cs:[bx+1] call cs:[bx+1]
@ -1412,9 +1412,9 @@ _ifn z
mov dl,E_NOLINE mov dl,E_NOLINE
_endif _endif
stc stc
ret VZ_RET
class8: clc class8: clc
class9: ret class9: VZ_RET
readclass endp readclass endp
;----- Read Module Header ----- ;----- Read Module Header -----
@ -1485,7 +1485,7 @@ readh1: call skipline
_else _else
mov headerp,di mov headerp,di
_endif _endif
rmdlh9: ret rmdlh9: VZ_RET
read_mdlhead endp read_mdlhead endp
read_mdlopt proc read_mdlopt proc
@ -1509,7 +1509,7 @@ _repeat
_endif _endif
call skipchar call skipchar
_until _until
mdlopt9: ret mdlopt9: VZ_RET
read_mdlopt endp read_mdlopt endp
read_mdlttl proc read_mdlttl proc
@ -1543,7 +1543,7 @@ _until e
_endif _endif
rep movsb rep movsb
pop cx pop cx
ret VZ_RET
read_mdlttl endp read_mdlttl endp
endcs endcs
@ -1558,7 +1558,7 @@ set_mhttllen proc
mov al,[si].mn_wd mov al,[si].mn_wd
mov byte ptr mhttllen,al mov byte ptr mhttllen,al
_endif _endif
ret VZ_RET
set_mhttllen endp set_mhttllen endp
;----- #if .. #else .. #endif ----- ;----- #if .. #else .. #endif -----
@ -1570,7 +1570,7 @@ if_state proc
call if_state1 call if_state1
popm <di,dx,cx,bx> popm <di,dx,cx,bx>
_endif _endif
ret VZ_RET
if_state endp if_state endp
@ -1600,7 +1600,7 @@ cond_x2: inc sp
cond_x: pop si cond_x: pop si
pop ax pop ax
stc stc
ret VZ_RET
if_state1 endp if_state1 endp
tb_cond: tb_cond:
@ -1623,7 +1623,7 @@ condif8: mov ifbit,dx
pop ax pop ax
lodsb lodsb
clc clc
ret VZ_RET
cond_ifn: cond_ifn:
shl dx,1 shl dx,1
cond_elseifn: cond_elseifn:
@ -1645,7 +1645,7 @@ cond_comp:
movseg es,cs movseg es,cs
call strstr call strstr
movseg es,ss movseg es,ss
ret VZ_RET
cond_else: cond_else:
call skipline call skipline
@ -1680,4 +1680,3 @@ _until e
; End of 'inst.asm' ; End of 'inst.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -180,7 +180,7 @@ inifp8: mov fptype,cl
mov fpmode,al mov fpmode,al
popm <es,ds> popm <es,ds>
ENDIF ENDIF
ret VZ_RET
initfp endp initfp endp
;--- Check MS-KANJI API --- ; ##156.90 ;--- Check MS-KANJI API --- ; ##156.90
@ -203,7 +203,7 @@ _ifn c
movseg ds,cs movseg ds,cs
clc clc
_endif _endif
ret VZ_RET
ismskanji endp ismskanji endp
ENDIF ENDIF
@ -226,7 +226,7 @@ _if s
mov dx,dosktbl mov dx,dosktbl
call getkeytbl call getkeytbl
_endif _endif
ret VZ_RET
getdoskey endp getdoskey endp
public setdoskey public setdoskey
@ -238,7 +238,7 @@ setdoskey proc
mov dx,dosktbl mov dx,dosktbl
mov al,KEY_DOS mov al,KEY_DOS
call setkey call setkey
ret VZ_RET
setdoskey endp setdoskey endp
public setvzkey public setvzkey
@ -254,7 +254,7 @@ _ifn e
stc stc
_endif _endif
pop ds pop ds
ret VZ_RET
setvzkey endp setvzkey endp
;--- Control EZKEY --- ;--- Control EZKEY ---
@ -281,7 +281,7 @@ _if z
_endif _endif
pop es pop es
_endif _endif
ret VZ_RET
on_ezkey endp on_ezkey endp
vwx_call proc vwx_call proc
@ -459,7 +459,7 @@ gkey81:
pop bx pop bx
popm <ds,di,si,cx,bx> popm <ds,di,si,cx,bx>
tst al tst al
ret VZ_RET
getkey endp getkey endp
;----- Auto saver ----- ;----- Auto saver -----
@ -469,7 +469,7 @@ pre_delay proc
mov as_waitc,ax mov as_waitc,ax
call get_ringp call get_ringp
mov as_ringp,ax mov as_ringp,ax
ret VZ_RET
pre_delay endp pre_delay endp
check_delay proc check_delay proc
@ -498,7 +498,7 @@ check_delay proc
mov sp,gkey_sp mov sp,gkey_sp
jmp gkey0 jmp gkey0
_endif _endif
chkdly9: ret chkdly9: VZ_RET
check_delay endp check_delay endp
get_time proc get_time proc
@ -509,7 +509,7 @@ get_time proc
add al,dh add al,dh
adc ah,0 adc ah,0
popm <dx,cx> popm <dx,cx>
ret VZ_RET
get_time endp get_time endp
;----- Event key ----- ;----- Event key -----
@ -522,7 +522,7 @@ event_key proc
call do_evmac call do_evmac
_endif _endif
pop dx pop dx
ret VZ_RET
event_key endp event_key endp
;----- Scan Command ----- ;----- Scan Command -----
@ -542,7 +542,7 @@ scancmkey proc
add bx,offset cgroup:tb_scancmd add bx,offset cgroup:tb_scancmd
call cs:[bx] call cs:[bx]
pop bx pop bx
ret VZ_RET
scc_sedit: scc_sedit:
mov cx,CM_FILER - CM_ESC mov cx,CM_FILER - CM_ESC
@ -576,7 +576,7 @@ scfl7: call scankey
_if c _if c
scfl8: mov lastkey,ax scfl8: mov lastkey,ax
_endif _endif
scfl9: ret scfl9: VZ_RET
scc_getc: scc_getc:
mov cx,CM_FILER-CM_ESC mov cx,CM_FILER-CM_ESC
@ -613,10 +613,10 @@ _endif
inc di inc di
and di,not 1 and di,not 1
stc stc
ret VZ_RET
sckey_x: sckey_x:
clc clc
ret VZ_RET
scankey endp scankey endp
;--- Check STOP key --- ;--- Check STOP key ---
@ -632,7 +632,7 @@ _ifn z
msdos F_CONIO msdos F_CONIO
stc stc
_endif _endif
ret VZ_RET
chkstopkey endp chkstopkey endp
;--- Convert prefix key --- ;--- Convert prefix key ---
@ -668,16 +668,16 @@ _if c
clr ah ; stz clr ah ; stz
mov retval,ax mov retval,ax
mov ax,cx mov ax,cx
ret VZ_RET
_endif _endif
add dl,2 add dl,2
rorm dl,3 rorm dl,3
or al,dl or al,dl
clr ah clr ah
cvpf9: or dl,1 ; clz cvpf9: or dl,1 ; clz
ret VZ_RET
cvpf_x: stc cvpf_x: stc
ret VZ_RET
cvtpfix endp cvtpfix endp
;--- Get A,^A key --- ;--- Get A,^A key ---
@ -707,9 +707,9 @@ _endif
ja cvpf_x ja cvpf_x
and al,1Fh and al,1Fh
getal8: clc getal8: clc
ret VZ_RET
getal_x:stc getal_x:stc
ret VZ_RET
getalpha endp getalpha endp
;--- KANA to aplha --- ;--- KANA to aplha ---
@ -737,7 +737,7 @@ _if a
popm <di,cx> popm <di,cx>
_endif _endif
ENDIF ENDIF
ret VZ_RET
cvtkanakey endp cvtkanakey endp
;--- Store decimal word --- ;--- Store decimal word ---
@ -749,7 +749,7 @@ storedeciw proc
xchg al,ah xchg al,ah
add ax,3030h add ax,3030h
stosw stosw
ret VZ_RET
storedeciw endp storedeciw endp
;--- Display key symbol --- ;--- Display key symbol ---
@ -764,7 +764,7 @@ dispkeysym proc
pop si pop si
call puts call puts
popm <di,si,cx> popm <di,si,cx>
ret VZ_RET
dispkeysym endp dispkeysym endp
;--- Set key symbol --- ;--- Set key symbol ---
@ -792,7 +792,7 @@ _ifn e
cbw cbw
call setkeysym1 call setkeysym1
_endif _endif
ret VZ_RET
setkeysym1: setkeysym1:
cmp ax,0040h cmp ax,0040h
@ -810,7 +810,7 @@ setkeysym1:
stosb stosb
clr al clr al
stosb stosb
ret VZ_RET
setkeysym endp setkeysym endp
;--- Set prefix key symbol --- ;--- Set prefix key symbol ---
@ -877,7 +877,7 @@ dsppk7: tst dh
stosb stosb
dsppk8: clr al dsppk8: clr al
stosb stosb
ret VZ_RET
setpkeysym endp setpkeysym endp
;--- Get one char --- ;--- Get one char ---
@ -898,15 +898,15 @@ getc1: mov dl,SYS_GETC
cmp al,CM_ESC cmp al,CM_ESC
jne getc8 jne getc8
stc stc
ret VZ_RET
getc2: mov al,dl getc2: mov al,dl
call toupper call toupper
getc8: clc getc8: clc
ret VZ_RET
getc_x: getc_x:
mov ah,al mov ah,al
clr al clr al
ret VZ_RET
getc endp getc endp
;--- Check FEP --- ;--- Check FEP ---
@ -917,7 +917,7 @@ resetfp:
IFDEF US IFDEF US
checkfp: checkfp:
ctrlfp: ctrlfp:
ret VZ_RET
ELSE ELSE
mov ah,SYS_DOS mov ah,SYS_DOS
checkfp proc checkfp proc
@ -943,7 +943,7 @@ _else
_endif _endif
chkfp9: pop ax chkfp9: pop ax
mov sysmode0,ah mov sysmode0,ah
ret VZ_RET
checkfp endp checkfp endp
;--- Control FEP --- ;--- Control FEP ---
@ -976,7 +976,7 @@ _ifn z
_endif _endif
_endif _endif
popm <es,ds,dx,cx,bx> popm <es,ds,dx,cx,bx>
ret VZ_RET
ctrlfp endp ctrlfp endp
ENDIF ENDIF

View File

@ -104,7 +104,7 @@ ENDIF
vje_on: vje_on:
mov ah,1 mov ah,1
int INT_VJEB int INT_VJEB
ret VZ_RET
vje_off: vje_off:
mov ah,0 mov ah,0
int INT_VJEB int INT_VJEB
@ -114,12 +114,12 @@ vje_off:
pop ax pop ax
vje_act: vje_act:
vje_mask: vje_mask:
ret VZ_RET
mttk_on: mttk_on:
mov ah,0 mov ah,0
int INT_MTTK int INT_MTTK
ret VZ_RET
mttk_off: mttk_off:
push es push es
mov ah,21 mov ah,21
@ -132,7 +132,7 @@ mttk_off:
pop es pop es
mttk_act: mttk_act:
mttk_mask: mttk_mask:
ret VZ_RET
atok_on: atok_on:
tst al tst al
@ -141,7 +141,7 @@ _if z
_endif _endif
mov ah,al mov ah,al
int INT_ATOK int INT_ATOK
ret VZ_RET
atok_off: atok_off:
mov ah,66h mov ah,66h
int INT_ATOK int INT_ATOK
@ -151,12 +151,12 @@ atok_off:
pop ax pop ax
atok_act: atok_act:
atok_mask: atok_mask:
ret VZ_RET
wxp_on: ; ##155.78 wxp_on: ; ##155.78
mov ah,0 mov ah,0
int INT_WXP int INT_WXP
ret VZ_RET
wxp_off: wxp_off:
mov ah,4Ch mov ah,4Ch
int INT_WXP int INT_WXP
@ -166,7 +166,7 @@ wxp_off:
pop ax pop ax
wxp_act: wxp_act:
wxp_mask: wxp_mask:
ret VZ_RET
;--- Control ATOK7 by junk.35 --- ;--- Control ATOK7 by junk.35 ---
@ -184,21 +184,21 @@ _ifn z
_else _else
call atok7_force_off call atok7_force_off
_endif _endif
ret VZ_RET
atok7_off: atok7_off:
call init_a7 call init_a7
call atok7_getmode call atok7_getmode
call atok7_force_off call atok7_force_off
atok7_act: atok7_act:
atok7_mask: atok7_mask:
ret VZ_RET
atok7_getmode: atok7_getmode:
mov ax,3 mov ax,3
mov cs:packet,-1 mov cs:packet,-1
call atok7 call vz_atok7
mov ax,cs:packet mov ax,cs:packet
ret VZ_RET
atok7_change_mode: atok7_change_mode:
push ax push ax
@ -213,16 +213,17 @@ atok7_force_off:
push ax push ax
mov ax,2 mov ax,2
call_atok7: call_atok7:
call atok7 call vz_atok7
pop ax pop ax
ret VZ_RET
atok7: pushm <es,cs> vz_atok7:
pushm <es,cs>
pop es pop es
mov bx,offset cs:packet mov bx,offset cs:packet
call cs:call_a7 call cs:call_a7
pop es pop es
ret VZ_RET
init_a7: init_a7:
tstw cs:call_a7 tstw cs:call_a7
@ -234,7 +235,7 @@ _if z
mov word ptr cs:call_a7+2,es mov word ptr cs:call_a7+2,es
popm <bx,ax,es> popm <bx,ax,es>
_endif _endif
ret VZ_RET
ENDIF ENDIF
;--- MS-KANJI API --- ; ##156.90 ;--- MS-KANJI API --- ; ##156.90
@ -242,7 +243,7 @@ ENDIF
msk_on: msk_on:
mov ah,80h mov ah,80h
call mskanji call mskanji
ret VZ_RET
msk_off: msk_off:
mov ax,0 mov ax,0
@ -253,7 +254,7 @@ msk_off:
pop ax pop ax
msk_act: msk_act:
msk_mask: msk_mask:
ret VZ_RET
mskanji proc mskanji proc
push bp push bp
@ -268,7 +269,7 @@ mskanji proc
mov sp,bx mov sp,bx
pop bx pop bx
pop bp pop bp
ret VZ_RET
mskanji endp mskanji endp
endhs endhs
@ -310,7 +311,7 @@ _endif
mov tblsize,ax mov tblsize,ax
mov tblmode,dx mov tblmode,dx
mov fkeycnt,cl mov fkeycnt,cl
ret VZ_RET
initkeytbl endp initkeytbl endp
;--- Init VZ key table --- ;--- Init VZ key table ---
@ -335,7 +336,7 @@ _if e
mov dh,60h ; ctrl+ mov dh,60h ; ctrl+
call initfnckey call initfnckey
_endif _endif
ret VZ_RET
initvzkey endp initvzkey endp
initxkey proc initxkey proc
@ -355,7 +356,7 @@ _repeat
inc dl inc dl
_endif _endif
_loop _loop
ret VZ_RET
initxkey endp initxkey endp
initfnckey proc initfnckey proc
@ -399,7 +400,7 @@ _until e
_if e _if e
dec si dec si
_endif _endif
ret VZ_RET
initfnckey endp initfnckey endp
endis endis
@ -418,7 +419,7 @@ getkeytbl1:
mov ax,tblmode mov ax,tblmode
int 0DCh int 0DCh
pop ds pop ds
ret VZ_RET
getkeytbl endp getkeytbl endp
; public setkey ; public setkey
@ -450,7 +451,7 @@ _ifn e
call swapktbl call swapktbl
_endif _endif
popm <es,ds> popm <es,ds>
ret VZ_RET
setfnckey endp setfnckey endp
swapktbl proc swapktbl proc
@ -466,7 +467,7 @@ swapk1: mov ax,[di]
xchg [di+bx],ax xchg [di+bx],ax
stosw stosw
loop swapk1 loop swapk1
ret VZ_RET
swapktbl endp swapktbl endp
;--- Get keycode --- ;--- Get keycode ---
@ -556,7 +557,7 @@ _endif
gctrl1: gctrl1:
call cvtctrl call cvtctrl
gcode8: mov ah,TRUE gcode8: mov ah,TRUE
gcode9: ret gcode9: VZ_RET
getkeycode endp getkeycode endp
get_ringp proc get_ringp proc
@ -565,7 +566,7 @@ get_ringp proc
movseg es,ax movseg es,ax
mov ax,es:[ringp] mov ax,es:[ringp]
pop es pop es
ret VZ_RET
get_ringp endp get_ringp endp
;--- Convert ctrl code --- ;--- Convert ctrl code ---
@ -594,7 +595,7 @@ _endif
cmp al,XKEY_ESC cmp al,XKEY_ESC
jb cvtshift jb cvtshift
cvctr_x:stc cvctr_x:stc
ret VZ_RET
cvctr2: cvctr2:
cmp al,SCAN_CTR_F01 cmp al,SCAN_CTR_F01
_if ae _if ae
@ -652,7 +653,7 @@ cvctr7:
jz cvctr9 jz cvctr9
or al,00100000b or al,00100000b
cvctr9: clc cvctr9: clc
ret VZ_RET
cvtctrl endp cvtctrl endp
;--- Test Key bit --- ;--- Test Key bit ---
@ -673,7 +674,7 @@ testkey proc
shl al,cl shl al,cl
test es:[bx],al test es:[bx],al
pop es pop es
ret VZ_RET
testkey endp testkey endp
;--- Get [CTRL]/[ALT]+tenkey --- ;--- Get [CTRL]/[ALT]+tenkey ---
@ -708,7 +709,7 @@ tenk2: mov di,offset cgroup:tb_tenkey
jmps tenk9 jmps tenk9
tenk_x: stc tenk_x: stc
tenk9: popm <si,ax> tenk9: popm <si,ax>
ret VZ_RET
ctrltenkey endp ctrltenkey endp
;--- BIOS key function --- ;--- BIOS key function ---
@ -731,7 +732,7 @@ _while z
IFDEF CVTKANA IFDEF CVTKANA
call cvtkanakey call cvtkanakey
ENDIF ENDIF
ret VZ_RET
wait_key endp wait_key endp
public sense_key public sense_key
@ -740,7 +741,7 @@ sense_key proc
bios 01h bios 01h
tst bh tst bh
pop bx pop bx
ret VZ_RET
sense_key endp sense_key endp
public read_key public read_key
@ -749,7 +750,7 @@ read_key proc
bios 05h bios 05h
tst bh tst bh
pop bx pop bx
ret VZ_RET
read_key endp read_key endp
public flush_key public flush_key
@ -765,7 +766,7 @@ _repeat
bios 00h bios 00h
_until _until
popm <bx,ax> popm <bx,ax>
ret VZ_RET
flush_key endp flush_key endp
public shift_key public shift_key
@ -776,19 +777,19 @@ shift_key proc
mov al,es:[keysft] mov al,es:[keysft]
mov ah,al mov ah,al
pop es pop es
ret VZ_RET
shift_key endp shift_key endp
public beep_on public beep_on
beep_on proc beep_on proc
outi 37h,6 outi 37h,6
ret VZ_RET
beep_on endp beep_on endp
public beep_off public beep_off
beep_off proc beep_off proc
outi 37h,7 outi 37h,7
ret VZ_RET
beep_off endp beep_off endp
;**************************** ;****************************
@ -824,7 +825,7 @@ _endif
mov latch,al mov latch,al
mov trgc,0 mov trgc,0
pop ds pop ds
ret VZ_RET
sm_gettrgkey endp sm_gettrgkey endp
;--- Sense key --- ;--- Sense key ---
@ -869,7 +870,7 @@ sens4:
sens5: mov latch,ah sens5: mov latch,ah
sens8: mov trgc,al sens8: mov trgc,al
pop ds pop ds
ret VZ_RET
sm_sensekey endp sm_sensekey endp
assume ds:nothing assume ds:nothing
@ -907,9 +908,9 @@ chkk3: sub al,'0'
mov rolc,al mov rolc,al
call initrolc call initrolc
chkk0: clc chkk0: clc
ret VZ_RET
chkk9: stc chkk9: stc
ret VZ_RET
sm_chkkey endp sm_chkkey endp
;--- Check [SHIFT] key --- ;--- Check [SHIFT] key ---
@ -941,11 +942,11 @@ chks1:
call initrolc call initrolc
_endif _endif
clc clc
ret VZ_RET
sm_chksft endp sm_chksft endp
isDBCS proc ; ##156.132 isDBCS proc ; ##156.132
ret VZ_RET
isDBCS endp isDBCS endp
endhs endhs
@ -954,4 +955,3 @@ isDBCS endp
; End of 'key98.asm' ; End of 'key98.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -19,27 +19,27 @@ KEY_SHIFT equ 00000011b
KEY_CTRL equ 00000100b KEY_CTRL equ 00000100b
KEY_ALT equ 00001000b KEY_ALT equ 00001000b
@F equ 10000000b _AT_F equ 10000000b
S@F equ 10100000b S_AT_F equ 10100000b
C@F equ 11000000b C_AT_F equ 11000000b
A@F equ 11100000b A_AT_F equ 11100000b
@SFT equ 00100000b _AT_SFT equ 00100000b
@CTR equ 01000000b _AT_CTR equ 01000000b
@ALT equ 01100000b _AT_ALT equ 01100000b
@PGUP equ 10010000b _AT_PGUP equ 10010000b
@PGDN equ 10010001b _AT_PGDN equ 10010001b
@INS equ 10010010b _AT_INS equ 10010010b
@DEL equ 10010011b _AT_DEL equ 10010011b
@UP equ 10010100b _AT_UP equ 10010100b
@LEFT equ 10010101b _AT_LEFT equ 10010101b
@RIGHT equ 10010110b _AT_RIGHT equ 10010110b
@DOWN equ 10010111b _AT_DOWN equ 10010111b
@HOME equ 10011000b _AT_HOME equ 10011000b
@END equ 10011001b _AT_END equ 10011001b
@ESC equ 10011010b _AT_ESC equ 10011010b
@TAB equ 10011011b _AT_TAB equ 10011011b
@BS equ 10011100b _AT_BS equ 10011100b
@CR equ 10011101b _AT_CR equ 10011101b
IFDEF J31 IFDEF J31
INT_ATOK equ 6Fh INT_ATOK equ 6Fh
@ -97,32 +97,32 @@ tb_nkeycode db 1Bh,09h,08h,0Dh
tb_fkeyspc10 db 10,6,1,1,1,1,4,1,1,1,1,4 tb_fkeyspc10 db 10,6,1,1,1,1,4,1,1,1,1,4
tb_fkeyspc12 db 12,5,1,1,1,2,1,1,1,2,1,1,1,3 tb_fkeyspc12 db 12,5,1,1,1,2,1,1,1,2,1,1,1,3
tb_xkeycvt db @SFT+@TAB tb_xkeycvt db _AT_SFT+_AT_TAB
db "QWERTYUIOP[]",0,0,"AS" ; ##156.87 db "QWERTYUIOP[]",0,0,"AS" ; ##156.87
db "DFGHJKL",0,0,"@",0,"\ZXCV" ; ##156.87 db "DFGHJKL",0,0,"@",0,"\ZXCV" ; ##156.87
db "BNM",0,0,0,0,0,0,0,0,@F+1,@F+2,@F+3,@F+4,@F+5 db "BNM",0,0,0,0,0,0,0,0,_AT_F+1,_AT_F+2,_AT_F+3,_AT_F+4,_AT_F+5
db @F+6,@F+7,@F+8,@F+9,@F+10,0,0,@HOME db _AT_F+6,_AT_F+7,_AT_F+8,_AT_F+9,_AT_F+10,0,0,_AT_HOME
db @UP,@PGUP,0,@LEFT,0,@RIGHT,0,@END db _AT_UP,_AT_PGUP,0,_AT_LEFT,0,_AT_RIGHT,0,_AT_END
db @DOWN,@PGDN,@INS,@DEL,S@F+1,S@F+2,S@F+3,S@F+4 db _AT_DOWN,_AT_PGDN,_AT_INS,_AT_DEL,S_AT_F+1,S_AT_F+2,S_AT_F+3,S_AT_F+4
db S@F+5,S@F+6,S@F+7,S@F+8,S@F+9,S@F+10,C@F+1,C@F+2 db S_AT_F+5,S_AT_F+6,S_AT_F+7,S_AT_F+8,S_AT_F+9,S_AT_F+10,C_AT_F+1,C_AT_F+2
db C@F+3,C@F+4,C@F+5,C@F+6,C@F+7,C@F+8,C@F+9,C@F+10 db C_AT_F+3,C_AT_F+4,C_AT_F+5,C_AT_F+6,C_AT_F+7,C_AT_F+8,C_AT_F+9,C_AT_F+10
db A@F+1,A@F+2,A@F+3,A@F+4,A@F+5,A@F+6,A@F+7,A@F+8 db A_AT_F+1,A_AT_F+2,A_AT_F+3,A_AT_F+4,A_AT_F+5,A_AT_F+6,A_AT_F+7,A_AT_F+8
db A@F+9,A@F+10,0,@CTR+@LEFT,@CTR+@RIGHT,@CTR+@END db A_AT_F+9,A_AT_F+10,0,_AT_CTR+_AT_LEFT,_AT_CTR+_AT_RIGHT,_AT_CTR+_AT_END
IFDEF JBM IFDEF JBM
db @CTR+@PGDN,@CTR+@HOME,"1234567890-^",@CTR+@PGUP db _AT_CTR+_AT_PGDN,_AT_CTR+_AT_HOME,"1234567890-^",_AT_CTR+_AT_PGUP
ELSE ELSE
db @CTR+@PGDN,@CTR+@HOME,@F+1,@F+2,@F+3,@F+4,@F+5,@F+6 db _AT_CTR+_AT_PGDN,_AT_CTR+_AT_HOME,_AT_F+1,_AT_F+2,_AT_F+3,_AT_F+4,_AT_F+5,_AT_F+6
db @F+7,@F+8,@F+9,@F+10 db _AT_F+7,_AT_F+8,_AT_F+9,_AT_F+10
db @F+11,@F+12,@CTR+@PGUP,@F+11,@F+12,S@F+11 db _AT_F+11,_AT_F+12,_AT_CTR+_AT_PGUP,_AT_F+11,_AT_F+12,S_AT_F+11
db S@F+12,C@F+11,C@F+12,A@F+11,A@F+12 db S_AT_F+12,C_AT_F+11,C_AT_F+12,A_AT_F+11,A_AT_F+12
;---------------------------- ##156.87 ;---------------------------- ##156.87
db @CTR+@UP,0,0,0,@CTR+@DOWN,@CTR+@INS,@CTR+@DEL db _AT_CTR+_AT_UP,0,0,0,_AT_CTR+_AT_DOWN,_AT_CTR+_AT_INS,_AT_CTR+_AT_DEL
db @CTR+@TAB,0,0,@ALT+@HOME,@ALT+@UP,@ALT+@PGUP,0 db _AT_CTR+_AT_TAB,0,0,_AT_ALT+_AT_HOME,_AT_ALT+_AT_UP,_AT_ALT+_AT_PGUP,0
db @ALT+@LEFT,0,@ALT+@RIGHT,0,@ALT+@END,@ALT+@DOWN db _AT_ALT+_AT_LEFT,0,_AT_ALT+_AT_RIGHT,0,_AT_ALT+_AT_END,_AT_ALT+_AT_DOWN
db @ALT+@PGDN,@ALT+@INS,@ALT+@DEL,0,@ALT+@TAB db _AT_ALT+_AT_PGDN,_AT_ALT+_AT_INS,_AT_ALT+_AT_DEL,0,_AT_ALT+_AT_TAB
tb_xkeyscan dw 0300h,1C0Ah,1C00h,0E00Ah,0A600h,007Fh,0E7Fh,0E00h,0100h tb_xkeyscan dw 0300h,1C0Ah,1C00h,0E00Ah,0A600h,007Fh,0E7Fh,0E00h,0100h
tb_xkeycode db 0,@CTR+@CR,@ALT+@CR,@CTR+@CR,@ALT+@CR,@CTR+@BS,@CTR+@BS,@ALT+@BS,@ALT+@ESC tb_xkeycode db 0,_AT_CTR+_AT_CR,_AT_ALT+_AT_CR,_AT_CTR+_AT_CR,_AT_ALT+_AT_CR,_AT_CTR+_AT_BS,_AT_CTR+_AT_BS,_AT_ALT+_AT_BS,_AT_ALT+_AT_ESC
;---------------------------- ;----------------------------
ENDIF ENDIF
@ -188,7 +188,7 @@ _if z
_endif _endif
mov ah,al mov ah,al
int INT_ATOK int INT_ATOK
ret VZ_RET
atok_off: atok_off:
atok7_off: atok7_off:
mov ah,66h mov ah,66h
@ -197,21 +197,21 @@ atok7_off:
mov ah,0Bh mov ah,0Bh
int INT_ATOK int INT_ATOK
pop ax pop ax
ret VZ_RET
atok_act: atok_act:
mov ah,20h mov ah,20h
int INT_ATOK int INT_ATOK
ret VZ_RET
atok_mask: atok_mask:
mov ah,1Fh mov ah,1Fh
int INT_ATOK int INT_ATOK
ret VZ_RET
wxp_on: ; ##155.78 wxp_on: ; ##155.78
mov ah,0 mov ah,0
int INT_WXP int INT_WXP
ret VZ_RET
wxp_off: wxp_off:
mov ah,4Ch mov ah,4Ch
int INT_WXP int INT_WXP
@ -219,15 +219,15 @@ wxp_off:
mov ax,0 mov ax,0
int INT_WXP int INT_WXP
pop ax pop ax
ret VZ_RET
wxp_act: wxp_act:
mov ax,5300h mov ax,5300h
int INT_WXP int INT_WXP
ret VZ_RET
wxp_mask: wxp_mask:
mov ax,5301h mov ax,5301h
int INT_WXP int INT_WXP
ret VZ_RET
ENDIF ENDIF
;--- FEP control for DOS/V --- ;--- FEP control for DOS/V ---
@ -244,14 +244,14 @@ ias_on:
pop ax pop ax
mov dl,al mov dl,al
bios_k 13h,0 bios_k 13h,0
ret VZ_RET
ias_off: ias_off:
bios_k 13h,1 bios_k 13h,1
push dx push dx
and dl,01000000b ; ##157.152 and dl,01000000b ; ##157.152
bios_k 13h,0 bios_k 13h,0
pop ax pop ax
ret VZ_RET
ENDIF ENDIF
;--- FEP control for PS/55 --- ;--- FEP control for PS/55 ---
@ -270,7 +270,7 @@ _if z
_endif _endif
mov ah,al mov ah,al
int INT_ATOK int INT_ATOK
ret VZ_RET
atok_off: atok_off:
atok7_off: atok7_off:
mov ah,66h mov ah,66h
@ -279,15 +279,15 @@ atok7_off:
mov ah,0Bh mov ah,0Bh
int INT_ATOK int INT_ATOK
pop ax pop ax
ret VZ_RET
atok_act: atok_act:
mov ah,20h mov ah,20h
int INT_ATOK int INT_ATOK
ret VZ_RET
atok_mask: atok_mask:
mov ah,1Fh mov ah,1Fh
int INT_ATOK int INT_ATOK
ret VZ_RET
atok7_mask: atok7_mask:
mov ah,66h mov ah,66h
int INT_ATOK int INT_ATOK
@ -314,13 +314,13 @@ vje_mask:
fep_mask2: fep_mask2:
clr ax clr ax
mov cs:vct16.@seg,ax mov cs:vct16.@seg,ax
ret VZ_RET
;; VJEβは、call sense_key ; original int 16 に変更 ; call wait_key の ;; VJEβは、call sense_key ; original int 16 に変更 ; call wait_key の
;; 動作を行なうと正しく sense したコードが得られないので注意 ;; 動作を行なうと正しく sense したコードが得られないので注意
vje_on: vje_on:
mov ah,1 mov ah,1
int INT_VJEB int INT_VJEB
ret VZ_RET
vje_off: vje_off:
mov ah,0 mov ah,0
int INT_VJEB int INT_VJEB
@ -328,7 +328,7 @@ vje_off:
movhl ax,1,0 movhl ax,1,0
int INT_VJEB int INT_VJEB
pop ax pop ax
ret VZ_RET
ibm_mode: ibm_mode:
bios_k 02h bios_k 02h
@ -348,26 +348,26 @@ ibm_mode:
or al, 40h or al, 40h
_endif _endif
or al, 30h or al, 30h
ret VZ_RET
ibm_act: ibm_act:
mov al,cs:mask_act mov al,cs:mask_act
ibm_on: ibm_on:
or al, 30h or al, 30h
bios_k 05h bios_k 05h
ret VZ_RET
ibm_off: ibm_off:
call ibm_mode call ibm_mode
push ax push ax
mov al,30h mov al,30h
bios_k 05h bios_k 05h
pop ax pop ax
ret VZ_RET
ibm_mask: ibm_mask:
call ibm_mode call ibm_mode
mov cs:mask_act,al mov cs:mask_act,al
mov al,30h mov al,30h
bios_k 05h bios_k 05h
ret VZ_RET
ENDIF ENDIF
;--- MS-KANJI API --- ;--- MS-KANJI API ---
@ -375,7 +375,7 @@ ENDIF
msk_on: msk_on:
mov ah,80h mov ah,80h
call mskanji call mskanji
ret VZ_RET
msk_off: msk_off:
mov ax,0 mov ax,0
@ -384,7 +384,7 @@ msk_off:
mov ax,8001h mov ax,8001h
call mskanji call mskanji
pop ax pop ax
ret VZ_RET
mskanji proc mskanji proc
push bp push bp
@ -399,7 +399,7 @@ mskanji proc
mov sp,bx mov sp,bx
pop bx pop bx
pop bp pop bp
ret VZ_RET
mskanji endp mskanji endp
;--- Mask FEP for IBM --- ;--- Mask FEP for IBM ---
@ -458,7 +458,7 @@ ibmm1: clr di
mov es:[16h*4],ax mov es:[16h*4],ax
mov es:[16h*4+2],dx mov es:[16h*4+2],dx
sti sti
ibmm9: ret ibmm9: VZ_RET
ENDIF ENDIF
@ -481,14 +481,14 @@ setfnckey:
ENDIF ENDIF
initvzkey: initvzkey:
IFDEF IBM IFDEF IBM
ret VZ_RET
getkeytbl: getkeytbl:
extrn checkVM :near extrn checkVM :near
call is_dossilent call is_dossilent
jmp checkVM jmp checkVM
ELSE ELSE
getkeytbl: getkeytbl:
ret VZ_RET
ENDIF ENDIF
public initkeytbl public initkeytbl
@ -496,7 +496,7 @@ initkeytbl proc
clr ax clr ax
stosw stosw
stosw stosw
ret VZ_RET
initkeytbl endp initkeytbl endp
;--- Get keycode --- ;--- Get keycode ---
@ -646,14 +646,14 @@ gspec1:
jmps gcode8 jmps gcode8
IFDEF JBM IFDEF JBM
ctrl_bs: ctrl_bs:
mov al,@CTR+@BS mov al,_AT_CTR+_AT_BS
jmps gcode8 jmps gcode8
ENDIF ENDIF
gctrl1: gctrl1:
call cvtctrl call cvtctrl
gcode8: mov ah,TRUE gcode8: mov ah,TRUE
clc clc
gcode9: ret gcode9: VZ_RET
getkeycode endp getkeycode endp
IFDEF DOSV_BLINK IFDEF DOSV_BLINK
@ -669,7 +669,7 @@ _else
msdos F_CONIO msdos F_CONIO
_while z _while z
_endif _endif
ret VZ_RET
doswaitkey endp doswaitkey endp
ENDIF ENDIF
@ -679,7 +679,7 @@ get_ringp proc
movseg es,ax movseg es,ax
mov ax,es:[ringp] mov ax,es:[ringp]
pop es pop es
ret VZ_RET
get_ringp endp get_ringp endp
;--- Convert ctrl code --- ;--- Convert ctrl code ---
@ -703,7 +703,7 @@ IFDEF J31 ; ##151.10
_ifn z _ifn z
cmp dx,0E08h ; ##155.80 cmp dx,0E08h ; ##155.80
_if e _if e
mov al,@CTR+@BS mov al,_AT_CTR+_AT_BS
_endif _endif
jmps cvctr9 jmps cvctr9
_endif _endif
@ -714,10 +714,10 @@ ENDIF
add al,10011010b ; [ESC] add al,10011010b ; [ESC]
test ah,KEY_SHIFT test ah,KEY_SHIFT
_ifn z _ifn z
or al,@SFT or al,_AT_SFT
_endif _endif
cvctr9: clc cvctr9: clc
ret VZ_RET
cvtctrl endp cvtctrl endp
;--- Convert special key --- ;--- Convert special key ---
@ -744,15 +744,15 @@ ENDIF
stc stc
jz cvspc9 jz cvspc9
_if s _if s
test al,@ALT test al,_AT_ALT
_if z _if z
test ah,KEY_CTRL test ah,KEY_CTRL
_ifn z _ifn z
or al,@CTR or al,_AT_CTR
_else _else
test ah,KEY_SHIFT test ah,KEY_SHIFT
_ifn z _ifn z
or al,@SFT or al,_AT_SFT
_endif _endif
_endif _endif
_endif _endif
@ -760,70 +760,70 @@ _else
sub al,20h sub al,20h
_endif _endif
clc clc
cvspc9: ret cvspc9: VZ_RET
cvtspec endp cvtspec endp
IFDEF JBM IFDEF JBM
; @F11, @F12, S@F11, S@F12, C@F11, C@F12, @ALT+@UP, @ALT+@DOWN を判別 ; @F11, @F12, S@F11, S@F12, C@F11, C@F12, @ALT+@UP, @ALT+@DOWN を判別
cvtspec_func proc cvtspec_func proc
cmp al,S@F+1 cmp al,S_AT_F+1
_if z _if z
test ah,KEY_SHIFT test ah,KEY_SHIFT
_if z _if z
mov al,@F+11 mov al,_AT_F+11
_endif _endif
_endif _endif
cmp al,S@F+2 cmp al,S_AT_F+2
_if z _if z
test ah,KEY_SHIFT test ah,KEY_SHIFT
_if z _if z
mov al,@F+12 mov al,_AT_F+12
_endif _endif
_endif _endif
cmp al,C@F+1 cmp al,C_AT_F+1
_if z _if z
test ah,KEY_CTRL test ah,KEY_CTRL
_if z _if z
mov al,S@F+11 mov al,S_AT_F+11
_endif _endif
_endif _endif
cmp al,C@F+2 cmp al,C_AT_F+2
_if z _if z
test ah,KEY_CTRL test ah,KEY_CTRL
_if z _if z
mov al,S@F+12 mov al,S_AT_F+12
_endif _endif
_endif _endif
cmp al,A@F+1 cmp al,A_AT_F+1
_if z _if z
test ah,KEY_ALT test ah,KEY_ALT
_if z _if z
mov al,C@F+11 mov al,C_AT_F+11
_endif _endif
_endif _endif
cmp al,A@F+2 cmp al,A_AT_F+2
_if z _if z
test ah,KEY_ALT test ah,KEY_ALT
_if z _if z
mov al,C@F+12 mov al,C_AT_F+12
_endif _endif
_endif _endif
cmp al,@PGUP cmp al,_AT_PGUP
_if z _if z
test ah,KEY_ALT test ah,KEY_ALT
_ifn z _ifn z
mov al,@ALT+@UP mov al,_AT_ALT+_AT_UP
_endif _endif
_endif _endif
cmp al,@PGDN cmp al,_AT_PGDN
_if z _if z
test ah,KEY_ALT test ah,KEY_ALT
_ifn z _ifn z
mov al,@ALT+@DOWN mov al,_AT_ALT+_AT_DOWN
_endif _endif
_endif _endif
ret VZ_RET
cvtspec_func endp cvtspec_func endp
ELSE ELSE
@ -852,7 +852,7 @@ _if e
stc stc
_endif _endif
pop es pop es
ret VZ_RET
cvtspec2 endp cvtspec2 endp
ENDIF ENDIF
@ -880,7 +880,7 @@ _if e
_endif _endif
popf popf
_endif _endif
ret VZ_RET
bioskey endp bioskey endp
ENDIF ENDIF
@ -924,13 +924,13 @@ ENDIF
IFDEF CVTKANA IFDEF CVTKANA
call cvtkanakey call cvtkanakey
ENDIF ENDIF
ret VZ_RET
wait_key endp wait_key endp
public sense_key public sense_key
sense_key proc sense_key proc
bios_k2 01h bios_k2 01h
ret VZ_RET
sense_key endp sense_key endp
public read_key public read_key
@ -941,7 +941,7 @@ _ifn z
call waitkey1 call waitkey1
tst ax tst ax
_endif _endif
ret VZ_RET
read_key endp read_key endp
public flush_key public flush_key
@ -957,7 +957,7 @@ _repeat
bios_k2 00h bios_k2 00h
_until _until
pop ax pop ax
ret VZ_RET
flush_key endp flush_key endp
public shift_key public shift_key
@ -968,7 +968,7 @@ _ifn z
or al,KEY_SHIFT or al,KEY_SHIFT
_endif _endif
mov ah,al mov ah,al
ret VZ_RET
shift_key endp shift_key endp
public beep_on public beep_on
@ -976,7 +976,7 @@ beep_on proc
in al,61h in al,61h
or al,03h or al,03h
out 61h,al out 61h,al
ret VZ_RET
beep_on endp beep_on endp
public beep_off public beep_off
@ -984,7 +984,7 @@ beep_off proc
in al,61h in al,61h
and al,not 03h and al,not 03h
out 61h,al out 61h,al
ret VZ_RET
beep_off endp beep_off endp
;--- Check Function key --- ;--- Check Function key ---
@ -1012,7 +1012,7 @@ ENDIF
jnz chkfk1 jnz chkfk1
mov al,1 mov al,1
chkfk1: call dispfkey chkfk1: call dispfkey
chkfk9: ret chkfk9: VZ_RET
checkfkey endp checkfkey endp
;--- Display function key --- ;--- Display function key ---
@ -1060,7 +1060,7 @@ _endif
call dispfkey1 call dispfkey1
dspf8: pop ax dspf8: pop ax
popm <di,si,dx,cx,bx> popm <di,si,dx,cx,bx>
dspf9: ret dspf9: VZ_RET
; ;
dispfkey1: dispfkey1:
@ -1141,7 +1141,7 @@ _until z
IFDEF DOSV IFDEF DOSV
call vrefresh call vrefresh
ENDIF ENDIF
ret VZ_RET
putspces: putspces:
xchg dh,dl xchg dh,dl
@ -1150,7 +1150,7 @@ putspces:
call abputc1 call abputc1
_loop _loop
xchg dh,dl xchg dh,dl
ret VZ_RET
dispfkey endp dispfkey endp
@ -1158,7 +1158,7 @@ dispfkey endp
public sm_gettrgkey public sm_gettrgkey
sm_gettrgkey: sm_gettrgkey:
ret VZ_RET
assume ds:nothing assume ds:nothing
@ -1185,9 +1185,9 @@ chkk3: sub al,'0'
mov rolc,al mov rolc,al
call initrolc call initrolc
chkk0: clc chkk0: clc
ret VZ_RET
chkk9: stc chkk9: stc
ret VZ_RET
sm_chkkey endp sm_chkkey endp
;--- Check [SHIFT] key --- ;--- Check [SHIFT] key ---
@ -1219,7 +1219,7 @@ chks1:
call initrolc call initrolc
_endif _endif
clc clc
ret VZ_RET
sm_chksft endp sm_chksft endp
;--- Is DBCS mode? --- ;--- Is DBCS mode? ---
@ -1239,7 +1239,7 @@ _if z
_endif _endif
ENDIF ENDIF
ENDIF ENDIF
ret VZ_RET
isDBCS endp isDBCS endp
endhs endhs
@ -1248,4 +1248,3 @@ isDBCS endp
; End of 'keyIBM.asm' ; End of 'keyIBM.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -77,7 +77,7 @@ initcbuf proc
mov cmax,cx mov cmax,cx
sub cx,ax sub cx,ax
mov cbufsz,cx mov cbufsz,cx
ret VZ_RET
initcbuf endp initcbuf endp
endis endis
@ -121,7 +121,7 @@ _endif
pop ax pop ax
popm <es,ds> popm <es,ds>
le_nop: le_nop:
ret VZ_RET
lineedit endp lineedit endp
;--- Command table --- ;--- Command table ---
@ -178,7 +178,7 @@ chkd1:
test al,ah test al,ah
chkd8: chkd8:
popm <bx,ax> popm <bx,ax>
ret VZ_RET
isdelim endp isdelim endp
@ -232,7 +232,7 @@ wlvl8: tst dl
jz wlvl9 jz wlvl9
cmp dh,dl cmp dh,dl
wlvl9: mov dl,dh wlvl9: mov dl,dh
ret VZ_RET
wordlevel endp wordlevel endp
;--- Decriment si --- ;--- Decriment si ---
@ -256,7 +256,7 @@ decs3:
pop si pop si
and cx,1 and cx,1
sub si,cx sub si,cx
ret VZ_RET
decsi endp decsi endp
;--- Shift buffer --- ;--- Shift buffer ---
@ -281,7 +281,7 @@ sftbuf proc
dec di dec di
mov [bp].bend,di mov [bp].bend,di
clc clc
ret VZ_RET
shftr: shftr:
mov si,[bp].bend mov si,[bp].bend
mov di,si mov di,si
@ -295,7 +295,7 @@ shftr:
rep movsb rep movsb
cld cld
shft0: clc shft0: clc
ret VZ_RET
shft_x: shft_x:
tstb [bp].inbuf tstb [bp].inbuf
_ifn s _ifn s
@ -305,7 +305,7 @@ _ifn s
pop si pop si
_endif _endif
stc stc
ret VZ_RET
sftbuf endp sftbuf endp
;--- Store char to buffer --- ;--- Store char to buffer ---
@ -360,7 +360,7 @@ _endif
mov cend,di mov cend,di
popm <es,ds,di,si,ax> popm <es,ds,di,si,ax>
_endif _endif
ret VZ_RET
assume ds:cgroup assume ds:cgroup
cutold: cutold:
@ -384,7 +384,7 @@ _while a
mov di,cbuf mov di,cbuf
rep movsb rep movsb
popm <es,ds,si,dx,cx> popm <es,ds,si,dx,cx>
ret VZ_RET
storchr endp storchr endp
assume ds:nothing assume ds:nothing
@ -428,7 +428,7 @@ _endif
sttyp8: mov word ptr [bp].ctype,dx sttyp8: mov word ptr [bp].ctype,dx
mov [bp].ccode,ax mov [bp].ccode,ax
popm <si,ax> popm <si,ax>
ret VZ_RET
settype endp settype endp
;--- Char right --- ;--- Char right ---
@ -437,14 +437,14 @@ le_charr proc
cmp si,[bp].bend cmp si,[bp].bend
_if e _if e
inc ah inc ah
ret VZ_RET
_endif _endif
tstb [bp].ckanj tstb [bp].ckanj
_ifn z _ifn z
inc si inc si
_endif _endif
inc si inc si
ret VZ_RET
le_charr endp le_charr endp
;--- Char left --- ;--- Char left ---
@ -453,10 +453,10 @@ le_charl proc
cmp si,[bp].btop cmp si,[bp].btop
_ifn e _ifn e
dec si dec si
ret VZ_RET
_endif _endif
dec ah dec ah
ret VZ_RET
le_charl endp le_charl endp
;--- Word right --- ;--- Word right ---
@ -465,7 +465,7 @@ le_wordr proc
cmp si,[bp].bend cmp si,[bp].bend
_if e _if e
inc ah inc ah
ret VZ_RET
_endif _endif
clr dl clr dl
_repeat _repeat
@ -475,9 +475,9 @@ _repeat
ja wrdr8 ja wrdr8
cmp si,[bp].bend cmp si,[bp].bend
_until e _until e
ret VZ_RET
wrdr8: dec si wrdr8: dec si
ret VZ_RET
le_wordr endp le_wordr endp
;--- Word left --- ;--- Word left ---
@ -486,7 +486,7 @@ le_wordl proc
cmp si,[bp].btop cmp si,[bp].btop
_if e _if e
dec ah dec ah
ret VZ_RET
_endif _endif
clr dl clr dl
_repeat _repeat
@ -504,19 +504,19 @@ _until e
jmps wrdl9 jmps wrdl9
wrdl8: mov si,ax wrdl8: mov si,ax
wrdl9: clr ah wrdl9: clr ah
ret VZ_RET
le_wordl endp le_wordl endp
;--- Line top/end --- ;--- Line top/end ---
le_top proc le_top proc
mov si,[bp].btop mov si,[bp].btop
ret VZ_RET
le_top endp le_top endp
le_end proc le_end proc
mov si,[bp].bend mov si,[bp].bend
ret VZ_RET
le_end endp le_end endp
;--- Insert mode --- ;--- Insert mode ---
@ -535,7 +535,7 @@ set_insm:
_endif _endif
_endif _endif
mov insm,al mov insm,al
ret VZ_RET
le_insmode endp le_insmode endp
;--- Back char --- ;--- Back char ---
@ -556,10 +556,10 @@ bspc9: call storchr
call sftbuf call sftbuf
pop si pop si
clr ah clr ah
ret VZ_RET
bscr: bscr:
mov ah,2 mov ah,2
ret VZ_RET
le_bakchar endp le_bakchar endp
;--- Delete char --- ;--- Delete char ---
@ -578,7 +578,7 @@ delc8: mov bl,80h
jmp bspc9 jmp bspc9
delcr: mov ah,3 delcr: mov ah,3
ret VZ_RET
le_delchar endp le_delchar endp
;--- Back word --- ;--- Back word ---
@ -652,7 +652,7 @@ le_delend proc
mov ax,[bx] mov ax,[bx]
mov [si],ax mov [si],ax
dlin9: clr ah dlin9: clr ah
ret VZ_RET
le_delend endp le_delend endp
;--- Space-Tab --- ;--- Space-Tab ---
@ -668,7 +668,7 @@ _repeat
call outchr call outchr
pop cx pop cx
_loop _loop
ret VZ_RET
;--- Overwrite Tab --- ;--- Overwrite Tab ---
@ -676,7 +676,7 @@ ovwtab:
cmp si,[bp].bend cmp si,[bp].bend
_if ae _if ae
inc ah inc ah
ret VZ_RET
_endif _endif
mov cl,[bp].lx mov cl,[bp].lx
tstb [bp].ckanj tstb [bp].ckanj
@ -688,7 +688,7 @@ _endif
mov si,[bp].tfld mov si,[bp].tfld
call xtocp2 call xtocp2
clr ah clr ah
ret VZ_RET
;--- Output char --- ;--- Output char ---
@ -744,7 +744,7 @@ _endif
mov [si],dl mov [si],dl
inc si inc si
over9: clr ah over9: clr ah
ret VZ_RET
;----- Column Overwrite mode ----- ;----- Column Overwrite mode -----
@ -804,7 +804,7 @@ column_ovw proc
inc si inc si
_endif _endif
clr ah clr ah
ret VZ_RET
column_ovw endp column_ovw endp
;--- String copy --- ;--- String copy ---
@ -840,7 +840,7 @@ _repeat
mov dl,al mov dl,al
call outchr call outchr
_until _until
copy9: ret copy9: VZ_RET
le_copystr endp le_copystr endp
;--- Char undo --- ;--- Char undo ---
@ -883,7 +883,7 @@ _loop
jns undo9 jns undo9
mov si,bx mov si,bx
undo9: clr ah undo9: clr ah
ret VZ_RET
undocr: undocr:
pop ax pop ax
pop si pop si
@ -891,7 +891,7 @@ undocr:
rol ax,1 rol ax,1
add al,4 add al,4
mov ah,al ; if al=00 then ah=4, if al=80h then ah=5 mov ah,al ; if al=00 then ah=4, if al=80h then ah=5
ret VZ_RET
le_undo endp le_undo endp
;--- Word To upper/lower --- ;--- Word To upper/lower ---
@ -938,7 +938,7 @@ case6:
case9: case9:
pop si pop si
clr ah clr ah
ret VZ_RET
le_case endp le_case endp
;--- #? --- ;--- #? ---
@ -946,7 +946,7 @@ le_case endp
le_redraw proc le_redraw proc
call off_silent call off_silent
clr ah clr ah
ret VZ_RET
le_redraw endp le_redraw endp
endes endes

View File

@ -1,36 +0,0 @@
echo off
rem ------- Link VZ, other tools -------
rem usage: lk [vmap, etc.]
rem
rem %LNK% :linker name cap (t, ) ex. set lnk=t
if not "%1"=="" goto link_tool
set LNKFILE=@vz.lnk
set LNKCOM=vz%HARD%
goto start
:link_tool
set LNKFILE=%1
set LNKCOM=%1
:start
if "%LNK%"=="t" goto tlink
:mslink
link /m /noi %LNKFILE%,%LNKCOM%,%LNKCOM%;
exe2bin %LNKCOM%.exe %LNKCOM%.com
del %LNKCOM%.exe
goto done
:tlink
tlink /c /m /t %LNKFILE%,%LNKCOM%,%LNKCOM%;
if errorlevel 1 goto end
:done
if exist %LNKCOM%.sym del %LNKCOM%.sym
dir %LNKCOM%.com
:end
set LNKFILE=
set LNKCOM=


View File

@ -16,13 +16,13 @@ KEYMACID equ 'BK'
UNKMACID equ 'UN' UNKMACID equ 'UN'
PRINTPARM equ 16 PRINTPARM equ 16
MAC_GET equ 00000001b VZ_MAC_GET equ 00000001b
MAC_CHR equ 00000010b VZ_MAC_CHR equ 00000010b
MAC_STR equ 00000100b VZ_MAC_STR equ 00000100b
MAC_PAUSE equ 00001000b VZ_MAC_PAUSE equ 00001000b
MAC_MENU equ 00010000b VZ_MAC_MENU equ 00010000b
MAC_TBOX equ 00100000b VZ_MAC_TBOX equ 00100000b
MAC_SEDIT equ 10000000b VZ_MAC_SEDIT equ 10000000b
SKPSYMCNT equ 8 SKPSYMCNT equ 8
@ -128,7 +128,7 @@ _mget ends
extrn scantbl :near extrn scantbl :near
extrn dispmsg :near extrn dispmsg :near
extrn scan_flcmd :near extrn scan_flcmd :near
extrn flsyscall :near ; extrn flsyscall :near
extrn load_iniopt :near extrn load_iniopt :near
extrn reset_histp :near extrn reset_histp :near
extrn open_ext :near extrn open_ext :near
@ -385,7 +385,7 @@ _if e
mov ax,readmac mov ax,readmac
_endif _endif
mov startmac,al mov startmac,al
inimac9:ret inimac9:VZ_RET
initmacro endp initmacro endp
endis endis
@ -414,7 +414,7 @@ _until
schmac3: inc si ; skip length word schmac3: inc si ; skip length word
inc si inc si
pop ax pop ax
schmac9: ret schmac9: VZ_RET
schmacro endp schmacro endp
public schsysmenu public schsysmenu
@ -442,7 +442,7 @@ schmnu1: mov si,bx
popm <bx,ax> popm <bx,ax>
inc si inc si
inc si inc si
ret VZ_RET
schsysmenu endp schsysmenu endp
public schmdlmac public schmdlmac
@ -450,7 +450,7 @@ schmdlmac: mov si,runmhp
jmps schloc1 jmps schloc1
schlocal proc schlocal proc
mov si,[bx].mrootp mov si,[bx].mrootp
mov dh,not LOCALMAC mov dh,not byte ptr LOCALMAC
tst dl tst dl
jns schloc2 jns schloc2
schloc1: mov dh,0FFh schloc1: mov dh,0FFh
@ -468,8 +468,8 @@ _repeat
_until e _until e
inc si inc si
inc si inc si
ret VZ_RET
schloc3: and dl,not LOCALMAC schloc3: and dl,not byte ptr LOCALMAC
jmp schmacro jmp schmacro
schlocal endp schlocal endp
@ -493,7 +493,7 @@ _repeat
lodsw lodsw
add si,ax add si,ax
_until _until
ret VZ_RET
sch_last endp sch_last endp
;----- Search module ----- ;----- Search module -----
@ -514,7 +514,7 @@ _repeat
_break e _break e
mov si,[si].mh_nextmdl mov si,[si].mh_nextmdl
_until _until
schid9: ret schid9: VZ_RET
sch_module endp sch_module endp
zx_schmodule proc zx_schmodule proc
@ -528,7 +528,7 @@ zx_schmodule proc
pop ax pop ax
mov di,si mov di,si
call set_readmac call set_readmac
ret VZ_RET
zx_schmodule endp zx_schmodule endp
;----- Count module ----- ;----- Count module -----
@ -545,7 +545,7 @@ _repeat
dec cx dec cx
_until _until
not cx not cx
cntmdl9: ret cntmdl9: VZ_RET
cnt_module endp cnt_module endp
;----- Get module header ----- ;----- Get module header -----
@ -567,7 +567,7 @@ _ifn z
_until _until
_endif _endif
pop ax pop ax
ret VZ_RET
get_module endp get_module endp
;----- Is it macro key? ----- ;----- Is it macro key? -----
@ -578,7 +578,7 @@ get_module endp
ismacro proc ismacro proc
test extsw,ESW_MAC test extsw,ESW_MAC
_ifn z _ifn z
ret VZ_RET
_endif _endif
mov dx,ax mov dx,ax
mov si,macrobuf mov si,macrobuf
@ -668,7 +668,7 @@ _ifn z
pop dx pop dx
_endif _endif
clc clc
ret VZ_RET
ismac2: ismac2:
mov di,mputp mov di,mputp
@ -678,7 +678,7 @@ _if e
not al not al
mov dl,al mov dl,al
stc stc
ret VZ_RET
_endif _endif
tst di tst di
_ifn z _ifn z
@ -705,7 +705,7 @@ mac_on:
call csroff call csroff
_else _else
mov bx,mnestp mov bx,mnestp
cmp al,MAC_PAUSE cmp al,VZ_MAC_PAUSE
_if e _if e
dec [bx].mgetp dec [bx].mgetp
dec [bx].mgetp dec [bx].mgetp
@ -746,7 +746,7 @@ _endif
;_endif ;_endif
mov [bx].mgetp,si mov [bx].mgetp,si
ismac9: stc ismac9: stc
ret VZ_RET
ismacro endp ismacro endp
chkmacbuf: chkmacbuf:
@ -762,7 +762,7 @@ mac_putoff:
macoff: mov mputp,NULL macoff: mov mputp,NULL
_endif _endif
stc ; for postmacro stc ; for postmacro
ret VZ_RET
scan_gmac proc scan_gmac proc
_repeat _repeat
@ -770,7 +770,7 @@ _repeat
add di,3 add di,3
tstb [di] tstb [di]
_while s _while s
ret VZ_RET
scan_gmac endp scan_gmac endp
;--- Off macro --- ;--- Off macro ---
@ -791,7 +791,7 @@ _else
_endif _endif
stc stc
pop ds pop ds
ret VZ_RET
disperr endp disperr endp
;--- Do macro --- ;--- Do macro ---
@ -803,7 +803,7 @@ _ifn z
mov si,offset cgroup:kmg_ng mov si,offset cgroup:kmg_ng
call dispkeymode call dispkeymode
stc stc
ret VZ_RET
_endif _endif
tstw mputp tstw mputp
jnz mac_putoff jnz mac_putoff
@ -820,7 +820,7 @@ _endif
mov si,offset cgroup:kmg_mac mov si,offset cgroup:kmg_mac
call dispkeymode call dispkeymode
stc stc
ret VZ_RET
domacro endp domacro endp
;--- Post-macro --- ;--- Post-macro ---
@ -830,14 +830,14 @@ postmacro proc
mov ah,macmode mov ah,macmode
tst ah tst ah
jz post1 jz post1
cmp ah,MAC_PAUSE cmp ah,VZ_MAC_PAUSE
je post_pause je post_pause
cmp ah,MAC_CHR cmp ah,VZ_MAC_CHR
je to_macget je to_macget
cmp ah,MAC_STR cmp ah,VZ_MAC_STR
je post_str je post_str
post9: clc post9: clc
ret VZ_RET
post_str: post_str:
cmp al,CM_CR cmp al,CM_CR
@ -845,8 +845,8 @@ post_str:
cmp al,CM_ESC cmp al,CM_ESC
jne post9 jne post9
to_macget: to_macget:
mov macmode,MAC_GET mov macmode,VZ_MAC_GET
ret VZ_RET
post_pause: post_pause:
call to_macget call to_macget
@ -909,7 +909,7 @@ _ifn z
stosb stosb
_endif _endif
pop ax pop ax
ret VZ_RET
dataend endp dataend endp
public schcmdsym public schcmdsym
@ -925,7 +925,7 @@ _if e
sub al,cl sub al,cl
clc clc
_endif _endif
ret VZ_RET
schcmdsym endp schcmdsym endp
;--- Update kbd macro --- ;--- Update kbd macro ---
@ -1002,7 +1002,7 @@ _ifn z
_endif _endif
jmp mac_ok jmp mac_ok
_endif _endif
ret VZ_RET
addmacro endp addmacro endp
;--- Pre-macro --- ;--- Pre-macro ---
@ -1030,7 +1030,7 @@ _ifn z
mov si,offset cgroup:kmg_mac mov si,offset cgroup:kmg_mac
call dispkeymode call dispkeymode
_endif _endif
test macmode,MAC_GET test macmode,VZ_MAC_GET
_if z _if z
mov dl,startmac mov dl,startmac
tst dl tst dl
@ -1046,7 +1046,7 @@ _if z
_endif _endif
_endif _endif
clc clc
ret VZ_RET
_endif _endif
tstb stepf tstb stepf
_ifn z _ifn z
@ -1131,7 +1131,7 @@ prdata1:mov dx,ax
prdata2:clr al prdata2:clr al
mov [bx].mgetp,si mov [bx].mgetp,si
stc stc
ret VZ_RET
mac_chr: mac_chr:
call scan_chr1 call scan_chr1
jmp prdata2 jmp prdata2
@ -1183,7 +1183,7 @@ prstop1:clr ax
off_silent: off_silent:
mov ss:silent,0 mov ss:silent,0
prmac9: clc prmac9: clc
ret VZ_RET
prmac_pop: prmac_pop:
mov si,[bx].mgettop mov si,[bx].mgettop
@ -1265,7 +1265,7 @@ _ifn z
_endif _endif
clr al clr al
macmnu2: macmnu2:
mov macmode,MAC_MENU mov macmode,VZ_MAC_MENU
xchg bx,si xchg bx,si
push dx push dx
push sysmode push sysmode
@ -1297,7 +1297,7 @@ macmnu3:
call schmdlmac call schmdlmac
jmps maccal1 jmps maccal1
macmnu9:stc macmnu9:stc
ret VZ_RET
;--- Command (#nn,#a) --- ;--- Command (#nn,#a) ---
@ -1306,7 +1306,7 @@ mac_cmd:
jmpl c,prmac_err jmpl c,prmac_err
call set_mgetp call set_mgetp
stc stc
ret VZ_RET
;--- Variables (a) --- ;--- Variables (a) ---
@ -1335,7 +1335,7 @@ readexpr1 proc
call readexpr call readexpr
pop bx pop bx
lodsb lodsb
ret VZ_RET
readexpr1 endp readexpr1 endp
;--- Call macro (&nn,&a,&#) --- ;--- Call macro (&nn,&a,&#) ---
@ -1495,7 +1495,7 @@ scsym_str:
scsym4: pop dx scsym4: pop dx
jmp scsym2 jmp scsym2
scsym8: dec si scsym8: dec si
scsym9: ret scsym9: VZ_RET
;--- Label/jump (:A,>A,>nn) --- ;--- Label/jump (:A,>A,>nn) ---
@ -1577,7 +1577,7 @@ set_mgetp:
_if a _if a
mov [bx].mgetp,si mov [bx].mgetp,si
_endif _endif
ret VZ_RET
;----- On Key goto ----- ;----- On Key goto -----
@ -1653,7 +1653,7 @@ _if ae
mov al,',' mov al,','
jmp scansym1 jmp scansym1
_endif _endif
ret VZ_RET
tb_skipjmp: tb_skipjmp:
ofs scandeciw ofs scandeciw
@ -1682,12 +1682,12 @@ skp_blk:
scan_chr1: scan_chr1:
call scan_chr call scan_chr
dec si dec si
ret VZ_RET
scan_str1: scan_str1:
call scan_str call scan_str
dec si dec si
ret VZ_RET
gmacn0: call isupper ;; &S? gmacn0: call isupper ;; &S?
_ifn c _ifn c
@ -1716,7 +1716,7 @@ _endif
add dl,[di-3] add dl,[di-3]
clr al clr al
gmacn8: clc gmacn8: clc
gmacn9: ret gmacn9: VZ_RET
specialjmp: specialjmp:
cmp al,'>' cmp al,'>'
@ -1724,13 +1724,13 @@ specialjmp:
cmp al,'*' cmp al,'*'
je jmp_ref je jmp_ref
spjmp_x:clc spjmp_x:clc
ret VZ_RET
jmp_next: jmp_next:
mov si,[bx].mgettop mov si,[bx].mgettop
add si,[si-2] add si,[si-2]
add si,3 add si,3
stc stc
ret VZ_RET
jmp_ref: jmp_ref:
mov dx,readmac mov dx,readmac
@ -1745,7 +1745,7 @@ _else
add si,3 add si,3
_endif _endif
stc stc
ret VZ_RET
jmp_abort: jmp_abort:
mov si,eventvct mov si,eventvct
@ -1754,7 +1754,7 @@ _ifn z
inc si inc si
inc si inc si
stc stc
ret VZ_RET
_endif _endif
inc sp inc sp
inc sp inc sp
@ -1791,9 +1791,9 @@ _endif
pop bx pop bx
_endif _endif
scancm9:clc scancm9:clc
ret VZ_RET
sccmd_x:stc sccmd_x:stc
ret VZ_RET
scancmd endp scancmd endp
;--- Read parameter --- ;--- Read parameter ---
@ -1805,7 +1805,7 @@ readparm proc
call readexpr0 call readexpr0
jc parm_x4 jc parm_x4
clc clc
ret VZ_RET
parm_x4: parm_x4:
inc sp inc sp
inc sp inc sp
@ -1819,10 +1819,10 @@ readnext proc
cmp al,',' cmp al,','
jne parm_x jne parm_x
call readexpr0 call readexpr0
ret VZ_RET
parm_x: parm_x:
stc stc
ret VZ_RET
readnext endp readnext endp
;--- System macro --- ;--- System macro ---
@ -1835,12 +1835,12 @@ smac_quit:
stl [bx] stl [bx]
set_mnestp: set_mnestp:
mov mnestp,bx mov mnestp,bx
sbrk9: ret sbrk9: VZ_RET
smac_trace: smac_trace:
mov stepf,TRUE mov stepf,TRUE
smac_nop: smac_nop:
ret VZ_RET
smac_upper: smac_upper:
call readparm call readparm
@ -1853,7 +1853,7 @@ _endif
smac_silent: smac_silent:
mov silent,1 mov silent,1
ret VZ_RET
smac_redraw: smac_redraw:
call off_silent call off_silent
@ -1861,14 +1861,14 @@ smac_redraw:
_if z _if z
call redraw call redraw
_endif _endif
ret VZ_RET
smac_char: smac_char:
mov al,MAC_CHR mov al,VZ_MAC_CHR
jmps smac8 jmps smac8
smac_line: smac_line:
mov al,MAC_STR mov al,VZ_MAC_STR
jmps smac8 jmps smac8
smac_inkey: smac_inkey:
@ -1888,15 +1888,15 @@ _else
_endif _endif
set_retval: set_retval:
mov retval,ax mov retval,ax
ret VZ_RET
smac_pause: smac_pause:
mov al,MAC_PAUSE mov al,VZ_MAC_PAUSE
smac8: mov macmode,al smac8: mov macmode,al
inc sp inc sp
inc sp inc sp
clc clc
ret VZ_RET
public smac_output ;;; public smac_output ;;;
smac_output: smac_output:
@ -1910,7 +1910,7 @@ _endif
inc sp inc sp
inc sp inc sp
stc stc
ret VZ_RET
sx_sprintf: sx_sprintf:
call readparm call readparm
@ -1958,7 +1958,7 @@ _endif
pop bx pop bx
cmp ax,tmpbuf3 ;; cmp ax,tmpbuf3 ;;
je prntcall je prntcall
ret VZ_RET
prntcall: prntcall:
mov [bx].mgetp,si mov [bx].mgetp,si
@ -2000,7 +2000,7 @@ _else
_endif _endif
pop bx pop bx
push si push si
mov macmode,MAC_TBOX mov macmode,VZ_MAC_TBOX
push sysmode push sysmode
call windgetval call windgetval
pop sysmode pop sysmode
@ -2008,7 +2008,7 @@ _endif
call to_macget call to_macget
mov retval,dx mov retval,dx
pop bx pop bx
ret VZ_RET
smac_beep: smac_beep:
test word ptr syssw,SW_BEEP test word ptr syssw,SW_BEEP
@ -2016,7 +2016,7 @@ smac_beep:
call beep_on call beep_on
call smac_wait call smac_wait
call beep_off call beep_off
ret VZ_RET
smac_wait: smac_wait:
call readparm call readparm
@ -2027,7 +2027,7 @@ _ifn z
call waitcrtv call waitcrtv
_loop _loop
_endif _endif
ret VZ_RET
smac_rnd: smac_rnd:
mov ax,seed mov ax,seed
@ -2112,7 +2112,7 @@ _if e
call editloc call editloc
popm <ds,si,bx> popm <ds,si,bx>
_endif _endif
ret VZ_RET
smac_getdeci: smac_getdeci:
clr al clr al
@ -2153,7 +2153,7 @@ smaccall:
mov [bx].mgettop,si mov [bx].mgettop,si
mov [bx].mgetp,si mov [bx].mgetp,si
call set_mnestp call set_mnestp
ret VZ_RET
smac_err1: smac_err1:
jmp smac_err jmp smac_err
@ -2172,7 +2172,7 @@ _ifn c
_endif _endif
mov retval,cx mov retval,cx
pop si ; ##156.144 pop si ; ##156.144
ret VZ_RET
smac_video proc smac_video proc
call readparm call readparm
@ -2183,7 +2183,7 @@ _else
mov al,insm mov al,insm
call csron call csron
_endif _endif
ret VZ_RET
smac_video endp smac_video endp
smac_fep proc ; ##156.110 smac_fep proc ; ##156.110
@ -2198,7 +2198,7 @@ _ifn z
_endif _endif
call ctrlfp call ctrlfp
mov fpmode,al mov fpmode,al
ret VZ_RET
smac_fep endp smac_fep endp
;----- &z() macro loader ----- ;----- &z() macro loader -----
@ -2243,7 +2243,7 @@ smac_macload proc
movseg ds,ss movseg ds,ss
mov retval,dx mov retval,dx
popm <bp,si,bx> popm <bp,si,bx>
ret VZ_RET
smac_macload endp smac_macload endp
retry_recust proc retry_recust proc
@ -2264,7 +2264,7 @@ _repeat
_ifn c _ifn c
call re_cust1 call re_cust1
jc retry_recust jc retry_recust
ret VZ_RET
_endif _endif
_endif _endif
mov si,ss:[si].mh_nextmdl mov si,ss:[si].mh_nextmdl
@ -2272,7 +2272,7 @@ _repeat
_until z _until z
retry_x: stc retry_x: stc
mov dl,E_NOBUFFER mov dl,E_NOBUFFER
ret VZ_RET
retry_recust endp retry_recust endp
;----- String operations ----- ;----- String operations -----
@ -2305,7 +2305,7 @@ strcpy1: tst cx
_endif _endif
call strncpy call strncpy
mov ss:retval,di mov ss:retval,di
ret VZ_RET
sx_strcpy endp sx_strcpy endp
sx_strcat proc sx_strcat proc
@ -2322,7 +2322,7 @@ stcmp1: mov ax,0
inc ax inc ax
_endif _endif
strret1: mov ss:retval,ax strret1: mov ss:retval,ax
ret VZ_RET
sx_strcmp endp sx_strcmp endp
sx_stricmp proc sx_stricmp proc
@ -2387,7 +2387,7 @@ sx_histcpy proc
clr cx clr cx
pop ax pop ax
call histcpy1 call histcpy1
ret VZ_RET
sx_histcpy endp sx_histcpy endp
sx_getenv proc sx_getenv proc
@ -2401,7 +2401,7 @@ sx_getenv proc
call strcpy1 call strcpy1
_endif _endif
movseg ds,ss movseg ds,ss
ret VZ_RET
sx_getenv endp sx_getenv endp
sx_parsepath proc sx_parsepath proc
@ -2411,7 +2411,7 @@ sx_parsepath proc
mov [di+2],bx mov [di+2],bx
mov [di+4],cx mov [di+4],cx
mov [di+8],si mov [di+8],si
ret VZ_RET
sx_parsepath endp sx_parsepath endp
jx_iskanji proc jx_iskanji proc
@ -2425,7 +2425,7 @@ jx_cvtkana proc
call cvtkanakey call cvtkanakey
_endif _endif
mov retval,ax mov retval,ax
ret VZ_RET
jx_cvtkana endp jx_cvtkana endp
;----- Long int operations ----- ;----- Long int operations -----
@ -2434,21 +2434,21 @@ lx_mov proc
xchg si,di xchg si,di
movsw movsw
movsw movsw
ret VZ_RET
lx_mov endp lx_mov endp
lx_addl proc lx_addl proc
ldl [di] ldl [di]
add [si],ax add [si],ax
adc [si+2],dx adc [si+2],dx
ret VZ_RET
lx_addl endp lx_addl endp
lx_subl proc lx_subl proc
ldl [di] ldl [di]
sub [si],ax sub [si],ax
sbb [si+2],dx sbb [si+2],dx
ret VZ_RET
lx_subl endp lx_subl endp
lx_cmpl proc lx_cmpl proc
@ -2463,17 +2463,17 @@ lx_cmpl proc
_endif _endif
_endif _endif
mov retval,ax mov retval,ax
ret VZ_RET
lx_cmpl endp lx_cmpl endp
lx_addlw proc lx_addlw proc
addlw [si],dx addlw [si],dx
ret VZ_RET
lx_addlw endp lx_addlw endp
lx_sublw proc lx_sublw proc
sublw [si],dx sublw [si],dx
ret VZ_RET
lx_sublw endp lx_sublw endp
lx_mullw proc lx_mullw proc
@ -2486,7 +2486,7 @@ lx_mullw proc
popm <dx,ax> popm <dx,ax>
add dx,cx add dx,cx
stl [si] stl [si]
ret VZ_RET
lx_mullw endp lx_mullw endp
lx_divlw proc lx_divlw proc
@ -2495,7 +2495,7 @@ lx_divlw proc
mov retval,dx mov retval,dx
clr dx clr dx
stl [si] stl [si]
ret VZ_RET
lx_divlw endp lx_divlw endp
;----- Misc. functions ----- ;----- Misc. functions -----
@ -2508,9 +2508,9 @@ emac_sedit proc
inc sp inc sp
inc sp inc sp
clc clc
ret VZ_RET
_endif _endif
ret VZ_RET
emac_sedit endp emac_sedit endp
;----- Insert macro ----- ;----- Insert macro -----
@ -2573,7 +2573,7 @@ ins_macro proc
call init_maclink call init_maclink
pop ax pop ax
clc clc
insmac_x: ret insmac_x: VZ_RET
ins_macro endp ins_macro endp
;----- Set store ptr ----- ;----- Set store ptr -----
@ -2597,7 +2597,7 @@ set_storep proc
; dec si ; dec si
; mov macendp,si ; mov macendp,si
; mov bx,di ; mov bx,di
; ret ; VZ_RET
_endif _endif
_endif _endif
clr dl clr dl
@ -2667,7 +2667,7 @@ _until
mov di,bx mov di,bx
_endif _endif
_endif _endif
ret VZ_RET
set_storep endp set_storep endp
;---- Set readmac ----- ;---- Set readmac -----
@ -2688,7 +2688,7 @@ _repeat
jz stread9 jz stread9
_loop _loop
mov readmac,di mov readmac,di
stread9: ret stread9: VZ_RET
set_readmac endp set_readmac endp
;----- Delete macro ----- ;----- Delete macro -----
@ -2738,7 +2738,7 @@ del_macro proc
call init_maclink call init_maclink
clc clc
delmac9: popm <es,ds> delmac9: popm <es,ds>
ret VZ_RET
del_macro endp del_macro endp
zx_delmacro proc zx_delmacro proc
@ -2759,7 +2759,7 @@ _until a
skip1 skip1
onrun_x: stc onrun_x: stc
pop bx pop bx
ret VZ_RET
onrun endp onrun endp
public isrun public isrun
@ -2775,7 +2775,7 @@ _repeat
_until a _until a
clc clc
isrun9: pop bx isrun9: pop bx
ret VZ_RET
isrun endp isrun endp
;--- Print keyboard macro --- ;--- Print keyboard macro ---
@ -2798,7 +2798,7 @@ wmac2: lods ss:dummyw
_until _until
pop si pop si
call scrout_cp call scrout_cp
ret VZ_RET
wmac3: wmac3:
pushm <ax,si> pushm <ax,si>
mov di,[bp].tnow mov di,[bp].tnow
@ -2934,7 +2934,7 @@ _until
sub ax,si sub ax,si
mov macrosz,ax mov macrosz,ax
popm <es,ds> popm <es,ds>
ret VZ_RET
init_maclink endp init_maclink endp
;----- Init Event macro ----- ;----- Init Event macro -----
@ -2964,7 +2964,7 @@ initevmac proc
dec si dec si
dec si dec si
_endif _endif
ret VZ_RET
initevmac endp initevmac endp
;----- Do Event macro ----- ;----- Do Event macro -----
@ -3001,7 +3001,7 @@ do_evmac proc
skip2 skip2
doevmac8: clr ax doevmac8: clr ax
popm <ds,si,dx,cx> popm <ds,si,dx,cx>
ret VZ_RET
do_evmac endp do_evmac endp
;----- Do Event macro ----- ;----- Do Event macro -----
@ -3024,7 +3024,7 @@ run_evmac proc
_endif _endif
mov mnestbase,0 mov mnestbase,0
pop ds pop ds
ret VZ_RET
run_evmac endp run_evmac endp
endes endes
@ -3034,4 +3034,3 @@ run_evmac endp
; End of 'macro.asm' ; End of 'macro.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -22,7 +22,6 @@ refp macro label
endm endm
;--- External symbols --- ;--- External symbols ---
extrn cmdsymtbl :byte extrn cmdsymtbl :byte
extrn scrnparm :byte extrn scrnparm :byte
extrn flparm :byte extrn flparm :byte
@ -140,7 +139,7 @@ refp macro label
extrn write_logtbl :near extrn write_logtbl :near
extrn set_insm :near extrn set_insm :near
extrn init_maclink :near extrn init_maclink :near
extrn init_module :near ; extrn init_module :near
extrn set_opnopt :near extrn set_opnopt :near
extrn set_blktgt :near extrn set_blktgt :near
extrn check_vwx :near extrn check_vwx :near
@ -204,7 +203,11 @@ entry: jmps entry1
vzversion: db "VZ1.60 ",0,EOF vzversion: db "VZ1.60 ",0,EOF
entry1: jmp init entry1: jmp init
dw 0 dw 0
IFDEF WASM
nm_vz db <'VZ',0,0,0,0,0,0,0>
ELSE
GDATA nm_vz, db, <'VZ',0,0,0,0,0,0,0> GDATA nm_vz, db, <'VZ',0,0,0,0,0,0,0>
ENDIF
GDATA hardware, db, 0 GDATA hardware, db, 0
org 120h org 120h
@ -352,7 +355,6 @@ GDATA breakf, db, -1 ; break flag ;##155.83, ##156.129
GDATA dossw, db, 0 ; dos command switch ##16 GDATA dossw, db, 0 ; dos command switch ##16
GDATA doslen, dw, 0 ; dos command box len ##16 GDATA doslen, dw, 0 ; dos command box len ##16
GDATA tmppath, db, <TMPPATHSZ dup(?)> ; temporary path GDATA tmppath, db, <TMPPATHSZ dup(?)> ; temporary path
endws endws
dseg dseg
@ -420,9 +422,14 @@ GDATA tmpbuf3, dw, WD*2 ; DTA,smooth,&?()
GDATA pathbuf, dw, PATHSZ GDATA pathbuf, dw, PATHSZ
GDATA pathbuf2, dw, PATHSZ GDATA pathbuf2, dw, PATHSZ
IFNDEF NOFILER IFNDEF NOFILER
IFDEF WASM
flwork dw <type _filer> ; 1st filer work
flwork2 dw <type _filer> ; 2nd filer work
ELSE
GDATA flwork, dw, <type _filer> ; 1st filer work GDATA flwork, dw, <type _filer> ; 1st filer work
GDATA flwork2, dw, <type _filer> ; 2nd filer work GDATA flwork2, dw, <type _filer> ; 2nd filer work
ENDIF ENDIF
ENDIF
GDATA inioptbuf,dw, INIOPTSZ1+INIOPTSZ2+INIOPTSZ3 GDATA inioptbuf,dw, INIOPTSZ1+INIOPTSZ2+INIOPTSZ3
GDATA save_end, label, word GDATA save_end, label, word
GDATA schstr, dw, STRSZ ; search buffer GDATA schstr, dw, STRSZ ; search buffer
@ -681,7 +688,7 @@ _ifn z
jmp icst5 jmp icst5
_endif _endif
call readopt call readopt
ret VZ_RET
config endp config endp
;--- Read DEF file --- ;--- Read DEF file ---
@ -692,7 +699,7 @@ readdef proc
cmp byte ptr [si],SPC cmp byte ptr [si],SPC
_if be _if be
clr si clr si
ret VZ_RET
_endif _endif
call adddefpath call adddefpath
lodsb lodsb
@ -739,7 +746,7 @@ rdef_x:
clc clc
_endif _endif
pop si pop si
ret VZ_RET
readdef endp readdef endp
;--- Read option --- ;--- Read option ---
@ -760,7 +767,7 @@ ropt1: lodsb
je ropt4 je ropt4
dec si dec si
mov pathp,si mov pathp,si
ropt9: ret ropt9: VZ_RET
ropt2: ropt2:
lodsb lodsb
push dx push dx
@ -793,7 +800,7 @@ _if c
push si push si
mov ds,ax mov ds,ax
call parsepath call parsepath
test dl,PRS_ROOT test dl,VZ_PRS_ROOT
_if z _if z
call getcurdir1 call getcurdir1
call addsep call addsep
@ -818,7 +825,7 @@ inscvt:
inc di inc di
mov tempend,di mov tempend,di
call insertcvt call insertcvt
ret VZ_RET
getcompath endp getcompath endp
;--- Get DEFfile path --- ;--- Get DEFfile path ---
@ -835,7 +842,7 @@ _if c
call parsepath call parsepath
pop si pop si
_endif _endif
test dl,PRS_ROOT test dl,VZ_PRS_ROOT
_ifn z _ifn z
mov cx,bx mov cx,bx
sub cx,si sub cx,si
@ -850,7 +857,7 @@ _endif
mov si,bx mov si,bx
inc di inc di
mov bx,di mov bx,di
test dl,PRS_NAME test dl,VZ_PRS_NAME
_ifn z _ifn z
call strcpy call strcpy
_else _else
@ -889,7 +896,7 @@ _endif
movseg es,cs movseg es,cs
call strcpy call strcpy
pop es pop es
ret VZ_RET
gettmppath endp gettmppath endp
;--- Get FILES.$$$ path --- ;--- Get FILES.$$$ path ---
@ -908,7 +915,7 @@ get_refpath proc
call addsep call addsep
mov si,offset cgroup:nm_files mov si,offset cgroup:nm_files
call strcpy call strcpy
ret VZ_RET
get_refpath endp get_refpath endp
;--- Init work --- ;--- Init work ---
@ -1001,7 +1008,7 @@ _endif
mov ss_stack,cx mov ss_stack,cx
sub cx,di sub cx,di
call memclear call memclear
ret VZ_RET
initwork endp initwork endp
initsize proc initsize proc
@ -1022,7 +1029,7 @@ _else
shl ax,cl shl ax,cl
_endif _endif
mov frees,ax mov frees,ax
ret VZ_RET
initsize endp initsize endp
;--- Init far work --- ;--- Init far work ---
@ -1086,7 +1093,7 @@ ENDIF
mov cx,farbss_clr mov cx,farbss_clr
call memclear call memclear
pop es pop es
ret VZ_RET
initfarwork endp initfarwork endp
put_exmsmsg proc put_exmsmsg proc
@ -1099,7 +1106,7 @@ put_exmsmsg proc
movseg ds,ss movseg ds,ss
movseg es,ss movseg es,ss
call cputmg call cputmg
ret VZ_RET
put_exmsmsg endp put_exmsmsg endp
;--- Allocate far memory --- ;--- Allocate far memory ---
@ -1119,7 +1126,7 @@ _if c
mov nears,cx mov nears,cx
mov usefar,TRUE mov usefar,TRUE
_endif _endif
ret VZ_RET
allocfar endp allocfar endp
;--- Set size ptr --- ;--- Set size ptr ---
@ -1131,7 +1138,7 @@ _repeat
add ax,dx add ax,dx
call chkmem call chkmem
_loop _loop
ret VZ_RET
setsizep endp setsizep endp
; ;
; ;
@ -1182,7 +1189,7 @@ _loop
mov es,ax mov es,ax
msdos F_FREE msdos F_FREE
pop es pop es
ret VZ_RET
free_env endp free_env endp
;--- Set root env seg --- ;--- Set root env seg ---
@ -1204,7 +1211,7 @@ _if z
_endif _endif
mov envseg,ax mov envseg,ax
pop es pop es
ret VZ_RET
getrootenvs endp getrootenvs endp
endis ; endis ;
@ -1268,7 +1275,7 @@ ENDIF
public cputc,cputs,cputmg,cputcrlf,cputstr public cputc,cputs,cputmg,cputcrlf,cputstr
cputc: cputc:
msdos F_DSPCHR msdos F_DSPCHR
ret VZ_RET
cputcrlf: cputcrlf:
mov dx,offset cgroup:mg_crlf mov dx,offset cgroup:mg_crlf
cputmg: cputmg:
@ -1276,10 +1283,10 @@ cputmg:
movseg ds,cs movseg ds,cs
call cputs call cputs
pop ds pop ds
ret VZ_RET
cputs: cputs:
msdos F_DSPSTR msdos F_DSPSTR
cputs9: ret cputs9: VZ_RET
cputstr: cputstr:
lodsb lodsb
@ -1301,7 +1308,7 @@ _if z
mov ah,F_FREE mov ah,F_FREE
_endif _endif
int 21h int 21h
ret VZ_RET
;--- Set environment path/name --- ;--- Set environment path/name ---
;--> ;-->
@ -1324,7 +1331,7 @@ setenvvar proc
push si push si
call scanenv1 call scanenv1
pop di pop di
ret VZ_RET
setenvvar endp setenvvar endp
;--- Scan environment strings --- ;--- Scan environment strings ---
@ -1363,7 +1370,7 @@ env_f:
pop si pop si
stc stc
popm <si,cx> popm <si,cx>
ret VZ_RET
env_x: env_x:
popm <si,cx> popm <si,cx>
tst si tst si
@ -1373,7 +1380,7 @@ env_x:
clc clc
jne env9 jne env9
stc stc
env9: ret env9: VZ_RET
scanenv endp scanenv endp
scanenv1 proc scanenv1 proc
@ -1381,7 +1388,7 @@ scanenv1 proc
mov si,di mov si,di
mov ax,es mov ax,es
movseg es,ss movseg es,ss
ret VZ_RET
scanenv1 endp scanenv1 endp
;--- Add DEF path --- ;--- Add DEF path ---
@ -1406,7 +1413,7 @@ addpath2:
push bx push bx
push si push si
call parsepath call parsepath
test dl,PRS_ROOT test dl,VZ_PRS_ROOT
_if z _if z
mov si,defpath mov si,defpath
tstb [si] ; ##100.02 tstb [si] ; ##100.02
@ -1425,13 +1432,13 @@ addp1: lodsb
addp2: dec si addp2: dec si
dec di dec di
mov byte ptr [di],0 mov byte ptr [di],0
test dl,PRS_NAME test dl,VZ_PRS_NAME
_if z _if z
mov si,offset cgroup:nm_vz mov si,offset cgroup:nm_vz
call strcpy call strcpy
_endif _endif
pop bx pop bx
test dl,PRS_EXT test dl,VZ_PRS_EXT
_if z _if z
tst bx tst bx
_ifn z _ifn z
@ -1445,7 +1452,7 @@ _if z
_endif _endif
pop di pop di
mov dx,di mov dx,di
ret VZ_RET
adddefpath endp adddefpath endp
;--- Offset to segment --- ;--- Offset to segment ---
@ -1460,10 +1467,10 @@ ofs2seg1:
mov cl,4 mov cl,4
shr ax,cl shr ax,cl
pop cx pop cx
ret VZ_RET
_endif _endif
mov ax,1000h mov ax,1000h
ret VZ_RET
ofs2seg endp ofs2seg endp
;--- Segment to offset --- ;--- Segment to offset ---
@ -1474,13 +1481,13 @@ seg2ofs proc
cmp ax,1000h cmp ax,1000h
_ifn b _ifn b
mov ax,0FFFFh mov ax,0FFFFh
ret VZ_RET
_endif _endif
push cx push cx
mov cl,4 mov cl,4
shl ax,cl shl ax,cl
pop cx pop cx
ret VZ_RET
seg2ofs endp seg2ofs endp
endes endes
@ -1505,7 +1512,7 @@ enter_vz proc
call setint24 call setint24
call getcurdir call getcurdir
; call setgbank ; call setgbank
mov ax,gtops ; ##152.26 mov ax,ss:gtops ; ##152.26
tst ax tst ax
_if z _if z
call initfar call initfar
@ -1524,7 +1531,7 @@ _else
_endif _endif
mov ax,gtops mov ax,gtops
mov gtops0,ax mov gtops0,ax
entvz9: ret entvz9: VZ_RET
enter_vz endp enter_vz endp
IF 0 IF 0
@ -1542,7 +1549,7 @@ stack_cs:
mov ss,cs:code_seg mov ss,cs:code_seg
sppul: sti sppul: sti
pushm <di,si,dx,cx,bx> pushm <di,si,dx,cx,bx>
ret VZ_RET
stack_gs endp stack_gs endp
ENDIF ENDIF
@ -1587,7 +1594,7 @@ chkmem:
jc memerr jc memerr
cmp ax,ssmax cmp ax,ssmax
jae memerr jae memerr
ret VZ_RET
memerr: memerr:
mov dx,offset cgroup:mg_nospc mov dx,offset cgroup:mg_nospc
cfgerr: call cputmg cfgerr: call cputmg
@ -1616,7 +1623,7 @@ _endif
call ld_wact call ld_wact
jz readini2 jz readini2
todsp1: call dspscr todsp1: call dspscr
ret VZ_RET
_endif _endif
toedit0: toedit0:
call ld_wact call ld_wact
@ -1748,7 +1755,7 @@ _endif
;_ifn z ;_ifn z
; call resetscr ; call resetscr
;_endif ;_endif
; ret ; VZ_RET
sedit endp sedit endp
;--- Init text screen --- ;--- Init text screen ---
@ -1780,7 +1787,7 @@ _if z
_endif _endif
mov [bp].fsiz,al mov [bp].fsiz,al
mov [bp].fsiz0,al mov [bp].fsiz0,al
ret VZ_RET
iniscr endp iniscr endp
public editloc public editloc
@ -1795,7 +1802,7 @@ editloc proc
mov dl,[bp].tw_px mov dl,[bp].tw_px
mov cl,[bp].tw_sx mov cl,[bp].tw_sx
call undercsr call undercsr
ret VZ_RET
editloc endp editloc endp
;--- Map text segment --- ;--- Map text segment ---
@ -1835,7 +1842,7 @@ maptxt1:
_endif _endif
_endif _endif
_endif _endif
ret VZ_RET
maptext endp maptext endp
;--- Blach by code --- ;--- Blach by code ---
@ -1915,7 +1922,7 @@ blan8:
sbb ax,ax sbb ax,ax
mov retval,ax mov retval,ax
se_dummy: se_dummy:
blan9: ret blan9: VZ_RET
blanch endp blanch endp
public touch public touch
@ -1928,7 +1935,7 @@ touch proc
jne touch9 jne touch9
touch1: xor [bp].tchf,1 touch1: xor [bp].tchf,1
touch9: pop ax touch9: pop ax
ret VZ_RET
touch endp touch endp
;--- Command table --- ;--- Command table ---
@ -2026,7 +2033,7 @@ _ifn z
popall <es,ds> popall <es,ds>
_endif _endif
pop ax pop ax
ret VZ_RET
redraw endp redraw endp
;----- Initilal option manager ----- ;----- Initilal option manager -----
@ -2046,7 +2053,7 @@ save_iniopt proc
mov si,offset cgroup:hist_top mov si,offset cgroup:hist_top
mov cx,INIOPTSZ3/2 mov cx,INIOPTSZ3/2
rep movsw rep movsw
ret VZ_RET
save_iniopt endp save_iniopt endp
public load_iniopt public load_iniopt
@ -2065,7 +2072,7 @@ load_iniopt proc
mov cx,INIOPTSZ2/2 mov cx,INIOPTSZ2/2
rep movsw rep movsw
pop si pop si
ret VZ_RET
load_iniopt endp load_iniopt endp
public write_goption public write_goption
@ -2079,7 +2086,7 @@ write_goption proc
mov cx,INIOPTSZ25/2 mov cx,INIOPTSZ25/2
mov dx,offset cgroup:tb_opt_atr mov dx,offset cgroup:tb_opt_atr
call write_gopt call write_gopt
ret VZ_RET
write_goption endp write_goption endp
public reset_histp public reset_histp
@ -2090,7 +2097,7 @@ reset_histp proc
mov di,offset cgroup:hist_top mov di,offset cgroup:hist_top
mov cx,INIOPTSZ3/2 mov cx,INIOPTSZ3/2
rep movsw rep movsw
ret VZ_RET
reset_histp endp reset_histp endp
endes endes
@ -2101,4 +2108,3 @@ reset_histp endp
; End of 'main.asm' ; End of 'main.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -81,7 +81,7 @@ settcp proc
settcp1: settcp1:
call setabsp call setabsp
stl [bp].tnowp stl [bp].tnowp
ret VZ_RET
settcp endp settcp endp
public restcp,resetcp1 public restcp,resetcp1
@ -94,7 +94,7 @@ resetcp1:
mov si,ax mov si,ax
call toplin call toplin
mov [bp].tnow,si mov [bp].tnow,si
ret VZ_RET
restcp endp restcp endp
;--- Mark block --- ;--- Mark block ---
@ -110,12 +110,12 @@ blkon1: call setnowp
sub ax,[bp].tnow sub ax,[bp].tnow
mov [bp].bofs,ax mov [bp].bofs,ax
clc clc
ret VZ_RET
_endif _endif
mov [bp].blkm,FALSE mov [bp].blkm,FALSE
call scrout call scrout
clc clc
ret VZ_RET
se_markblk endp se_markblk endp
public setnowp,setabsp public setnowp,setabsp
@ -125,7 +125,7 @@ setabsp: clr dx
sub ax,[bp].ttop ; ##1.5 sub ax,[bp].ttop ; ##1.5
sbb dx,0 sbb dx,0
addl [bp].headp addl [bp].headp
ret VZ_RET
;--- Init block pointer --- ;--- Init block pointer ---
;<-- ;<--
@ -185,12 +185,12 @@ _endif
iblk8: pop cx iblk8: pop cx
mov bl,cl mov bl,cl
tst si tst si
ret VZ_RET
notblk: notblk:
mov si,[bp].tnow mov si,[bp].tnow
mov bh,FALSE mov bh,FALSE
ret VZ_RET
endcs endcs
@ -210,7 +210,7 @@ _ifn z
mov sends,ax mov sends,ax
_endif _endif
pop ax pop ax
ret VZ_RET
setsends endp setsends endp
;--- Clear stack --- ;--- Clear stack ---
@ -235,7 +235,7 @@ _endif
call setsends call setsends
pop ax pop ax
clc clc
ret VZ_RET
clrstack endp clrstack endp
;--- Get end of main memory --- ;--- Get end of main memory ---
@ -250,7 +250,7 @@ getsends proc
_if z _if z
mov ax,rends mov ax,rends
_endif _endif
ret VZ_RET
getsends endp getsends endp
@ -297,7 +297,7 @@ opstk1: mov al,2
_endif _endif
clc clc
opstk9: pop ds opstk9: pop ds
ret VZ_RET
openstack endp openstack endp
assume ds:nothing assume ds:nothing
@ -341,7 +341,7 @@ spsh_x2:
spsh_x: mov dl,E_NOMEM spsh_x: mov dl,E_NOMEM
call disperr call disperr
spsh_c: stc spsh_c: stc
spsh9: ret spsh9: VZ_RET
spsh1: spsh1:
tst dx tst dx
jnz sfull jnz sfull
@ -500,7 +500,7 @@ _else
clc clc
_endif _endif
popm <ds,si,cx> popm <ds,si,cx>
ret VZ_RET
cutstack endp cutstack endp
;--- Pull/Load from stack --- ;--- Pull/Load from stack ---
@ -589,7 +589,7 @@ spul_x:
call restcp call restcp
spul_c: spul_c:
stc stc
ret VZ_RET
spul8: spul8:
mov al,bh mov al,bh
call set_ret call set_ret
@ -624,11 +624,11 @@ _if z
_endif _endif
call scrout_fx call scrout_fx
clc clc
ret VZ_RET
stkout1: stkout1:
call scrout_cp call scrout_cp
clc clc
ret VZ_RET
se_pullblk endp se_pullblk endp
se_loadblk endp se_loadblk endp
@ -647,7 +647,7 @@ gblk_x: mov bh,-1
popm <es,si,bx> popm <es,si,bx>
set_ret: cbw set_ret: cbw
mov retval,ax mov retval,ax
ret VZ_RET
get_blkm endp get_blkm endp
get_blkinfo proc get_blkinfo proc
@ -662,7 +662,7 @@ get_blkinfo proc
mov bh,es:[si] mov bh,es:[si]
clz clz
_endif _endif
ret VZ_RET
get_blkinfo endp get_blkinfo endp
;--- Clear stack --- ;--- Clear stack ---
@ -675,13 +675,13 @@ se_clrstack proc
stc stc
jz skil9 jz skil9
call clrstack call clrstack
skil9: ret skil9: VZ_RET
mc_clrstack: mc_clrstack:
mov di,ax mov di,ax
call setsends call setsends
clc clc
ret VZ_RET
se_clrstack endp se_clrstack endp
;--- Jump block --- ;--- Jump block ---
@ -699,7 +699,7 @@ se_jumpblk proc
add ax,cx add ax,cx
adc dx,0 adc dx,0
call jumpto call jumpto
jblk9: ret jblk9: VZ_RET
se_jumpblk endp se_jumpblk endp
;----- Set Block target flag ----- ;----- Set Block target flag -----
@ -729,7 +729,7 @@ set_blktgt proc
mov ax,1 mov ax,1
_endif _endif
mov [bp].blktgt,ax mov [bp].blktgt,ax
ret VZ_RET
set_blktgt endp set_blktgt endp
;--- Move text --- ;--- Move text ---
@ -804,7 +804,7 @@ tful_x: mov dl,E_NOMEM
tfulx1: call disperr tfulx1: call disperr
tfulx2: pop dx tfulx2: pop dx
stc stc
ret VZ_RET
txtm1: txtm1:
pop dx pop dx
@ -838,7 +838,7 @@ tcut:
popm <di,si> popm <di,si>
txtm2: pop cx txtm2: pop cx
clc clc
ret VZ_RET
txtmov endp txtmov endp
public txtmov1 public txtmov1
@ -851,7 +851,7 @@ txtmov1 proc
add cx,di add cx,di
mov [bp].tend,cx ; update tend mov [bp].tend,cx ; update tend
pop es pop es
ret VZ_RET
txtmov1 endp txtmov1 endp
endcs endcs
@ -899,7 +899,7 @@ memmove proc
_endif _endif
cld cld
move9: popm <di,si,dx,cx,ax> move9: popm <di,si,dx,cx,ax>
ret VZ_RET
memmove endp memmove endp
;----- Clear memory ----- ;----- Clear memory -----
@ -909,7 +909,7 @@ memclear proc
clr ax clr ax
shr cx,1 shr cx,1
rep stosw rep stosw
ret VZ_RET
memclear endp memclear endp
endbs endbs
@ -944,7 +944,7 @@ tadj3: inc si
cmp si,bx cmp si,bx
_until e _until e
popm <si,cx,bx> popm <si,cx,bx>
ret VZ_RET
ptradj endp ptradj endp
public ptradj2 public ptradj2
@ -974,7 +974,7 @@ _repeat
_until e _until e
popf popf
popm <di,si,dx,cx,bx> popm <di,si,dx,cx,bx>
ret VZ_RET
padj2: padj2:
pushf pushf
@ -993,11 +993,11 @@ padj3: cmpl [bp+si]
popf popf
jc padj4 jc padj4
addlw [bp+si],cx addlw [bp+si],cx
ret VZ_RET
padj4: neg cx padj4: neg cx
sublw [bp+si],cx sublw [bp+si],cx
neg cx neg cx
ret VZ_RET
padj5: padj5:
cmp bx,[bp+si]+2 cmp bx,[bp+si]+2
ja padj9 ja padj9
@ -1007,7 +1007,7 @@ padj5:
padj6: mov [bp+si],di padj6: mov [bp+si],di
mov [bp+si]+2,bx mov [bp+si]+2,bx
padj9: popf padj9: popf
ret VZ_RET
ptradj2 endp ptradj2 endp
;--- Move segment --- ;--- Move segment ---
@ -1082,7 +1082,7 @@ smov9:
popm <es,ds,di,si,dx,cx> popm <es,ds,di,si,dx,cx>
mov ax,di mov ax,di
sub ax,si sub ax,si
ret VZ_RET
sgmove1: sgmove1:
push cx push cx
@ -1101,7 +1101,7 @@ adj_stkp:
add sends,ax add sends,ax
_endif _endif
add rends,ax add rends,ax
ret VZ_RET
sgmove2: sgmove2:
test si,EMSMASKW test si,EMSMASKW
@ -1115,7 +1115,7 @@ _ifn z
_endif _endif
pop bp pop bp
_endif _endif
ret VZ_RET
sgmove endp sgmove endp
endcs endcs
@ -1140,7 +1140,7 @@ _repeat
mov bp,[bp].w_next mov bp,[bp].w_next
_until _until
; add rtops,ax ; add rtops,ax
ret VZ_RET
adjustseg endp adjustseg endp
public adjustfar public adjustfar
@ -1151,7 +1151,7 @@ adjustfar proc
call adjustseg call adjustseg
pop bp pop bp
call adj_stkp call adj_stkp
ret VZ_RET
adjustfar endp adjustfar endp
endes endes
@ -1179,7 +1179,7 @@ freemem proc
jnc freem9 jnc freem9
freem0: clr ax freem0: clr ax
freem9: pop ds freem9: pop ds
ret VZ_RET
freemem endp freemem endp
endcs endcs

View File

@ -137,7 +137,7 @@ popupmenu proc
call loadwloc call loadwloc
popmn9: pop ds popmn9: pop ds
mov ss:retval,ax ; ##16 mov ss:retval,ax ; ##16
ret VZ_RET
popupmenu endp popupmenu endp
endwindow proc endwindow proc
@ -146,7 +146,7 @@ endwindow proc
call popwindow call popwindow
pop ax pop ax
popf popf
ret VZ_RET
endwindow endp endwindow endp
;--- System menu --- ;--- System menu ---
@ -168,7 +168,7 @@ _if e
mov si,di mov si,di
_endif _endif
call popupmenu call popupmenu
sysmnu9:ret sysmnu9:VZ_RET
sysmenu endp sysmenu endp
;--- Do menu --- ;--- Do menu ---
@ -208,14 +208,14 @@ domn4: cmp al,CM_ESC
domn_esc: domn_esc:
mov ax,INVALID mov ax,INVALID
stc stc
ret VZ_RET
domn_x: mov ah,0 domn_x: mov ah,0
domn_k: mov al,ah domn_k: mov al,ah
domn_shift: ; ##16 domn_shift: ; ##16
mov ah,cl ; mov ah,cl ;
or ah,80h ; or ah,80h ;
stc stc
ret VZ_RET
domn_cr: domn_cr:
tst cl tst cl
js domn_x js domn_x
@ -287,14 +287,14 @@ _endif
domnc5: mov [bx].mn_sel,al domnc5: mov [bx].mn_sel,al
mov ah,SEL_KEY mov ah,SEL_KEY
domn9: clc domn9: clc
ret VZ_RET
do_menu endp do_menu endp
extfunc proc extfunc proc
pushm <bx,cx,dx,ds> pushm <bx,cx,dx,ds>
call di call di
popm <ds,dx,cx,bx> popm <ds,dx,cx,bx>
ret VZ_RET
extfunc endp extfunc endp
;--- Check 1st key --- ;--- Check 1st key ---
@ -310,9 +310,9 @@ chkkey proc
cmp al,5Fh cmp al,5Fh
ja chkkey ja chkkey
cmp al,ah cmp al,ah
ret VZ_RET
chkky_x:clz chkky_x:clz
ret VZ_RET
chkkey endp chkkey endp
;--- Draw menu --- ;--- Draw menu ---
@ -372,7 +372,7 @@ _endif
inc cl inc cl
cmp dh,mn_h cmp dh,mn_h
jmpl b,drmn1 jmpl b,drmn1
ret VZ_RET
drawmenu endp drawmenu endp
dritm1: dritm1:
@ -398,7 +398,7 @@ _endif
call putc call putc
dritm7: call itematr dritm7: call itematr
dritm8: call puts_t dritm8: call puts_t
dritm9: ret dritm9: VZ_RET
drawitem endp drawitem endp
;--- Set item attr --- ;--- Set item attr ---
@ -411,7 +411,7 @@ _if e
mov al,ATR_WSEL mov al,ATR_WSEL
_endif _endif
call setatr call setatr
ret VZ_RET
itematr endp itematr endp
;--- Draw border --- ;--- Draw border ---
@ -434,7 +434,7 @@ _ifn z
call putspc call putspc
_endif _endif
_endif _endif
ret VZ_RET
drawborder endp drawborder endp
redraw_border proc redraw_border proc
@ -444,7 +444,7 @@ redraw_border proc
mov si,titlep mov si,titlep
call drawborder call drawborder
popm <es,ds> popm <es,ds>
ret VZ_RET
redraw_border endp redraw_border endp
;--- Set message ptr --- ;--- Set message ptr ---
@ -465,7 +465,7 @@ _repeat
_until z _until z
mov si,di mov si,di
popm <es,di,dx,cx> popm <es,di,dx,cx>
ret VZ_RET
setmsgp endp setmsgp endp
;--- Adjust window position --- ;--- Adjust window position ---
@ -526,7 +526,7 @@ _endif
mov refloc,dx mov refloc,dx
call pushwindow call pushwindow
pop bx pop bx
ret VZ_RET
adjwin1: adjwin1:
push ax push ax
@ -563,7 +563,7 @@ _if a
_endif _endif
inc dl inc dl
pop ax pop ax
ret VZ_RET
adjwin endp adjwin endp
;**************************** ;****************************
@ -614,7 +614,7 @@ _endif
pop drawfunc pop drawfunc
call loadwloc call loadwloc
popm <ds,dx> popm <ds,dx>
ret VZ_RET
windgets endp windgets endp
endes endes
@ -671,7 +671,7 @@ drbar8: mov [bx].mb_c,cl
popm <dx,cx> popm <dx,cx>
call setwindow call setwindow
pop ds pop ds
ret VZ_RET
drawmbar endp drawmbar endp
;--- Do menu bar --- ;--- Do menu bar ---
@ -714,7 +714,7 @@ dobar2:
mov al,cl mov al,cl
clc clc
dobar9: pop ds dobar9: pop ds
ret VZ_RET
do_mbar endp do_mbar endp
;----- Get menu bar key ----- ;----- Get menu bar key -----
@ -736,7 +736,7 @@ _loop
lodsb lodsb
mov dl,al mov dl,al
pop ds pop ds
ret VZ_RET
get_mbar endp get_mbar endp
endcs endcs
@ -802,7 +802,7 @@ ENDIF
jmp cmdmnu1 jmp cmdmnu1
cmdmnu8:clc cmdmnu8:clc
cmdmnu9:pop di cmdmnu9:pop di
ret VZ_RET
cmdmenu endp cmdmenu endp
msgpoolp proc msgpoolp proc
@ -813,7 +813,7 @@ cmditemp:
mov di,bx mov di,bx
add di,type _menu add di,type _menu
add di,ax add di,ax
ret VZ_RET
msgpoolp endp msgpoolp endp
;--- Click Variables --- ;--- Click Variables ---
@ -822,7 +822,7 @@ msgpoolp endp
click_var proc click_var proc
IFDEF NEWEXPR IFDEF NEWEXPR
mov cx,ax mov cx,ax
and ch,not MENU_VAR and ch,not byte ptr MENU_VAR
ELSE ELSE
mov cl,al mov cl,al
clr ch clr ch
@ -855,7 +855,7 @@ _if e
call editloc call editloc
_endif _endif
movseg ds,ss movseg ds,ss
clkvar9:ret clkvar9:VZ_RET
click_var endp click_var endp
public windgetval public windgetval
@ -872,7 +872,7 @@ windgetval proc
call scannum call scannum
jnc getvar9 jnc getvar9
getvar8:clr dx getvar8:clr dx
getvar9:ret getvar9:VZ_RET
windgetval endp windgetval endp
;--- Get command message ptr --- ;--- Get command message ptr ---
@ -914,7 +914,7 @@ cmdmp2:
jmps cmdmp8 jmps cmdmp8
cmdmp7: clr si cmdmp7: clr si
cmdmp8: popm <di,cx> cmdmp8: popm <di,cx>
ret VZ_RET
getcmdmsgp endp getcmdmsgp endp
;--- Command item function --- ;--- Command item function ---
@ -942,11 +942,11 @@ cmdkey2:inc cx
cmp cl,[bx].mn_c cmp cl,[bx].mn_c
jne cmdkey1 jne cmdkey1
stc stc
ret VZ_RET
_endif _endif
mov al,cl mov al,cl
clc clc
ret VZ_RET
cmddraw: cmddraw:
tstb [bx].mn_valwd tstb [bx].mn_valwd
jz cmddr2 jz cmddr2
@ -985,7 +985,7 @@ cmddr5:
call dispval call dispval
cmddr7: mov dl,[bx].mn_wd cmddr7: mov dl,[bx].mn_wd
call fillspc call fillspc
ret VZ_RET
cmditem endp cmditem endp
;--- Disp value --- ;--- Disp value ---
@ -1018,7 +1018,7 @@ val_cmd:
val_var: val_var:
IFDEF NEWEXPR IFDEF NEWEXPR
mov cx,ax mov cx,ax
and ch,not MENU_VAR and ch,not byte ptr MENU_VAR
ELSE ELSE
mov cl,al mov cl,al
clr ch clr ch
@ -1040,7 +1040,7 @@ _endif
valvar1: valvar1:
call putval call putval
dspval8:popm <di,dx,cx,bx> dspval8:popm <di,dx,cx,bx>
ret VZ_RET
dispval endp dispval endp
public putval public putval
@ -1052,7 +1052,7 @@ putval proc
call printf call printf
pop ax pop ax
popm <si,bx> popm <si,bx>
ret VZ_RET
putval endp putval endp
;--- Disp key No. --- ;--- Disp key No. ---
@ -1082,7 +1082,7 @@ _endif
call putc call putc
call putspc call putspc
pop ax pop ax
ret VZ_RET
dispkeynum endp dispkeynum endp
;--- Disp command key --- ;--- Disp command key ---
@ -1110,7 +1110,7 @@ _ifn c
call putc call putc
_endif _endif
pop di pop di
ret VZ_RET
dispkeycmd endp dispkeycmd endp
;--- Disp macro key --- ;--- Disp macro key ---
@ -1125,7 +1125,7 @@ dispkeymac1:
lodsw lodsw
call dispkeysym call dispkeysym
_endif _endif
ret VZ_RET
dispkeymac endp dispkeymac endp
;---- Get item number ----- ;---- Get item number -----
@ -1140,7 +1140,7 @@ getitemnum proc
_endif _endif
mov ah,MCHR_CMD mov ah,MCHR_CMD
_endif _endif
ret VZ_RET
getitemnum endp getitemnum endp
;--- Macro menu --- ;--- Macro menu ---
@ -1234,21 +1234,21 @@ _else
_if e _if e
mov readmac,si mov readmac,si
clc clc
ret VZ_RET
_endif _endif
mov al,[si] mov al,[si]
_endif _endif
mov ah,MCHR_CALL mov ah,MCHR_CALL
clc clc
ret VZ_RET
edtmac_c: edtmac_c:
clr si clr si
macmnu_x: macmnu_x:
stc stc
ret VZ_RET
mdlmenu1: mdlmenu1:
call popupmenu call popupmenu
ret VZ_RET
macromenu endp macromenu endp
;--- Draw Macro menu --- ;--- Draw Macro menu ---
@ -1257,7 +1257,7 @@ drawmac proc
tst ah tst ah
jz drmac0 jz drmac0
stc stc
ret VZ_RET
drmac0: drmac0:
mov cx,ax mov cx,ax
push cx push cx
@ -1279,7 +1279,7 @@ _if z
inc si inc si
_endif _endif
call puts call puts
ret VZ_RET
drawmac endp drawmac endp
;--- Draw Module menu --- ;--- Draw Module menu ---
@ -1288,7 +1288,7 @@ draw_module proc
cmp ah,ITEM_DRAW cmp ah,ITEM_DRAW
_ifn e _ifn e
stc stc
ret VZ_RET
_endif _endif
mov cx,ax mov cx,ax
push cx push cx
@ -1338,7 +1338,7 @@ draw_module proc
call printf call printf
pop ax pop ax
pop bx pop bx
ret VZ_RET
draw_module endp draw_module endp
;----- Count macro/module ----- ;----- Count macro/module -----
@ -1353,7 +1353,7 @@ cntmacro proc
skip_mdlttl: skip_mdlttl:
add si,[si].mh_namelen add si,[si].mh_namelen
add si,type _mdlhead + 1 add si,type _mdlhead + 1
ret VZ_RET
_endif _endif
cmp al,MENU_MDLMAC cmp al,MENU_MDLMAC
je cntmdlmac je cntmdlmac
@ -1371,9 +1371,9 @@ cntmac1: lodsw
add si,ax add si,ax
_until _until
not cx not cx
ret VZ_RET
cntmac2: dec si cntmac2: dec si
ret VZ_RET
cntmacro endp cntmacro endp
cntmdlmac proc cntmdlmac proc
@ -1400,9 +1400,9 @@ cntmmac1: lodsw
add si,ax add si,ax
_until _until
not cx not cx
ret VZ_RET
cntmmac2: dec si cntmmac2: dec si
ret VZ_RET
cntmdlmac endp cntmdlmac endp
endes endes
@ -1412,4 +1412,3 @@ cntmdlmac endp
; End of 'menu.asm' ; End of 'menu.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -105,7 +105,7 @@ _ifn e
call scrout_lx call scrout_lx
call touch call touch
_endif _endif
ret VZ_RET
lmarg: lmarg:
clr cx clr cx
@ -182,7 +182,7 @@ _repeat
_until e _until e
pop es pop es
lmrg8: clc lmrg8: clc
lmrg9: ret lmrg9: VZ_RET
se_chgindent endp se_chgindent endp
;--- Modefy mode --- ;--- Modefy mode ---
@ -195,11 +195,11 @@ _if e
_else _else
not [bp].tchf not [bp].tchf
_endif _endif
mmod9: ret mmod9: VZ_RET
isviewmode: isviewmode:
cmp [bp].tchf,TCH_VIEW cmp [bp].tchf,TCH_VIEW
ret VZ_RET
se_readonly endp se_readonly endp
;--- Compare two text --- ;--- Compare two text ---
@ -282,7 +282,7 @@ tcmp3: pushf
xchg bp,bx xchg bp,bx
call dspscr call dspscr
popf popf
ret VZ_RET
se_textcomp endp se_textcomp endp
endcs endcs

View File

@ -1,79 +0,0 @@
echo off
rem ------- Make vz???.com -------
rem usage: mk [98,J31,IBM,IBMJ,AX,55,US]
rem mk vmap
rem
rem %ASM% :assembler name cap (opt,t,m) ex: set asm=opt
if exist dummy goto init
type nul >dummy
:init
if not "%1"=="" goto init2
if not "%HARD%"=="" goto makevz
goto mk_98
:init2
type nul >dummy
for %%a in (98 j31 J31 ibm IBM ibmj IBMJ ax AX 55 us US) do if "%1"=="%%a" goto mk_%%a
command /c ac %1
lk %1
:mk_98
set HARD=
set masm=/dPC98
goto makevz
:mk_J31
set HARD=J31
set masm=/dJ31
goto makevz
:mk_IBM
set HARD=IBM
set masm=/dIBMV
goto makevz
:mk_IBMJ
set HARD=IBMJ
set masm=/dIBMJ
goto makevz
:mk_AX
set HARD=AX
set masm=/dIBMAX
goto makevz
:mk_55
set HARD=55
set masm=/dJBM
goto makevz
:mk_US
set HARD=US
set masm=/dUS
goto makevz
:makevz
echo ===== Make VZ%HARD% %2 =====
set %ASM%asm=%MASM%
if "%ASM%"=="opt" goto optmake
if "%ASM%"=="t" goto tmake
make vz.mak
goto link
:optmake
optasm @vz.omk
goto link
:tmake
make -fvz.mak
goto link
:link
if errorlevel 1 goto error
lk
:error
echo 


View File

@ -8,7 +8,7 @@
;--- Messages --- ;--- Messages ---
GDATA idword label byte GDATA idword, label, byte
IFDEF PC98 IFDEF PC98
db '98' db '98'
ENDIF ENDIF
@ -81,7 +81,7 @@ GDATA mg_install,db, <'
GDATA mg_tsr2, db, <'-zで解放',CR,LF,'$'> GDATA mg_tsr2, db, <'-zで解放',CR,LF,'$'>
GDATA mg_nospc, db, <'メモリが足りません.',CR,LF,'$'> ; ##155.85 GDATA mg_nospc, db, <'メモリが足りません.',CR,LF,'$'> ; ##155.85
GDATA mg_harderr label byte ; ##151.08 GDATA mg_harderr, label, byte ; ##151.08
db '書込み禁止です',0 db '書込み禁止です',0
db '指定が違います',0 db '指定が違います',0
db '準備ができていません',0 db '準備ができていません',0
@ -132,12 +132,12 @@ GDATA message, db, 0
db 'Abandon Edit',0 ;37 db 'Abandon Edit',0 ;37
db 1,'Delete %u files. Sure',0 ;38 db 1,'Delete %u files. Sure',0 ;38
GDATA mg_exit, db <'Type EXIT to return.',CR,LF,'$'> GDATA mg_exit, db, <'Type EXIT to return.',CR,LF,'$'>
GDATA mg_install,db <'installed.'> GDATA mg_install,db, <'installed.'>
GDATA mg_tsr2, db <'(-z to remove)',CR,LF,'$'> GDATA mg_tsr2, db, <'(-z to remove)',CR,LF,'$'>
GDATA mg_nospc, db, <'Out of memory.',CR,LF,'$'> GDATA mg_nospc, db, <'Out of memory.',CR,LF,'$'>
GDATA mg_harderr label byte ; ##151.08 GDATA mg_harderr, label, byte ; ##151.08
db 'write protected',0 db 'write protected',0
db 'not exist',0 db 'not exist',0
db 'not ready',0 db 'not ready',0
@ -249,4 +249,3 @@ GDATA code_end, label, near
_tail ends _tail ends
end end


View File

@ -200,16 +200,16 @@ IFNDEF NOFILER
ENDIF ENDIF
call wnd_reset call wnd_reset
clc clc
open9: ret open9: VZ_RET
open_x: open_x:
cmp dl,E_PATH cmp dl,E_PATH
je open1 je open1
stc stc
ret VZ_RET
toomany: toomany:
mov dl,E_OPEN mov dl,E_OPEN
call disperr call disperr
ret VZ_RET
se_open endp se_open endp
;--- Load file --- ;--- Load file ---
@ -240,7 +240,7 @@ _endif
call ld_wact call ld_wact
call topen1 ; ##16 call topen1 ; ##16
jmp open2 jmp open2
load9: ret load9: VZ_RET
se_load endp se_load endp
;--- Close file --- ;--- Close file ---
@ -261,7 +261,7 @@ _endif
jz close1 jz close1
call dspscr call dspscr
clc clc
close9: ret close9: VZ_RET
close1: close1:
call putdosscrn call putdosscrn
call getdosscrn call getdosscrn
@ -300,12 +300,12 @@ save2: call tsave
pushf pushf
call dspscr call dspscr
popf popf
save9: ret save9: VZ_RET
save_x: save_x:
mov dl,M_RDONLY mov dl,M_RDONLY
call dispmsg call dispmsg
stc stc
ret VZ_RET
se_save endp se_save endp
;--- Append file --- ;--- Append file ---
@ -326,7 +326,7 @@ apnd1: mov dl,W_APPEND
apnd8: pushf ; ##153.45 apnd8: pushf ; ##153.45
call dspscr call dspscr
popf popf
apnd9: ret apnd9: VZ_RET
se_append endp se_append endp
;--- Quit --- ;--- Quit ---
@ -349,7 +349,7 @@ _until z
mov retval,ax mov retval,ax
tst ax tst ax
pop bp pop bp
ret VZ_RET
ismodify endp ismodify endp
public se_quit,se_exit,closeall public se_quit,se_exit,closeall
@ -408,7 +408,7 @@ quit6:
mov w_act,0 mov w_act,0
jmp quit_vz jmp quit_vz
quit9: stc quit9: stc
ret VZ_RET
se_quit endp se_quit endp
se_exit proc se_exit proc
@ -449,7 +449,7 @@ _ifn c
call checkpath call checkpath
popf popf
_endif _endif
ret VZ_RET
se_rename endp se_rename endp
rename proc rename proc
@ -477,7 +477,7 @@ _ifn c
clc clc
_endif _endif
pop ds pop ds
ret VZ_RET
rename endp rename endp
public setnewname public setnewname
@ -495,7 +495,7 @@ setnewname proc
call cutpath call cutpath
call settab ; ##151.07, ##156.116 call settab ; ##151.07, ##156.116
pop ds pop ds
ret VZ_RET
setnewname endp setnewname endp
;--- Input file name --- ;--- Input file name ---
@ -508,7 +508,7 @@ infile proc
mov si,fbuf mov si,fbuf
mov cx,PATHSZ mov cx,PATHSZ
call windgets call windgets
ret VZ_RET
infile endp infile endp
;--- Pre-Close --- ;--- Pre-Close ---
@ -531,7 +531,7 @@ precls1:
_endif _endif
popf popf
_endif _endif
ret VZ_RET
preclose endp preclose endp
;--- Check path name --- ;--- Check path name ---
@ -576,7 +576,7 @@ chkp8: cbw
mov retval,ax mov retval,ax
pop ds pop ds
clc clc
ret VZ_RET
checkpath endp checkpath endp
;--- Select file --- ;--- Select file ---
@ -623,7 +623,7 @@ ELSE
stc stc
ENDIF ENDIF
sfile8: mov frompool,al sfile8: mov frompool,al
sfile9: ret sfile9: VZ_RET
sfile_e: sfile_e:
inc sp inc sp
inc sp inc sp
@ -651,7 +651,7 @@ IFNDEF NOFILER
_endif _endif
ENDIF ENDIF
pop ds pop ds
ret VZ_RET
nextfile endp nextfile endp
endcs endcs
@ -663,7 +663,7 @@ nextfile endp
; DS:SI :input string ; DS:SI :input string
;<-- ;<--
; CY :end of line ; CY :end of line
; DL :result bit (PRS_xxx) ; DL :result bit (VZ_PRS_xxx)
; BX :file name ptr ; BX :file name ptr
; CX :file ext ptr ; CX :file ext ptr
; SI :next ptr ; SI :next ptr
@ -697,24 +697,24 @@ _endif
je prs_wld je prs_wld
cmp al,'?' cmp al,'?'
je prs_wld je prs_wld
pars2: test dl,PRS_EXT pars2: test dl,VZ_PRS_EXT
_if z _if z
or dl,PRS_NAME or dl,VZ_PRS_NAME
_endif _endif
test dl,PRS_ENDDIR test dl,VZ_PRS_ENDDIR
jz pars1 jz pars1
and dl,not PRS_ENDDIR and dl,not byte ptr VZ_PRS_ENDDIR
mov bx,di ; ##153.31 mov bx,di ; ##153.31
jmp pars1 jmp pars1
prs_drv:or dl,PRS_DRV+PRS_ENDDIR+PRS_ROOT prs_drv:or dl,VZ_PRS_DRV+VZ_PRS_ENDDIR+VZ_PRS_ROOT
jmps prsdir2 jmps prsdir2
prs_dir: prs_dir:
tst dl tst dl
_if z _if z
or dl,PRS_ROOT or dl,VZ_PRS_ROOT
_endif _endif
prsdir1:or dl,PRS_DIR+PRS_ENDDIR prsdir1:or dl,VZ_PRS_DIR+VZ_PRS_ENDDIR
prsdir2:and dl,not (PRS_NAME+PRS_EXT) prsdir2:and dl,not (VZ_PRS_NAME+VZ_PRS_EXT)
jmp pars1 jmp pars1
prs_ext: prs_ext:
cmp byte ptr [si],'.' cmp byte ptr [si],'.'
@ -722,27 +722,27 @@ _if e
lodsb lodsb
jmp prsdir1 jmp prsdir1
_endif _endif
or dl,PRS_EXT or dl,VZ_PRS_EXT
mov cx,di ; ##153.31 mov cx,di ; ##153.31
test dl,PRS_ENDDIR test dl,VZ_PRS_ENDDIR
jz pars1 jz pars1
prs_wld:or dl,PRS_WILD prs_wld:or dl,VZ_PRS_WILD
jmp pars2 jmp pars2
pars5: pars5:
pop di pop di
test dl,PRS_EXT ; ##156.114 test dl,VZ_PRS_EXT ; ##156.114
_if z _if z
mov cx,si mov cx,si
_endif _endif
test dl,PRS_ENDDIR test dl,VZ_PRS_ENDDIR
jz pars8 jz pars8
mov bx,si mov bx,si
parsedir: parsedir:
and dl,PRS_DRV+PRS_DIR+PRS_ROOT and dl,VZ_PRS_DRV+VZ_PRS_DIR+VZ_PRS_ROOT
dec bx dec bx
mov cx,bx mov cx,bx
pars8: mov parsef,dl pars8: mov parsef,dl
ret VZ_RET
parsepath endp parsepath endp
endes endes
@ -812,7 +812,7 @@ mkful1: stosb
_until be _until be
mkful2: dec di mkful2: dec di
mov byte ptr es:[di],0 mov byte ptr es:[di],0
ret VZ_RET
makefulpath endp makefulpath endp
;--- Set path case --- ;--- Set path case ---
@ -830,7 +830,7 @@ _else
call strlwr call strlwr
_endif _endif
pop ds pop ds
ret VZ_RET
casepath endp casepath endp
;--- Cut path name --- ;--- Cut path name ---
@ -885,7 +885,7 @@ cutp3: lodsb
cutp4: dec si cutp4: dec si
cutp5: mov [bp].labelp,si cutp5: mov [bp].labelp,si
pop ds pop ds
ret VZ_RET
cutpath endp cutpath endp
assume ds:cgroup assume ds:cgroup
@ -929,7 +929,7 @@ ENDIF
push di push di
call casepath call casepath
pop di pop di
ret VZ_RET
setpath endp setpath endp
;--- Search File --- ;--- Search File ---
@ -949,13 +949,13 @@ searchfile proc
jmpln z,findfile jmpln z,findfile
mov si,pathp mov si,pathp
call parsepath call parsepath
test dl,PRS_EXT test dl,VZ_PRS_EXT
_if z _if z
call skipstr call skipstr
dec di dec di
mov putextp,di mov putextp,di
_endif _endif
test dl,PRS_ROOT test dl,VZ_PRS_ROOT
_ifn z _ifn z
mov getdirp,0 mov getdirp,0
_endif _endif
@ -1017,7 +1017,7 @@ findfile:
mov si,di mov si,di
call casepath call casepath
clc clc
ret VZ_RET
noext: stosb noext: stosb
jmps findfile jmps findfile
@ -1043,7 +1043,7 @@ _endif
nofile: nofile:
pop di pop di
stc stc
ret VZ_RET
searchfile endp searchfile endp
assume ds:nothing assume ds:nothing
@ -1064,7 +1064,7 @@ finddir proc
int 21h int 21h
cld cld
popm <dx,cx,ax> popm <dx,cx,ax>
ret VZ_RET
finddir endp finddir endp
;--- Set TAB size by .EXT --- ;--- Set TAB size by .EXT ---
@ -1079,7 +1079,7 @@ settab proc
mov cl,ntab mov cl,ntab
clr ch clr ch
mov [bp].extword,0 mov [bp].extword,0
test dl,PRS_EXT test dl,VZ_PRS_EXT
jz stab8 jz stab8
inc si inc si
mov ax,[si] mov ax,[si]
@ -1113,7 +1113,7 @@ _endif
stab8: mov [bp].exttyp,ch stab8: mov [bp].exttyp,ch
; mov [bp].tabr,cl ; ##156.116 ; mov [bp].tabr,cl ; ##156.116
pop ds pop ds
ret VZ_RET
settab endp settab endp
;--- Search EXT --- ;--- Search EXT ---
@ -1154,7 +1154,7 @@ _endif
jmps schext9 jmps schext9
schext0:clr ch schext0:clr ch
schext9:popm <si,bx> schext9:popm <si,bx>
ret VZ_RET
searchext endp searchext endp
public isbinary public isbinary
@ -1166,7 +1166,7 @@ _ifn z
call searchext1 call searchext1
_endif _endif
popm <es,di,dx,ax> popm <es,di,dx,ax>
ret VZ_RET
isbinary endp isbinary endp
endcs endcs
@ -1195,7 +1195,7 @@ _while c
jz addsp9 jz addsp9
addsep1:mov al,dirchr addsep1:mov al,dirchr
stosb stosb
addsp9: ret addsp9: VZ_RET
addsep endp addsep endp
;--- Is slash ? --- ;--- Is slash ? ---
@ -1205,7 +1205,7 @@ isslash proc
cmp al,'\' cmp al,'\'
je islsh9 je islsh9
cmp al,'/' cmp al,'/'
islsh9: ret islsh9: VZ_RET
isslash endp isslash endp
;--- After parse path --- ;--- After parse path ---
@ -1229,12 +1229,12 @@ _if z
_endif _endif
mov parsef,dl mov parsef,dl
mov getnamp,bx mov getnamp,bx
test dl,PRS_EXT test dl,VZ_PRS_EXT
_if z _if z
clr cx clr cx
_endif _endif
mov getextp,cx mov getextp,cx
ret VZ_RET
parsepath1 endp parsepath1 endp
parsepath2 proc parsepath2 proc
@ -1242,13 +1242,13 @@ parsepath2 proc
call parsepath call parsepath
mov di,si mov di,si
pop si pop si
test dl,PRS_NAME test dl,VZ_PRS_NAME
_ifn z _ifn z
test dl,PRS_WILD test dl,VZ_PRS_WILD
jz isdir jz isdir
_endif _endif
stc stc
ret VZ_RET
parsepath2 endp parsepath2 endp
;--- Is directory --- ;--- Is directory ---
@ -1266,15 +1266,15 @@ _ifn c
_ifn z _ifn z
pop cx pop cx
mov bx,di mov bx,di
or dl,PRS_DIR or dl,VZ_PRS_DIR
call parsedir call parsedir
stc stc
ret VZ_RET
_endif _endif
_endif _endif
pop cx pop cx
clc clc
ret VZ_RET
isdir endp isdir endp
assume ds:cgroup assume ds:cgroup
@ -1306,7 +1306,7 @@ _endif
call cpycurdir call cpycurdir
pop ax pop ax
pop ds pop ds
ret VZ_RET
getcurdir endp getcurdir endp
assume ds:nothing assume ds:nothing
@ -1320,7 +1320,7 @@ _ifn z
_endif _endif
mov ah,':' mov ah,':'
stosw stosw
ret VZ_RET
getcurdrv endp getcurdrv endp
cpycurdir proc cpycurdir proc
@ -1353,7 +1353,7 @@ _until z
mov di,si mov di,si
clc clc
cpycd9: pop ds cpycd9: pop ds
ret VZ_RET
cpycurdir endp cpycurdir endp
endes endes
@ -1377,7 +1377,7 @@ readref proc
_ifn e _ifn e
dec si dec si
clc clc
ret VZ_RET
_endif _endif
push si push si
call chkline1 ;; call chkline1 ;;
@ -1390,14 +1390,14 @@ readref proc
pushm <ax,si> pushm <ax,si>
call parsepath call parsepath
popm <si,ax> popm <si,ax>
cmp dl,PRS_EXT cmp dl,VZ_PRS_EXT
_if e _if e
mov dl,PRS_DIR mov dl,VZ_PRS_DIR
mov bx,cx mov bx,cx
_endif _endif
mov di,pathbuf mov di,pathbuf
push di push di
test dl,PRS_DIR test dl,VZ_PRS_DIR
_ifn z _ifn z
IFNDEF NOFILER IFNDEF NOFILER
push [bx-1] push [bx-1]
@ -1412,7 +1412,7 @@ ENDIF
_endif _endif
cmp al,'@' cmp al,'@'
je rref0 je rref0
test dl,PRS_NAME test dl,VZ_PRS_NAME
_if z _if z
mov si,reffile mov si,reffile
_endif _endif
@ -1430,7 +1430,7 @@ rref0: mov si,defpath
call addsep call addsep
rref1: rref1:
mov si,bx mov si,bx
test dl,PRS_NAME test dl,VZ_PRS_NAME
_if z _if z
mov si,reffile mov si,reffile
_endif _endif
@ -1463,7 +1463,7 @@ rref_x:
jnc rref3 jnc rref3
msdos F_CLOSE msdos F_CLOSE
stc stc
ret VZ_RET
_endif _endif
inc dx inc dx
inc dx inc dx
@ -1502,7 +1502,7 @@ _until
mov fromref,TRUE mov fromref,TRUE
rref9: rref9:
mov pathp,si mov pathp,si
ret VZ_RET
readref endp readref endp
read_curdir proc read_curdir proc
@ -1521,7 +1521,7 @@ read_curdir proc
pop si pop si
call skipchar call skipchar
mov pathp,si mov pathp,si
ret VZ_RET
read_curdir endp read_curdir endp
;----- Write profile ----- ;----- Write profile -----
@ -1561,7 +1561,7 @@ writeref:
msdos F_CLOSE msdos F_CLOSE
mov tchdir,TRUE ; ##155.76 mov tchdir,TRUE ; ##155.76
wref9: mov fullpath,FALSE wref9: mov fullpath,FALSE
ret VZ_RET
se_writeref endp se_writeref endp
;----- Write editfile ----- ;----- Write editfile -----
@ -1588,7 +1588,7 @@ _repeat
mov bp,[bp].w_next mov bp,[bp].w_next
tst bp tst bp
_until z _until z
ret VZ_RET
write_editfile endp write_editfile endp
pf_name db "%s",0 pf_name db "%s",0
@ -1622,7 +1622,7 @@ w_name_cp proc
popm <ax,ax> popm <ax,ax>
_endif _endif
movseg ds,ss movseg ds,ss
ret VZ_RET
w_name_cp endp w_name_cp endp
w_act_back proc w_act_back proc
@ -1647,7 +1647,7 @@ w_act_back proc
mov al,wys mov al,wys
call w_option call w_option
_endif _endif
ret VZ_RET
w_act_back endp w_act_back endp
w_option proc w_option proc
@ -1667,7 +1667,7 @@ w_option1: movseg ds,cs
dec di dec di
add sp,4 add sp,4
movseg ds,ss movseg ds,ss
ret VZ_RET
w_option endp w_option endp
w_text_opt proc w_text_opt proc
@ -1686,7 +1686,7 @@ w_text_opt proc
call w_option call w_option
_endif _endif
; call w_mark ; call w_mark
; ret ; VZ_RET
w_text_opt endp w_text_opt endp
w_mark proc w_mark proc
@ -1714,7 +1714,7 @@ _repeat
cmp cx,MARKCNT cmp cx,MARKCNT
_until a _until a
movseg ds,ss movseg ds,ss
ret VZ_RET
w_mark endp w_mark endp
;----- Save closing file info ----- ;----- Save closing file info -----
@ -1745,7 +1745,7 @@ prof_close proc
mov bx,fbuf mov bx,fbuf
call histcpy_w call histcpy_w
prcls9: pop ds prcls9: pop ds
ret VZ_RET
prof_close endp prof_close endp
;----- Write grobal option ----- ;----- Write grobal option -----
@ -1773,7 +1773,7 @@ _repeat
inc dx inc dx
inc dx inc dx
_loop _loop
ret VZ_RET
write_gopt endp write_gopt endp
;----- Write current dir ----- ;----- Write current dir -----
@ -1793,7 +1793,7 @@ write_curdir proc
pop dx pop dx
sub cx,dx sub cx,dx
msdos F_WRITE msdos F_WRITE
ret VZ_RET
write_curdir endp write_curdir endp
;----- Write history ----- ;----- Write history -----
@ -1811,7 +1811,7 @@ write_history proc
mov di,xbuf mov di,xbuf
call w_history call w_history
_endif _endif
ret VZ_RET
write_history endp write_history endp
w_history proc w_history proc
@ -1833,7 +1833,7 @@ _until z
mov di,dx mov di,dx
pop [di] pop [di]
call write_crlf call write_crlf
ret VZ_RET
w_history endp w_history endp
write_crlf proc write_crlf proc
@ -1842,7 +1842,7 @@ write_crlf proc
mov dx,offset cgroup:pro_crlf mov dx,offset cgroup:pro_crlf
msdos F_WRITE msdos F_WRITE
popm <dx,cx> popm <dx,cx>
ret VZ_RET
write_crlf endp write_crlf endp
;----- Read history ----- ;----- Read history -----
@ -1880,7 +1880,7 @@ _repeat
jz r_hist_x jz r_hist_x
cmp readbuf,LF cmp readbuf,LF
_until e _until e
ret VZ_RET
r_hist1: r_hist1:
dec cx ; CRLF dec cx ; CRLF
dec cx dec cx
@ -1894,10 +1894,10 @@ r_hist1:
mov cx,-1 mov cx,-1
msdos F_SEEK,1 msdos F_SEEK,1
_endif _endif
ret VZ_RET
r_hist_x: r_hist_x:
stc stc
ret VZ_RET
read_history endp read_history endp
;------------------------------------------------ ;------------------------------------------------
@ -1920,7 +1920,7 @@ _ifn z
msdos F_CLOSE msdos F_CLOSE
_endif _endif
_endif _endif
ret VZ_RET
read_logtbl endp read_logtbl endp
public write_logtbl public write_logtbl
@ -1941,11 +1941,11 @@ write_logtbl proc
sub cx,dx sub cx,dx
msdos F_WRITE msdos F_WRITE
msdos F_CLOSE msdos F_CLOSE
ret VZ_RET
_endif _endif
_endif _endif
_endif _endif
ret VZ_RET
write_logtbl endp write_logtbl endp
public open_file public open_file
@ -1958,7 +1958,7 @@ open_file proc
_ifn c _ifn c
mov bx,ax mov bx,ax
_endif _endif
ret VZ_RET
open_file endp open_file endp
;----- Set "VZ.ENV" ----- ;----- Set "VZ.ENV" -----
@ -1977,7 +1977,7 @@ setvzenv proc
mov si,offset cgroup:nm_env mov si,offset cgroup:nm_env
call strcpy call strcpy
pop dx pop dx
ret VZ_RET
setvzenv endp setvzenv endp
;----- Check log file ----- ;----- Check log file -----
@ -2011,7 +2011,7 @@ chk_logfile proc
_endif _endif
clc clc
chklog9: popm <es,ds> chklog9: popm <es,ds>
ret VZ_RET
chk_logfile endp chk_logfile endp
;----- Scan Log file table ----- ;----- Scan Log file table -----
@ -2038,7 +2038,7 @@ _repeat
_until _until
stc stc
sclog9: popm <es,ds> sclog9: popm <es,ds>
ret VZ_RET
scan_logtbl endp scan_logtbl endp
;----- Add Log file table ----- ;----- Add Log file table -----
@ -2096,7 +2096,7 @@ _until a
clr al clr al
stosb stosb
addlog9: popm <es,ds> addlog9: popm <es,ds>
ret VZ_RET
add_logtbl endp add_logtbl endp
public set_logtbl public set_logtbl
@ -2114,7 +2114,7 @@ set_logtbl proc
mov al,LF mov al,LF
stosb stosb
tch_logtbl: mov ss:addlogf,TRUE tch_logtbl: mov ss:addlogf,TRUE
ret VZ_RET
set_logtbl endp set_logtbl endp
endlogtbl proc endlogtbl proc
@ -2125,7 +2125,7 @@ _repeat
call skipstr call skipstr
add di,type _logtbl add di,type _logtbl
_until _until
ret VZ_RET
endlogtbl endp endlogtbl endp
endcs endcs
@ -2135,4 +2135,3 @@ endlogtbl endp
; End of 'open.asm' ; End of 'open.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -27,13 +27,11 @@ printf proc
movseg ds,ss movseg ds,ss
call puts call puts
popm <es,ds,di,si> popm <es,ds,di,si>
ret VZ_RET
printf endp printf endp
public sprintf public sprintf
sprintf proc
include sprintf.inc include sprintf.inc
sprintf endp
endes endes
@ -43,4 +41,3 @@ sprintf endp
; End of 'printf.asm' ; End of 'printf.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -7,7 +7,7 @@
;--- External symbols --- ;--- External symbols ---
wseg wseg
extrn altsize :byte ; extrn altsize :byte
extrn atrtbl :byte extrn atrtbl :byte
extrn atrucsr :byte extrn atrucsr :byte
extrn atrflag :byte extrn atrflag :byte
@ -48,7 +48,9 @@ ENDIF
extrn optputs :near extrn optputs :near
extrn toupper :near extrn toupper :near
extrn resetfp :near extrn resetfp :near
IFDEF PC98
extrn sm_sensekey :near extrn sm_sensekey :near
ENDIF
dseg dseg
@ -103,7 +105,7 @@ initscrn proc
mov vsplit,cl mov vsplit,cl
mov hsplit,ch mov hsplit,ch
call resetscrnh call resetscrnh
ret VZ_RET
initscrn endp initscrn endp
endis endis
@ -120,7 +122,7 @@ _ifn z
inc sp inc sp
inc sp inc sp
_endif _endif
ret VZ_RET
issilent endp issilent endp
is_dossilent proc is_dossilent proc
@ -129,7 +131,7 @@ _ifn z
inc sp inc sp
inc sp inc sp
_endif _endif
ret VZ_RET
is_dossilent endp is_dossilent endp
;--- Get/set window --- ;--- Get/set window ---
@ -140,14 +142,14 @@ is_dossilent endp
getwindow proc getwindow proc
mov dx,word ptr win.px mov dx,word ptr win.px
mov cx,word ptr win.sx mov cx,word ptr win.sx
ret VZ_RET
getwindow endp getwindow endp
public setwindow public setwindow
setwindow proc setwindow proc
mov word ptr win.px,dx mov word ptr win.px,dx
mov word ptr win.sx,cx mov word ptr win.sx,cx
ret VZ_RET
setwindow endp setwindow endp
;--- Get dos window --- ;--- Get dos window ---
@ -160,7 +162,7 @@ doswindow proc
call dosheight call dosheight
mov cl,byte ptr doswd mov cl,byte ptr doswd
clr dx clr dx
ret VZ_RET
doswindow endp doswindow endp
;--- Set dos window --- ;--- Set dos window ---
@ -171,7 +173,7 @@ setdoswindow proc
call doswindow call doswindow
call setwindow call setwindow
popm <dx,cx,ax> popm <dx,cx,ax>
ret VZ_RET
setdoswindow endp setdoswindow endp
;--- Set command line window --- ;--- Set command line window ---
@ -184,7 +186,7 @@ setcmdwindow proc
mov ch,1 mov ch,1
call setwindow call setwindow
call setrefloc call setrefloc
ret VZ_RET
setcmdwindow endp setcmdwindow endp
dosloc1 proc dosloc1 proc
@ -195,7 +197,7 @@ dosloc1 proc
_if a _if a
mov dh,ch mov dh,ch
_endif _endif
ret VZ_RET
dosloc1 endp dosloc1 endp
;--- Save window,location --- ;--- Save window,location ---
@ -235,7 +237,7 @@ chkscreen proc
mov win.py,dh mov win.py,dh
mov dosloc.py,dh mov dosloc.py,dh
mov byte ptr refloc+1,dh mov byte ptr refloc+1,dh
ret VZ_RET
chkscreen endp chkscreen endp
;--- Locate x,y --- ;--- Locate x,y ---
@ -248,7 +250,7 @@ locate proc
call mkwindp call mkwindp
mov dsp.@off,di mov dsp.@off,di
pop di pop di
ret VZ_RET
locate endp locate endp
;--- Get GVRAM work @seg --- ;--- Get GVRAM work @seg ---
@ -259,7 +261,7 @@ getgvseg proc
call ems_savemap call ems_savemap
mov ax,farseg mov ax,farseg
call ems_map call ems_map
ret VZ_RET
getgvseg endp getgvseg endp
;--- Get locate x,y --- ;--- Get locate x,y ---
@ -268,7 +270,7 @@ getgvseg endp
public getloc public getloc
getloc proc getloc proc
mov dx,loc mov dx,loc
ret VZ_RET
getloc endp getloc endp
;--- Set dos location --- ;--- Set dos location ---
@ -278,7 +280,7 @@ setdosloc proc
mov ax,loc mov ax,loc
add ax,word ptr win.px add ax,word ptr win.px
mov dosloc,ax mov dosloc,ax
ret VZ_RET
setdosloc endp setdosloc endp
;--- Set dos cursor --- ;--- Set dos cursor ---
@ -291,7 +293,7 @@ setdoscsr proc
call locate call locate
mov al,CSR_SYS mov al,CSR_SYS
call csron call csron
ret VZ_RET
setdoscsr endp setdoscsr endp
;--- Get graphic char --- ;--- Get graphic char ---
@ -307,7 +309,7 @@ getgrafchr proc
sub al,GRC sub al,GRC
xlat cs:dummy xlat cs:dummy
pop bx pop bx
ret VZ_RET
getgrafchr endp getgrafchr endp
;--- Init window parm. --- ;--- Init window parm. ---
@ -327,7 +329,7 @@ initwind proc
mov dl,ch mov dl,ch
clr dh clr dh
clr ch clr ch
ret VZ_RET
initwind endp initwind endp
;--- Reset image ptr --- ;--- Reset image ptr ---
@ -336,7 +338,7 @@ initwind endp
clrwstack proc clrwstack proc
mov ax,imgstack mov ax,imgstack
mov imagep,ax mov imagep,ax
ret VZ_RET
clrwstack endp clrwstack endp
;--- Set/Get cursor type --- ;--- Set/Get cursor type ---
@ -347,14 +349,14 @@ clrwstack endp
setcsrtype proc setcsrtype proc
mov csr_i,dl mov csr_i,dl
mov csr_o,dh mov csr_o,dh
ret VZ_RET
setcsrtype endp setcsrtype endp
public getcsrtype public getcsrtype
getcsrtype proc getcsrtype proc
mov dl,csr_i mov dl,csr_i
mov dh,csr_o mov dh,csr_o
ret VZ_RET
getcsrtype endp getcsrtype endp
;--- Convert shift-JIS to JIS --- ;--- Convert shift-JIS to JIS ---
@ -365,7 +367,7 @@ getcsrtype endp
cvtjis proc cvtjis proc
mov ax,dx mov ax,dx
mstojis mstojis
ret VZ_RET
cvtjis endp cvtjis endp
endes endes
@ -400,7 +402,7 @@ _else
pop bx pop bx
_endif _endif
pop ax pop ax
ret VZ_RET
setgbank endp setgbank endp
endbs endbs
@ -409,7 +411,7 @@ ENDIF
IFDEF PC98 IFDEF PC98
include scrn98.asm include scrn98.asm
ELSE ELSE
include scrnIBM.asm include scrnibm.asm
ENDIF ENDIF
end end
@ -418,4 +420,3 @@ ENDIF
; End of 'scrn.asm' ; End of 'scrn.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -287,7 +287,7 @@ _if a
add al,'A'-'9'-1 add al,'A'-'9'-1
_endif _endif
add al,'0' add al,'0'
ret VZ_RET
;--- TAB --- ;--- TAB ---
@ -418,7 +418,7 @@ _endif
lend4: pop cx lend4: pop cx
cmp cl,ch ; set Carry cmp cl,ch ; set Carry
popm <es,bp> popm <es,bp>
ret VZ_RET
rightspc: rightspc:
pushm <cx,di> pushm <cx,di>
@ -429,7 +429,7 @@ rightspc:
popm <di,cx> popm <di,cx>
mov ax,SPC mov ax,SPC
rep stosw rep stosw
ret VZ_RET
ctrlatr: ctrlatr:
tstb [bp].blkf tstb [bp].blkf
@ -444,7 +444,7 @@ _ifn s
mov dl,al mov dl,al
pop ax pop ax
_endif _endif
ret VZ_RET
disptext endp disptext endp
@ -481,7 +481,7 @@ lineh0: movhl ax,19,15 ; ##16
_endif _endif
mov lineh,al mov lineh,al
popm <es,ax> popm <es,ax>
ret VZ_RET
dosheight endp dosheight endp
check_20 proc check_20 proc
@ -490,7 +490,7 @@ check_20 proc
mov es,ax mov es,ax
tstb es:[dosscrn_25] tstb es:[dosscrn_25]
popm <es,ax> popm <es,ax>
ret VZ_RET
check_20 endp check_20 endp
;--- Get dos location --- ;--- Get dos location ---
@ -500,7 +500,7 @@ check_20 endp
getdosloc proc getdosloc proc
call getdosloc1 call getdosloc1
mov dosloc,dx mov dosloc,dx
ret VZ_RET
getdosloc1: getdosloc1:
call getdosloc2 call getdosloc2
setrefloc: setrefloc:
@ -508,7 +508,7 @@ setrefloc:
clr dl clr dl
mov refloc,dx mov refloc,dx
pop dx pop dx
ret VZ_RET
getdosloc2: getdosloc2:
push es push es
clr dx clr dx
@ -516,7 +516,7 @@ getdosloc2:
mov dh,es:[dosloc_y] mov dh,es:[dosloc_y]
mov dl,es:[dosloc_x] mov dl,es:[dosloc_x]
pop es pop es
ret VZ_RET
getdosloc endp getdosloc endp
;--- Make screen pointer from x,y --- ;--- Make screen pointer from x,y ---
@ -543,7 +543,7 @@ mkscrnp1:
shl ax,1 shl ax,1
add di,ax add di,ax
pop ax pop ax
ret VZ_RET
mkscrnp endp mkscrnp endp
;--- Set attribute --- ;--- Set attribute ---
@ -553,7 +553,7 @@ mkscrnp endp
setatr proc setatr proc
call getatr call getatr
setatr1:mov dspatr,al setatr1:mov dspatr,al
ret VZ_RET
setatr2: setatr2:
call getatr call getatr
test al,ATTR_REV test al,ATTR_REV
@ -594,12 +594,12 @@ getatr2:
or al,1 or al,1
or al,bl or al,bl
pop bx pop bx
ret VZ_RET
cvtatr: push bx cvtatr: push bx
jmps getatr2 jmps getatr2
getatr1: getatr1:
mov al,dspatr mov al,dspatr
ret VZ_RET
getatr endp getatr endp
;--- Reverse attribute --- ;--- Reverse attribute ---
@ -614,12 +614,12 @@ ELSE
ror dspatr,cl ror dspatr,cl
pop cx pop cx
ENDIF ENDIF
ret VZ_RET
revatr endp revatr endp
undatr proc undatr proc
xor dspatr,ATTR_UL xor dspatr,ATTR_UL
ret VZ_RET
undatr endp undatr endp
;--- Fill attribute --- ;--- Fill attribute ---
@ -638,7 +638,7 @@ fillatr proc
clr ah clr ah
rep stosw rep stosw
popm <es,di,cx> popm <es,di,cx>
ret VZ_RET
fillatr endp fillatr endp
;--- Display char --- ;--- Display char ---
@ -649,11 +649,11 @@ putvram proc
tstb silent tstb silent
_if z _if z
stovram k stovram k
ret VZ_RET
_endif _endif
inc di inc di
inc di inc di
ret VZ_RET
putvram endp putvram endp
public putc,putcw,putspc,gputc public putc,putcw,putspc,gputc
@ -674,7 +674,7 @@ putc1: pushm <dx,di,es>
mov dsp.@off,di mov dsp.@off,di
inc loc.x inc loc.x
putc8: popm <es,di,dx> putc8: popm <es,di,dx>
ret VZ_RET
bslashc: bslashc:
bslash putc1 bslash putc1
putcw: putcw:
@ -714,7 +714,7 @@ abputc proc
mov es,dsp.@seg mov es,dsp.@seg
stovram stovram
pop es pop es
ret VZ_RET
abputc endp abputc endp
;--- Display string --- ;--- Display string ---
@ -838,7 +838,7 @@ puts8:
mov dsp.@off,di mov dsp.@off,di
mov loc.x,cl mov loc.x,cl
popm <es,di,dx,cx> popm <es,di,dx,cx>
ret VZ_RET
puts endp puts endp
;--- Fill space/char --- ;--- Fill space/char ---
@ -854,14 +854,14 @@ _repeat
_break be _break be
call putc call putc
_until _until
ret VZ_RET
fillspc endp fillspc endp
public fillset public fillset
fillset proc fillset proc
mov al,loc.x mov al,loc.x
xchg al,locx0 xchg al,locx0
ret VZ_RET
fillset endp fillset endp
;--- Display vertical line --- ;--- Display vertical line ---
@ -890,7 +890,7 @@ _repeat
_until z _until z
mov dsp.@off,di mov dsp.@off,di
popm <es,di,dx,cx> popm <es,di,dx,cx>
vline9: ret vline9: VZ_RET
vlinec endp vlinec endp
public vputc public vputc
@ -904,7 +904,7 @@ vputc proc
mov dsp.@off,di mov dsp.@off,di
inc loc.x inc loc.x
popm <es,di,dx> popm <es,di,dx>
ret VZ_RET
vputc endp vputc endp
putck proc putck proc
@ -919,12 +919,12 @@ putck proc
putck1: putck1:
mov word ptr es:[di+2],0 mov word ptr es:[di+2],0
putck2: call putvram putck2: call putvram
ret VZ_RET
putck endp putck endp
getgrctbl proc ; ##156.DOSV getgrctbl proc ; ##156.DOSV
mov bx,offset cgroup:grctbl mov bx,offset cgroup:grctbl
ret VZ_RET
getgrctbl endp getgrctbl endp
IFNDEF NO_JIS83 IFNDEF NO_JIS83
@ -954,10 +954,10 @@ yes83: inc sp
mov ax,cs:[bx] mov ax,cs:[bx]
xchg al,ah xchg al,ah
pop bx pop bx
ret VZ_RET
not83: pop ax not83: pop ax
_endif _endif
ret VZ_RET
cvtjis83 endp cvtjis83 endp
cvtjis1 proc cvtjis1 proc
@ -1017,7 +1017,7 @@ _repeat
_until z _until z
popm <es,di,dx,cx> popm <es,di,dx,cx>
cls8: pop bx cls8: pop bx
cls9: ret cls9: VZ_RET
clr1: clr1:
call issilent call issilent
@ -1034,7 +1034,7 @@ clsatr1:
clr ah clr ah
rep stosw rep stosw
popm <di,cx> popm <di,cx>
ret VZ_RET
cls endp cls endp
@ -1084,7 +1084,7 @@ _endif
call movescr call movescr
cld cld
popm <es,ds> popm <es,ds>
ret VZ_RET
rollwind endp rollwind endp
movescr proc movescr proc
@ -1095,7 +1095,7 @@ movescr proc
add di,bx add di,bx
dec dx dec dx
jnz movescr jnz movescr
ret VZ_RET
movescr endp movescr endp
;--- Get dos/current screen --- ;--- Get dos/current screen ---
@ -1109,7 +1109,7 @@ getdosscrn proc
call getscrn call getscrn
mov si,OFF_ATR mov si,OFF_ATR
call getscrn call getscrn
ret VZ_RET
getdosscrn endp getdosscrn endp
IFNDEF NOFILER IFNDEF NOFILER
@ -1122,7 +1122,7 @@ getcurscrn proc
mov si,OFF_ATR mov si,OFF_ATR
call getscrn call getscrn
call chkline call chkline
ret VZ_RET
getcurscrn endp getcurscrn endp
ENDIF ENDIF
@ -1146,7 +1146,7 @@ cpyscrn:
add di,ax add di,ax
pop ax pop ax
popm <es,ds> popm <es,ds>
ret VZ_RET
getscrn endp getscrn endp
;--- Put dos/current screen --- ;--- Put dos/current screen ---
@ -1164,7 +1164,7 @@ putdosscrn proc
call putscrn call putscrn
mov di,OFF_ATR mov di,OFF_ATR
call putscrn call putscrn
ret VZ_RET
putdosscrn endp putdosscrn endp
IFNDEF NOFILER IFNDEF NOFILER
@ -1217,7 +1217,7 @@ _repeat
dec dx dec dx
_until z _until z
popm <es,ds> popm <es,ds>
ret VZ_RET
putcurwind endp putcurwind endp
ENDIF ENDIF
@ -1252,7 +1252,7 @@ _until z
mov es:[di],ax mov es:[di],ax
call ems_loadmap call ems_loadmap
popm <es,ds,di,si,dx,cx> popm <es,ds,di,si,dx,cx>
ret VZ_RET
pushwindow endp pushwindow endp
public popwindow public popwindow
@ -1282,7 +1282,7 @@ _repeat
_until z _until z
popw8: call ems_loadmap popw8: call ems_loadmap
popm <es,ds,di,si,dx,cx> popm <es,ds,di,si,dx,cx>
ret VZ_RET
popwindow endp popwindow endp
initpwind proc initpwind proc
@ -1305,7 +1305,7 @@ initw3: call mkwindp
mov al,ch mov al,ch
clr ch clr ch
clr ah clr ah
ret VZ_RET
initpwind endp initpwind endp
;--- Cursor ON/OFF --- ; ##153.41 ;--- Cursor ON/OFF --- ; ##153.41
@ -1319,7 +1319,7 @@ csron proc
_if s _if s
bios 12h bios 12h
csroff1:mov precsr,CSR_OFF csroff1:mov precsr,CSR_OFF
csroff2:ret csroff2:VZ_RET
_endif _endif
pushm <cx,dx,es> pushm <cx,dx,es>
clr dx clr dx
@ -1396,7 +1396,7 @@ _else
_endif _endif
bios 11h bios 11h
csron8: popm <es,dx,cx> csron8: popm <es,dx,cx>
ret VZ_RET
csron endp csron endp
;--- Under line cursor --- ;--- Under line cursor ---
@ -1448,7 +1448,7 @@ _else
_endif _endif
pop cx pop cx
pop es pop es
ucsr9: ret ucsr9: VZ_RET
undercsr endp undercsr endp
;--- Check 20/25 line --- ;--- Check 20/25 line ---
@ -1481,7 +1481,7 @@ chkline proc
_endif _endif
_endif _endif
_endif _endif
ret VZ_RET
chkline endp chkline endp
;--- Change 20/25 line --- ; ##156.105 ;--- Change 20/25 line --- ; ##156.105
@ -1519,7 +1519,7 @@ _until
movseg ds,ss movseg ds,ss
call resetscrnh call resetscrnh
pop ds pop ds
ret VZ_RET
chgline endp chgline endp
public resetscrnh public resetscrnh
@ -1548,7 +1548,7 @@ _if b
_endif _endif
mov hsplit,al mov hsplit,al
pop ax pop ax
splt9: ret splt9: VZ_RET
resetscrnh endp resetscrnh endp
;--- Wait CRTV --- ;--- Wait CRTV ---
@ -1562,7 +1562,7 @@ vwait1:
vwait2: in al,60h vwait2: in al,60h
and al,20h and al,20h
je vwait2 je vwait2
ret VZ_RET
waitcrtv endp waitcrtv endp
;**************************** ;****************************
@ -1586,7 +1586,7 @@ _repeat
_loop _loop
pop cx pop cx
call sm_sensekey call sm_sensekey
ret VZ_RET
vwait endp vwait endp
public smoothdown public smoothdown
@ -1603,7 +1603,7 @@ _repeat
_while b _while b
clr al clr al
out 76h,al out 76h,al
ret VZ_RET
smoothdown endp smoothdown endp
public smoothup1 public smoothup1
@ -1617,7 +1617,7 @@ _if b
clr al clr al
_endif _endif
out 76h,al out 76h,al
ret VZ_RET
smoothup1 endp smoothup1 endp
vwaith proc vwaith proc
@ -1629,7 +1629,7 @@ vwaith proc
_repeat _repeat
call vwait call vwait
_loop _loop
ret VZ_RET
vwaith endp vwaith endp
public smoothup2 public smoothup2
@ -1651,7 +1651,7 @@ _if z
_until z _until z
_endif _endif
_endif _endif
ret VZ_RET
smoothup2 endp smoothup2 endp
public smootharea public smootharea
@ -1668,7 +1668,7 @@ smootharea proc
call clrline call clrline
mov al,[bp].tw_cy mov al,[bp].tw_cy
dec al dec al
ret VZ_RET
smootharea endp smootharea endp
public initrolc public initrolc
@ -1696,12 +1696,12 @@ _if z
shr al,cl shr al,cl
_endif _endif
mov rolc1,al mov rolc1,al
ret VZ_RET
initrolc endp initrolc endp
ishireso proc ishireso proc
test ss:hardware,ID_PC98Hi test ss:hardware,ID_PC98Hi
ret VZ_RET
ishireso endp ishireso endp
;--- Roll up/down for smooth scroll --- ;--- Roll up/down for smooth scroll ---
@ -1725,7 +1725,7 @@ _ifn z
call move_vram call move_vram
_endif _endif
popm <es,ds> popm <es,ds>
ret VZ_RET
rollup endp rollup endp
public rolldwn public rolldwn
@ -1780,7 +1780,7 @@ _if s
call rdown call rdown
_endif _endif
popm <es,ds> popm <es,ds>
ret VZ_RET
rolldwn endp rolldwn endp
rdown proc rdown proc
@ -1799,7 +1799,7 @@ _ifn z
rep movsw rep movsw
cld cld
_endif _endif
ret VZ_RET
rdown endp rdown endp
move_vram proc move_vram proc
@ -1812,14 +1812,14 @@ move_vram proc
add di,OFF_ATR add di,OFF_ATR
_endif _endif
rep movsw rep movsw
ret VZ_RET
move_vram endp move_vram endp
;--- Reset CRT --- ; ##152.27 ;--- Reset CRT --- ; ##152.27
public resetcrt public resetcrt
resetcrt proc resetcrt proc
ret VZ_RET
resetcrt endp resetcrt endp
;--- Get Indicator Char --- ; ##16 ;--- Get Indicator Char --- ; ##16
@ -1831,7 +1831,7 @@ _ifn e
mov al,87h mov al,87h
add al,cl add al,cl
_endif _endif
ret VZ_RET
get_indichar endp get_indichar endp
endhs endhs
@ -1913,7 +1913,7 @@ _ifn z
_endif _endif
_endif _endif
ENDIF ENDIF
ret VZ_RET
initvram endp initvram endp
;--- Check hardware --- ;--- Check hardware ---
@ -1931,7 +1931,7 @@ _if e
stc stc
_endif _endif
pop es pop es
ret VZ_RET
checkhard endp checkhard endp
endis endis

View File

@ -368,7 +368,7 @@ _if a
add al,'A'-'9'-1 add al,'A'-'9'-1
_endif _endif
add al,'0' add al,'0'
ret VZ_RET
;--- TAB --- ;--- TAB ---
@ -501,7 +501,7 @@ IFDEF DOSV
ENDIF ENDIF
cmp cl,ch ; set Carry cmp cl,ch ; set Carry
popm <es,bp> popm <es,bp>
ret VZ_RET
rightspc: rightspc:
_ifn cxz _ifn cxz
@ -511,7 +511,7 @@ _ifn cxz
stovram stovram
_loop _loop
_endif _endif
ret VZ_RET
ctrlatr: ctrlatr:
tstb [bp].blkf tstb [bp].blkf
@ -526,7 +526,7 @@ _ifn s
mov dl,al mov dl,al
pop ax pop ax
_endif _endif
ret VZ_RET
disptext endp disptext endp
@ -580,7 +580,7 @@ ENDIF
inc al inc al
mov linecnt,al mov linecnt,al
clr cl clr cl
ret VZ_RET
dosheight endp dosheight endp
getscrnsize proc getscrnsize proc
@ -612,7 +612,7 @@ _endif
ENDIF ENDIF
ENDIF ENDIF
mov cs:scrnh,ch mov cs:scrnh,ch
ret VZ_RET
getscrnsize endp getscrnsize endp
;--- Get dos location --- ; ##156.89 ;--- Get dos location --- ; ##156.89
@ -623,7 +623,7 @@ getdosloc proc
call getdosloc1 call getdosloc1
mov dosloc,dx mov dosloc,dx
; mov cs:csrtype,ax ; mov cs:csrtype,ax
ret VZ_RET
getdosloc1: getdosloc1:
call getdosloc2 call getdosloc2
setrefloc: setrefloc:
@ -631,7 +631,7 @@ setrefloc:
clr dl clr dl
mov refloc,dx mov refloc,dx
pop dx pop dx
ret VZ_RET
getdosloc2: getdosloc2:
pushm <bx,cx> pushm <bx,cx>
mov bh,0 mov bh,0
@ -646,7 +646,7 @@ getdosloc2:
;ENDIF ;ENDIF
; mov ax,cx ; mov ax,cx
popm <cx,bx> popm <cx,bx>
ret VZ_RET
getdosloc endp getdosloc endp
;--- Make screen pointer from x,y --- ;--- Make screen pointer from x,y ---
@ -696,7 +696,7 @@ IFDEF DOSV
call vrestore call vrestore
ENDIF ENDIF
pop ax pop ax
ret VZ_RET
mkscrnp endp mkscrnp endp
;--- Set attribute --- ;--- Set attribute ---
@ -706,7 +706,7 @@ mkscrnp endp
setatr proc setatr proc
call getatr call getatr
setatr1:mov dspatr,al setatr1:mov dspatr,al
ret VZ_RET
setatr2: setatr2:
call getatr call getatr
IFDEF J31 IFDEF J31
@ -739,7 +739,7 @@ _endif
xlat dummy xlat dummy
getatr2: getatr2:
pop bx pop bx
ret VZ_RET
cvtatr: push bx cvtatr: push bx
IFDEF JBM IFDEF JBM
jmps cvtatr_x jmps cvtatr_x
@ -751,7 +751,7 @@ ENDIF
jmps getatr2 jmps getatr2
getatr1: getatr1:
mov al,dspatr mov al,dspatr
ret VZ_RET
getatr endp getatr endp
;--- Reverse attribute --- ;--- Reverse attribute ---
@ -766,18 +766,18 @@ ELSE
ror dspatr,cl ror dspatr,cl
pop cx pop cx
ENDIF ENDIF
ret VZ_RET
revatr endp revatr endp
undatr proc undatr proc
xor dspatr,ATTR_UL xor dspatr,ATTR_UL
ret VZ_RET
undatr endp undatr endp
IFDEF J31 IFDEF J31
grphatr proc grphatr proc
xor dspatr,ATTR_GRPH xor dspatr,ATTR_GRPH
ret VZ_RET
grphatr endp grphatr endp
ENDIF ENDIF
@ -824,7 +824,7 @@ IFDEF DOSV
call vrefresh_a call vrefresh_a
ENDIF ENDIF
popm <es,di,cx> popm <es,di,cx>
ret VZ_RET
fillatr endp fillatr endp
;--- Display char --- ;--- Display char ---
@ -835,18 +835,18 @@ putvram proc
tstb silent tstb silent
_if z _if z
stovram k stovram k
ret VZ_RET
_endif _endif
inc di inc di
inc di inc di
ret VZ_RET
putvram endp putvram endp
public putc,putcw,putspc,gputc public putc,putcw,putspc,gputc
putspc: mov al,SPC putspc: mov al,SPC
IFNDEF J31 IFNDEF J31
gputc: gputc:
IFDEF 0 ; JBM IF 0 ; JBM
cmp al,GRC_VR cmp al,GRC_VR
_if z _if z
mov al,' ' mov al,' '
@ -863,7 +863,7 @@ _else
call putc call putc
_endif _endif
_endif _endif
ret VZ_RET
ENDIF ENDIF
ENDIF ENDIF
putc proc putc proc
@ -885,7 +885,7 @@ _ifn z
inc loc.x inc loc.x
_endif _endif
putc8: popm <es,di,dx> putc8: popm <es,di,dx>
ret VZ_RET
bslashc: bslashc:
bslash putc1 bslash putc1
putcw: putcw:
@ -904,7 +904,7 @@ gputc proc
call grphatr call grphatr
call putc call putc
call grphatr call grphatr
ret VZ_RET
gputc endp gputc endp
ENDIF ENDIF
@ -919,7 +919,7 @@ IFDEF DOSV
abputc proc abputc proc
call abputc1 call abputc1
call vrefresh1 call vrefresh1
ret VZ_RET
abputc endp abputc endp
public abputc1 public abputc1
@ -928,7 +928,7 @@ abputc1 proc
mov es,dsp.@seg mov es,dsp.@seg
stovram stovram
pop es pop es
ret VZ_RET
abputc1 endp abputc1 endp
ELSE ELSE
@ -939,7 +939,7 @@ abputc1:
mov es,dsp.@seg mov es,dsp.@seg
stovram stovram
pop es pop es
ret VZ_RET
abputc endp abputc endp
ENDIF ENDIF
@ -1047,7 +1047,7 @@ puts8:
mov dsp.@off,di mov dsp.@off,di
mov loc.x,cl mov loc.x,cl
popm <es,di,dx,cx> popm <es,di,dx,cx>
ret VZ_RET
puts endp puts endp
;--- Fill space/char --- ;--- Fill space/char ---
@ -1063,14 +1063,14 @@ _repeat
_break be _break be
call putc call putc
_until _until
ret VZ_RET
fillspc endp fillspc endp
public fillset public fillset
fillset proc fillset proc
mov al,loc.x mov al,loc.x
xchg al,locx0 xchg al,locx0
ret VZ_RET
fillset endp fillset endp
;--- Display vertical line --- ;--- Display vertical line ---
@ -1114,7 +1114,7 @@ IFDEF DOSV
mov cs:predspoff,di mov cs:predspoff,di
ENDIF ENDIF
popm <es,di,dx,cx> popm <es,di,dx,cx>
vline9: ret vline9: VZ_RET
vlinec endp vlinec endp
public vputc public vputc
@ -1131,7 +1131,7 @@ ENDIF
mov dsp.@off,di mov dsp.@off,di
inc loc.x inc loc.x
popm <es,di,dx> popm <es,di,dx>
ret VZ_RET
vputc endp vputc endp
putck proc putck proc
@ -1173,7 +1173,7 @@ _endif
ENDIF ENDIF
ENDIF ENDIF
putck2: call putvram putck2: call putvram
ret VZ_RET
putck endp putck endp
getgrctbl proc getgrctbl proc
@ -1190,7 +1190,7 @@ _ifn s
_endif _endif
ENDIF ENDIF
ENDIF ENDIF
ret VZ_RET
getgrctbl endp getgrctbl endp
;**************************** ;****************************
@ -1203,13 +1203,13 @@ getgrctbl endp
public cls,clsatr,clrline,clrbtm,cls2 public cls,clsatr,clrline,clrbtm,cls2
clrbtm: clrbtm:
clsatr: clsatr:
ret VZ_RET
IFDEF DOSV IFDEF DOSV
cls2: cls2:
call cls21 call cls21
mov ax,dsp.@off mov ax,dsp.@off
mov cs:predspoff,ax mov cs:predspoff,ax
ret VZ_RET
ENDIF ENDIF
clrline: clrline:
mov ch,1 mov ch,1
@ -1246,7 +1246,7 @@ IFDEF J31
ENDIF ENDIF
popm <es,di,dx,cx> popm <es,di,dx,cx>
cls8: pop bx cls8: pop bx
cls9: ret cls9: VZ_RET
clr1: clr1:
call issilent call issilent
@ -1284,7 +1284,7 @@ _endif
popm <di,cx> popm <di,cx>
clsatr1: clsatr1:
ENDIF ENDIF
ret VZ_RET
cls endp cls endp
@ -1336,7 +1336,7 @@ _else
bios_v 07h bios_v 07h
_endif _endif
popm <es,ds,bp,bx> popm <es,ds,bp,bx>
ret VZ_RET
rollwind endp rollwind endp
IFDEF DOSV IFDEF DOSV
@ -1360,7 +1360,7 @@ _if e
_endif _endif
_endif _endif
_endif _endif
ret VZ_RET
flickoff endp flickoff endp
ENDIF ENDIF
@ -1373,7 +1373,7 @@ getdosscrn proc
mov di,dosscrn mov di,dosscrn
clr si clr si
call getscrn call getscrn
ret VZ_RET
getdosscrn endp getdosscrn endp
IFNDEF NOFILER IFNDEF NOFILER
@ -1437,7 +1437,7 @@ cpyscrn8:
add di,ax add di,ax
pop ax pop ax
popm <es,ds> popm <es,ds>
ret VZ_RET
getscrn endp getscrn endp
;--- Put dos/current screen --- ;--- Put dos/current screen ---
@ -1461,7 +1461,7 @@ IFNDEF J31
ENDIF ENDIF
clrfkey: clrfkey:
mov fkeymode,0 mov fkeymode,0
pdos9: ret pdos9: VZ_RET
putdosscrn endp putdosscrn endp
IFNDEF NOFILER IFNDEF NOFILER
@ -1473,7 +1473,7 @@ putcurscrn proc
IFDEF DOSV IFDEF DOSV
call putscrn call putscrn
call vrefreshscrn call vrefreshscrn
ret VZ_RET
ENDIF ENDIF
putcurscrn endp putcurscrn endp
ENDIF ENDIF
@ -1621,7 +1621,7 @@ ENDIF
dec dx dec dx
_until z _until z
popm <es,ds> popm <es,ds>
ret VZ_RET
putwind1 endp putwind1 endp
;--- Push/Pop window --- ;--- Push/Pop window ---
@ -1661,7 +1661,7 @@ IFDEF SHADOW
ENDIF ENDIF
call ems_loadmap call ems_loadmap
popm <es,ds,di,si,dx,cx> popm <es,ds,di,si,dx,cx>
ret VZ_RET
pushwindow endp pushwindow endp
public popwindow public popwindow
@ -1705,7 +1705,7 @@ ENDIF
_until z _until z
popw8: call ems_loadmap popw8: call ems_loadmap
popm <es,ds,di,si,dx,cx> popm <es,ds,di,si,dx,cx>
ret VZ_RET
popwindow endp popwindow endp
initpwind proc initpwind proc
@ -1732,7 +1732,7 @@ initw3: call mkwindp
mov al,ch mov al,ch
clr ch clr ch
clr ah clr ah
ret VZ_RET
initpwind endp initpwind endp
;--- Draw Shadow --- ;--- Draw Shadow ---
@ -1780,7 +1780,7 @@ IFNDEF US
ENDIF ENDIF
add cx,ax add cx,ax
bios_v 0FFh bios_v 0FFh
shadw9: ret shadw9: VZ_RET
drawshadow endp drawshadow endp
vshadow proc vshadow proc
@ -1794,7 +1794,7 @@ ENDIF
add cx,3 add cx,3
bios_v 0FFh bios_v 0FFh
popm <di,cx,ax> popm <di,cx,ax>
ret VZ_RET
vshadow endp vshadow endp
ENDIF ENDIF
@ -1822,7 +1822,7 @@ _if ae
sub di,cx sub di,cx
sub di,cx sub di,cx
_endif _endif
ret VZ_RET
chkkanjilow endp chkkanjilow endp
ENDIF ENDIF
@ -1881,7 +1881,7 @@ plin8:
and ax,1FFFh and ax,1FFFh
mov cs:bmap.@off,ax mov cs:bmap.@off,ax
popm <di,dx,cx,ax> popm <di,dx,cx,ax>
ret VZ_RET
putline endp putline endp
;--- Redraw a line (J31 only) --- ;--- Redraw a line (J31 only) ---
@ -1911,7 +1911,7 @@ _endif
jcxz rlin8 jcxz rlin8
_loop _loop
rlin8: rlin8:
ret VZ_RET
redrawline endp redrawline endp
ENDIF ENDIF
@ -2018,7 +2018,7 @@ csroff2:
ENDIF ENDIF
ENDIF ENDIF
csroff1: csroff1:
ret VZ_RET
csron endp csron endp
;--- Display Word Cursor in DOSV --- ;--- Display Word Cursor in DOSV ---
@ -2038,7 +2038,7 @@ _ifn z
call vrefresh2 call vrefresh2
_endif _endif
popm <es,di> popm <es,di>
ret VZ_RET
clrWcsr endp clrWcsr endp
chkWcsr proc chkWcsr proc
@ -2063,7 +2063,7 @@ _if z
_endif _endif
popm <es,di> popm <es,di>
_endif _endif
ret VZ_RET
chkWcsr endp chkWcsr endp
ENDIF ENDIF
@ -2105,7 +2105,7 @@ _ifn s
_endif _endif
call csron call csron
blcsr8: popm <es,cx> blcsr8: popm <es,cx>
blcsr9: ret blcsr9: VZ_RET
blinkcsr endp blinkcsr endp
ENDIF ENDIF
@ -2206,7 +2206,7 @@ _endif
pop cx pop cx
ENDIF ENDIF
pop es pop es
ucsr9: ret ucsr9: VZ_RET
undercsr endp undercsr endp
;--- Control Video Mode --- ;--- Control Video Mode ---
@ -2222,7 +2222,7 @@ _if ae
mov al,videomode mov al,videomode
_endif _endif
ENDIF ENDIF
ret VZ_RET
loadVM endp loadVM endp
seteditVM proc seteditVM proc
@ -2258,7 +2258,7 @@ ENDIF
;_ifn e ;_ifn e
; stc ; stc
;_endif ;_endif
ret VZ_RET
seteditVM endp seteditVM endp
setdosVM proc setdosVM proc
@ -2277,7 +2277,7 @@ _ifn e
_endif _endif
call dosheight call dosheight
; mov dosh,ch ; ##157.149 ; mov dosh,ch ; ##157.149
ret VZ_RET
setdosVM endp setdosVM endp
public chkline1 public chkline1
@ -2294,7 +2294,7 @@ _if z
stc stc
_endif _endif
_endif _endif
ret VZ_RET
chkline1 endp chkline1 endp
is50line proc is50line proc
@ -2307,9 +2307,9 @@ _if ae
jae is50 jae is50
_endif _endif
clc clc
ret VZ_RET
is50: stc is50: stc
ret VZ_RET
is50line endp is50line endp
clrbottom proc clrbottom proc
@ -2320,7 +2320,7 @@ clrbottom proc
mov al,ATR_DOS mov al,ATR_DOS
call setatr call setatr
call cls2 call cls2
ret VZ_RET
clrbottom endp clrbottom endp
IFDEF DOSV IFDEF DOSV
@ -2328,7 +2328,7 @@ shiftoff proc
call isDOSV call isDOSV
bios_k 14h,1 bios_k 14h,1
bios_v 1Dh,1 bios_v 1Dh,1
ret VZ_RET
shiftoff endp shiftoff endp
shiftchk proc shiftchk proc
@ -2338,7 +2338,7 @@ shiftchk proc
bios_v 1Dh,2 bios_v 1Dh,2
add ch,bl add ch,bl
pop bx pop bx
ret VZ_RET
shiftchk endp shiftchk endp
ENDIF ENDIF
@ -2366,7 +2366,7 @@ mode03:
_endif _endif
call seteditVM1 call seteditVM1
call clrfkey call clrfkey
ret VZ_RET
chgline endp chgline endp
public resetscrnh public resetscrnh
@ -2382,7 +2382,7 @@ resetscrnh proc
mov hsplit,ch mov hsplit,ch
call setdoswindow call setdoswindow
;_endif ;_endif
ret VZ_RET
resetscrnh endp resetscrnh endp
;--- Wait CRTV --- ;--- Wait CRTV ---
@ -2399,7 +2399,7 @@ vwait2: in al,dx
and al,08h and al,08h
jnz vwait2 jnz vwait2
pop dx pop dx
ret VZ_RET
waitcrtv endp waitcrtv endp
;--- Check DBCS mode --- ; ##156.132 ;--- Check DBCS mode --- ; ##156.132
@ -2434,7 +2434,7 @@ _endif
popm <es,ds,bp> popm <es,ds,bp>
ENDIF ENDIF
ENDIF ENDIF
ret VZ_RET
checkDBCS endp checkDBCS endp
;--- Smooth scroll sub --- ;--- Smooth scroll sub ---
@ -2457,15 +2457,15 @@ _repeat
call waitcrtv call waitcrtv
_loop _loop
smoothup2: smoothup2:
ret VZ_RET
initrolc: initrolc:
mov rolc1,al mov rolc1,al
ret VZ_RET
smootharea: smootharea:
mov al,[bp].tw_cy mov al,[bp].tw_cy
ret VZ_RET
public rollup,rolldwn public rollup,rolldwn
rollup proc rollup proc
@ -2482,7 +2482,7 @@ smroll1:
clr dl clr dl
mov ah,ATR_TXT mov ah,ATR_TXT
call rollwind call rollwind
ret VZ_RET
rollup endp rollup endp
IFDEF J31 IFDEF J31
@ -2523,7 +2523,7 @@ _ifn z
_endif _endif
and di,0FFFh and di,0FFFh
and cs:bmap.@off,1FFFh and cs:bmap.@off,1FFFh
ret VZ_RET
stov1: stov1:
stovram1: stovram1:
stosw stosw
@ -2562,7 +2562,7 @@ stov9w: inc cs:bmap.@off
stov9: inc cs:bmap.@off stov9: inc cs:bmap.@off
and cs:bmap.@off,1FFFh and cs:bmap.@off,1FFFh
popm <es,ds,di,si,cx,bx,ax> popm <es,ds,di,si,cx,bx,ax>
ret VZ_RET
;--- Imaging Space --- ;--- Imaging Space ---
;--> ;-->
@ -2662,7 +2662,7 @@ _ifn z
not al not al
_endif _endif
stosb stosb
ret VZ_RET
ibold3: not al ibold3: not al
jmp ibold2 jmp ibold2
@ -2854,7 +2854,7 @@ _ifn z
_endif _endif
_endif _endif
popm <es,bx> popm <es,bx>
ret VZ_RET
ctrl_froll endp ctrl_froll endp
ENDIF ENDIF
@ -2894,7 +2894,7 @@ _else
stosw stosw
_endif _endif
popm <dx,ax> popm <dx,ax>
ret VZ_RET
_stovram endp _stovram endp
; シフトJISコードの連続コードへの変換 ; シフトJISコードの連続コードへの変換
@ -2934,7 +2934,7 @@ _else
_endif _endif
_endif ; === 外字対応終了 _endif ; === 外字対応終了
popm <dx,cx,bx> popm <dx,cx,bx>
ret VZ_RET
resident_ID = 0A2E7h ; 常駐チェック用ID(int 2Fhで使用) resident_ID = 0A2E7h ; 常駐チェック用ID(int 2Fhで使用)
; cursor.com との通信用 ; cursor.com との通信用
@ -2957,7 +2957,7 @@ _if ae
popm <es, ds, di, si, dx, cx, bx, ax> popm <es, ds, di, si, dx, cx, bx, ax>
_endif _endif
_endif _endif
ret VZ_RET
jbm_bslash endp jbm_bslash endp
ENDIF ENDIF
@ -2974,7 +2974,7 @@ _if z
add sp,2 add sp,2
clc clc
_endif _endif
ret VZ_RET
isDOSV endp isDOSV endp
public vrestore public vrestore
@ -2991,7 +2991,7 @@ _ifn e
_endif _endif
pop ax pop ax
mov cs:predspoff,di mov cs:predspoff,di
ret VZ_RET
vrestore endp vrestore endp
public vrefresh public vrefresh
@ -3025,7 +3025,7 @@ vref3: mov es,dsp.@seg
bios_v 0FFh bios_v 0FFh
mov cs:vmdf,FALSE mov cs:vmdf,FALSE
vref8: popm <es,di,cx,ax> vref8: popm <es,di,cx,ax>
vref9: ret vref9: VZ_RET
vrefreshscrn endp vrefreshscrn endp
vrefresh1 proc vrefresh1 proc
@ -3042,12 +3042,12 @@ vrefresh2 proc
mov cx,2 mov cx,2
bios_v 0FFh bios_v 0FFh
pop cx pop cx
ret VZ_RET
vrefresh2 endp vrefresh2 endp
ELSE ELSE
public vrestore public vrestore
vrestore: ret vrestore: VZ_RET
ENDIF ENDIF
IFDEF IBM IFDEF IBM
@ -3099,7 +3099,7 @@ IFDEF DOSV
call shiftchk call shiftchk
mov cs:dosSFT,ch mov cs:dosSFT,ch
ENDIF ENDIF
ret VZ_RET
checkVM endp checkVM endp
ENDIF ENDIF
@ -3108,7 +3108,7 @@ ENDIF
public resetcrt public resetcrt
resetcrt proc resetcrt proc
ret VZ_RET
resetcrt endp resetcrt endp
IFDEF IBM IFDEF IBM
@ -3123,7 +3123,7 @@ _if e
clr bl clr bl
bios_v 10h,3 bios_v 10h,3
_endif _endif
ret VZ_RET
blinkmode endp blinkmode endp
ENDIF ENDIF
@ -3147,7 +3147,7 @@ _ifn e
bios_v 10h,2 bios_v 10h,2
_endif _endif
_endif _endif
ret VZ_RET
setpalette endp setpalette endp
ENDIF ENDIF
@ -3174,14 +3174,14 @@ _ifn e
_endif _endif
_endif _endif
pop cx pop cx
ret VZ_RET
setpalette endp setpalette endp
ENDIF ENDIF
getVM proc getVM proc
bios_v 0Fh bios_v 0Fh
ret VZ_RET
getVM endp getVM endp
;--- Get Indicator Char --- ; ##16 ;--- Get Indicator Char --- ; ##16
@ -3193,7 +3193,7 @@ get_indichar proc
_if b _if b
mov al,0DDh mov al,0DDh
_endif _endif
ret VZ_RET
get_indichar endp get_indichar endp
endhs endhs
@ -3295,7 +3295,7 @@ IFDEF J31 ; ##153.55
or ch,al or ch,al
ENDIF ENDIF
mov cs:csrtype,cx mov cs:csrtype,cx
ret VZ_RET
initvram endp initvram endp
;--- Check hardware --- ;--- Check hardware ---
@ -3337,7 +3337,7 @@ IFDEF JBM
je chkh9 je chkh9
ENDIF ENDIF
stc stc
chkh9: ret chkh9: VZ_RET
checkhard endp checkhard endp
endis endis
@ -3346,4 +3346,3 @@ checkhard endp
; End of 'scrnIBM.asm' ; End of 'scrnIBM.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -103,7 +103,7 @@ _repeat
_until c _until c
rlup8: call rlend rlup8: call rlend
rlup9: clc rlup9: clc
ret VZ_RET
se_smoothdn endp se_smoothdn endp
;--- Smooth scroll Up --- ;--- Smooth scroll Up ---
@ -154,7 +154,7 @@ _endif
jnc rldn2 jnc rldn2
rldn8: call rlend rldn8: call rlend
rldn9: clc rldn9: clc
ret VZ_RET
se_smoothup endp se_smoothup endp
;--- Smooth scroll init --- ;--- Smooth scroll init ---
@ -180,7 +180,7 @@ _if s
clr dx clr dx
call undercsr call undercsr
_endif _endif
ret VZ_RET
initrol endp initrol endp
initrol1 proc initrol1 proc
@ -195,7 +195,7 @@ irol2: mov defatr,ATR_TXT
mov cx,word ptr [bp].tw_sx mov cx,word ptr [bp].tw_sx
call clsatr call clsatr
_endif _endif
ret VZ_RET
initrol1 endp initrol1 endp
;--- Common sub --- ;--- Common sub ---
@ -203,7 +203,7 @@ initrol1 endp
bpact proc bpact proc
mov bp,w_act mov bp,w_act
mov ds,[bp].ttops mov ds,[bp].ttops
ret VZ_RET
bpact endp bpact endp
bpback proc bpback proc
@ -212,7 +212,7 @@ _ifn b
mov bp,w_back mov bp,w_back
mov ds,[bp].ttops mov ds,[bp].ttops
_endif _endif
ret VZ_RET
bpback endp bpback endp
rlend proc rlend proc
@ -229,7 +229,7 @@ disp4: mov al,[bp].wy ; ##101.23
mov [bp].wys,al mov [bp].wys,al
call scrout_fx call scrout_fx
call flush_key ; ##151.09 call flush_key ; ##151.09
ret VZ_RET
rlend endp rlend endp
dsppole proc dsppole proc
@ -239,7 +239,7 @@ _if ae
mov ch,1 mov ch,1
call disppole call disppole
_endif _endif
ret VZ_RET
dsppole endp dsppole endp
;--- Scroll up sub --- ;--- Scroll up sub ---
@ -251,7 +251,7 @@ inisup proc
call setbtmnumb call setbtmnumb
mov [bp].w3,dx mov [bp].w3,dx
clz clz
isup9: ret isup9: VZ_RET
inisup endp inisup endp
nxtsup proc nxtsup proc
@ -260,7 +260,7 @@ nxtsup proc
mov [bp].tnow,si mov [bp].tnow,si
mov [bp].tnxt,si mov [bp].tnxt,si
mov [bp].tcp,si mov [bp].tcp,si
ret VZ_RET
nxtsup endp nxtsup endp
dspsup proc dspsup proc
@ -271,7 +271,7 @@ dspsup proc
call tout call tout
mov [bp].tbtm,si mov [bp].tbtm,si
mov [bp].w3,dx mov [bp].w3,dx
ret VZ_RET
dspsup endp dspsup endp
;--- Scroll down sub --- ;--- Scroll down sub ---
@ -284,7 +284,7 @@ inisdn proc
call sethomnumb call sethomnumb
mov [bp].w3,dx mov [bp].w3,dx
clz clz
isdn9: ret isdn9: VZ_RET
inisdn endp inisdn endp
nxtsdn proc nxtsdn proc
@ -302,7 +302,7 @@ nsdn1: dec [bp].w3
_endif _endif
call prefld call prefld
mov [bp].thom,si mov [bp].thom,si
ret VZ_RET
nxtsdn endp nxtsdn endp
dspsdn proc dspsdn proc

View File

@ -30,6 +30,7 @@ _printwk ends
; SS:BX :parameter top ptr ; SS:BX :parameter top ptr
; $ld_strseg :load %s str seg to DS ; $ld_strseg :load %s str seg to DS
; usage :" %[-][0][n][,][l]{d|u|x|c|s} " ; usage :" %[-][0][n][,][l]{d|u|x|c|s} "
sprintf proc
$sprintf proc $sprintf proc
pushm <bx,cx,dx,si,bp,ds,es> pushm <bx,cx,dx,si,bp,ds,es>
@ -52,7 +53,7 @@ prnt8:
stosb stosb
add sp,type _printwk add sp,type _printwk
popm <es,ds,bp,si,dx,cx,bx> popm <es,ds,bp,si,dx,cx,bx>
ret VZ_RET
$sprintf endp $sprintf endp
;----- Analyze format ----- ;----- Analyze format -----
@ -96,7 +97,7 @@ prnt_form proc
je prnt_str je prnt_str
cmp dl,'c' cmp dl,'c'
je prnt_chr je prnt_chr
ret VZ_RET
;----- %c : character ----- ;----- %c : character -----
@ -111,7 +112,7 @@ prnt_chr:
stosw stosw
_endif _endif
_endif _endif
ret VZ_RET
;----- %s : string ----- ;----- %s : string -----
@ -145,7 +146,7 @@ pstr1:
mov al,SPC mov al,SPC
rep stosb rep stosb
pstr8: popm <ds,si> pstr8: popm <ds,si>
ret VZ_RET
;----- %x,%u,%d : number ----- ;----- %x,%u,%d : number -----
;(special thanks to Oh!No! & moritan) ;(special thanks to Oh!No! & moritan)
@ -233,7 +234,7 @@ _until z
call prnt_fill call prnt_fill
_endif _endif
popm <si,bx> popm <si,bx>
ret VZ_RET
;----- Fill space or '0' ----- ;----- Fill space or '0' -----
@ -251,7 +252,7 @@ prnt_fill proc
rep stosb rep stosb
_endif _endif
pop cx pop cx
ret VZ_RET
prnt_fill endp prnt_fill endp
prnt_form endp prnt_form endp
@ -284,10 +285,10 @@ _repeat
add dx,ax add dx,ax
lodsb lodsb
_until _until
ret VZ_RET
scandeci endp scandeci endp
sprintf endp
;------------------------------------------------ ;------------------------------------------------
; End of sprintf.inc ; End of sprintf.inc
;------------------------------------------------ ;------------------------------------------------


View File

@ -116,7 +116,7 @@ O_UPDATE equ 2
IFDEF STDSEG IFDEF STDSEG
cgroup group _TEXT,_DATA cgroup group _TEXT,_DATA
_TEXT segment byte public 'TEXT' _TEXT segment word public 'TEXT'
_TEXT ends _TEXT ends
_DATA segment word public 'DATA' _DATA segment word public 'DATA'
_DATA ends _DATA ends
@ -292,8 +292,27 @@ rcrm macro reg,imm
shiftm rcr,reg,imm shiftm rcr,reg,imm
endm endm
echg macro reg
ifidni <reg>, <ax>
xchg ah, al
endif
ifidni <reg>, <bx>
xchg bh, bl
endif
ifidni <reg>, <cx>
xchg ch, cl
endif
ifidni <reg>, <dx>
xchg dh, dl
endif
endm
movhl macro wreg,imm_h,imm_l movhl macro wreg,imm_h,imm_l
mov wreg,((imm_h) shl 8)+((imm_l) and 0FFh) mov wreg,((imm_h) shl 8)+((imm_l) and 0FFh)
; xor wreg, wreg
; or wreg, imm_h
; echg wreg
; or wreg, imm_l
endm endm
bios macro cmd bios macro cmd
@ -504,4 +523,3 @@ ENDIF
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************
.list .list


View File

@ -131,7 +131,7 @@ schoption db "WCZXI"
;----- VWX API ----- ;----- VWX API -----
IFDEF REXP IFDEF REXP
GDATA vwxapi dd, 0 GDATA vwxapi, dd, 0
public check_vwx public check_vwx
check_vwx proc check_vwx proc
@ -155,7 +155,7 @@ exist_vwx: or extsw,ESW_VWX
_endif _endif
_endif _endif
pop es pop es
ret VZ_RET
check_vwx endp check_vwx endp
ENDIF ENDIF
@ -170,7 +170,7 @@ windgetstr proc
mov cx,STRSZ mov cx,STRSZ
call windgets1 call windgets1
mov sysmode0,SYS_SEDIT mov sysmode0,SYS_SEDIT
ret VZ_RET
windgetstr endp windgetstr endp
;--- Set target ptr --- ;--- Set target ptr ---
@ -193,7 +193,7 @@ settrgtp proc
jmps stgt4 jmps stgt4
stgt3: mov di,[bp].tend stgt3: mov di,[bp].tend
stgt4: pop dx stgt4: pop dx
ret VZ_RET
settrgtp endp settrgtp endp
;--- Search next string --- ;--- Search next string ---
@ -264,7 +264,7 @@ schs4:
pop bx pop bx
stc stc
_endif _endif
ret VZ_RET
_endif _endif
ENDIF ENDIF
mov bp,schstr mov bp,schstr
@ -374,7 +374,7 @@ _endif
stc stc
schs_x: pop bp schs_x: pop bp
schs9: pop bx schs9: pop bx
ret VZ_RET
sch_ic: sch_ic:
pushm <di,cx> pushm <di,cx>
repne scasb repne scasb
@ -386,12 +386,12 @@ sch_ic:
sub al,'a'-'A' sub al,'a'-'A'
repne scasb repne scasb
stz stz
ret VZ_RET
schic1: schic1:
popm <cx,di> popm <cx,di>
sub al,'a'-'A' sub al,'a'-'A'
repne scasb repne scasb
ret VZ_RET
search1 endp search1 endp
@ -420,7 +420,7 @@ replace1 proc
mov si,di mov si,di
popm <ds,cx> popm <ds,cx>
clc clc
repl9: ret repl9: VZ_RET
replace1 endp replace1 endp
;--- Input search string --- ;--- Input search string ---
@ -433,7 +433,7 @@ se_setstr proc
_ifn c _ifn c
call setretp call setretp
_endif _endif
ret VZ_RET
se_setstr endp se_setstr endp
setstr2 proc setstr2 proc
@ -444,13 +444,13 @@ _if c
_endif _endif
mov strf,FALSE mov strf,FALSE
stc stc
ret VZ_RET
_endif _endif
mov pagm,PG_STRSCH mov pagm,PG_STRSCH
mov strf,TRUE mov strf,TRUE
call dispstr call dispstr
clc clc
ret VZ_RET
setstr2 endp setstr2 endp
inputstr proc inputstr proc
@ -462,7 +462,7 @@ inputstr proc
stc stc
jcxz stst9 jcxz stst9
call cvtschstr call cvtschstr
stst9: ret stst9: VZ_RET
inputstr endp inputstr endp
;----- Set title seach string ----- ;----- Set title seach string -----
@ -500,7 +500,7 @@ se_settsstr proc
_endif _endif
mov [bp].tsstr,si mov [bp].tsstr,si
_endif _endif
ret VZ_RET
se_settsstr endp se_settsstr endp
assume ds:cgroup assume ds:cgroup
@ -527,7 +527,7 @@ _loop
clr al clr al
stosb stosb
pop ds pop ds
ret VZ_RET
set_schopt endp set_schopt endp
set_schflag proc set_schflag proc
@ -539,7 +539,7 @@ set_schflag proc
shr al,cl shr al,cl
or al,dh or al,dh
mov schflag,al mov schflag,al
ret VZ_RET
set_schflag endp set_schflag endp
scan_optchar proc scan_optchar proc
@ -570,7 +570,7 @@ _repeat
or ah,al or ah,al
_until _until
scoptc9: mov si,bx scoptc9: mov si,bx
ret VZ_RET
scan_optchar endp scan_optchar endp
;--- Convert string --- ;--- Convert string ---
@ -687,7 +687,7 @@ _if z
stc stc
_endif _endif
pop ds pop ds
ret VZ_RET
cvtstr endp cvtstr endp
;--- Convert search string --- ;--- Convert search string ---
@ -764,7 +764,7 @@ _endif
ENDIF ENDIF
clc clc
pop ds pop ds
ret VZ_RET
cvtschstr endp cvtschstr endp
assume ds:nothing assume ds:nothing
@ -803,7 +803,7 @@ schini1:
call getnum call getnum
mov cx,strln mov cx,strln
mov si,[bp].tcp mov si,[bp].tcp
ret VZ_RET
schini endp schini endp
public schfwd,schbwd public schfwd,schbwd
@ -846,7 +846,7 @@ srch9: pushf
mov si,[bp].tcp mov si,[bp].tcp
call scrout_cp call scrout_cp
popf popf
ret VZ_RET
srchx: mov dl,M_XFOUND srchx: mov dl,M_XFOUND
call dispmsg call dispmsg
@ -861,7 +861,7 @@ totopline:
je attop9 je attop9
inc si inc si
inc si inc si
attop9: ret attop9: VZ_RET
toendline: toendline:
cmp si,[bp].ttop cmp si,[bp].ttop
@ -872,7 +872,7 @@ toendline:
je atend9 je atend9
dec si dec si
dec si dec si
atend9: ret atend9: VZ_RET
;--- Replace string --- ;--- Replace string ---
@ -880,7 +880,7 @@ atend9: ret
se_replace proc se_replace proc
chgs1: call inputstr chgs1: call inputstr
jnc chgs11 jnc chgs11
chgs9: ret chgs9: VZ_RET
chgs11: chgs11:
mov dl,W_REPLACE mov dl,W_REPLACE
mov al,GETS_INIT mov al,GETS_INIT
@ -1025,9 +1025,9 @@ se_copystr proc
mov al,CM_SCOPY mov al,CM_SCOPY
call ledit call ledit
clc clc
ret VZ_RET
copys9: stc copys9: stc
ret VZ_RET
se_copystr endp se_copystr endp
;--- Copy word to buffer --- ;--- Copy word to buffer ---
@ -1072,7 +1072,7 @@ _ifn cxz
_endif _endif
clc clc
getw9: pop ds getw9: pop ds
ret VZ_RET
getblk: getblk:
mov cx,[bp].bofs mov cx,[bp].bofs
@ -1137,7 +1137,7 @@ rtag2: stosb
_while b _while b
stc stc
rtag9: pop ds rtag9: pop ds
ret VZ_RET
rt_chkpath: rt_chkpath:
tst ah tst ah
@ -1198,10 +1198,10 @@ isnamechar proc
popm <di,cx> popm <di,cx>
je fn_yes je fn_yes
clc clc
ret VZ_RET
fn_yesc: mov ah,TRUE fn_yesc: mov ah,TRUE
fn_yes: stc fn_yes: stc
ret VZ_RET
isnamechar endp isnamechar endp
;--- Search 'KAKKO' --- ;--- Search 'KAKKO' ---
@ -1309,7 +1309,7 @@ _until
isknj8: stz isknj8: stz
isknj9: pop bx isknj9: pop bx
pop si pop si
ret VZ_RET
endcs endcs
end end
@ -1319,4 +1319,4 @@ isknj9: pop bx
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
; VWX support by wing ; VWX support by wing
;**************************** ;****************************
 

View File

@ -137,7 +137,7 @@ swapo8:
sub cx,si sub cx,si
call memcopy call memcopy
_endif _endif
ret VZ_RET
swapout endp swapout endp
;----- Swap out CS & SS ----- ;----- Swap out CS & SS -----
@ -150,7 +150,7 @@ swapout_cs proc
tstb usefar tstb usefar
_ifn z _ifn z
stc stc
ret VZ_RET
_endif _endif
push es push es
mov ax,offset cgroup:cstop mov ax,offset cgroup:cstop
@ -193,7 +193,7 @@ swapout_cs proc
_endif _endif
pop bx pop bx
pop es pop es
ret VZ_RET
swapout_cs endp swapout_cs endp
;----- Swap out Text ----- ;----- Swap out Text -----
@ -225,7 +225,7 @@ _repeat
cmp si,di cmp si,di
_while b _while b
mov textslots,cx mov textslots,cx
ret VZ_RET
swapout_text endp swapout_text endp
;----- Swap out block ----- ;----- Swap out block -----
@ -245,7 +245,7 @@ swapout_blk proc
mov [bx].xs_handle,ax mov [bx].xs_handle,ax
call xmem_write call xmem_write
_endif _endif
ret VZ_RET
swapout_blk endp swapout_blk endp
endes endes
@ -265,7 +265,7 @@ swapin_blk proc
mov cx,ax mov cx,ax
mov ax,[bx].xs_handle mov ax,[bx].xs_handle
call xmem_read call xmem_read
ret VZ_RET
swapin_blk endp swapin_blk endp
;----- Swap in CS & SS ----- ;----- Swap in CS & SS -----
@ -325,7 +325,7 @@ swapin8:
call memcopy call memcopy
_endif _endif
clc clc
swapin9: ret swapin9: VZ_RET
swapin_es endp swapin_es endp
endbs endbs
@ -340,7 +340,7 @@ swapin_cs proc
call swapclose call swapclose
mov bx,offset cgroup:xslot_ss mov bx,offset cgroup:xslot_ss
call swapclose call swapclose
ret VZ_RET
swapin_cs endp swapin_cs endp
;----- Swap in text ----- ;----- Swap in text -----
@ -374,7 +374,7 @@ _repeat
pop cx pop cx
add bx,type _swapslot add bx,type _swapslot
_loop _loop
ret VZ_RET
swapin_text endp swapin_text endp
;--- Close Swap buffer --- ;--- Close Swap buffer ---
@ -383,7 +383,7 @@ swapclose proc
clr ax clr ax
xchg ax,[bx].xs_handle xchg ax,[bx].xs_handle
call xmem_free call xmem_free
ret VZ_RET
swapclose endp swapclose endp
;--- Change Stack --- ;--- Change Stack ---
@ -429,7 +429,7 @@ set_ss: mov ss,ax
mov cs:save_ds,ds mov cs:save_ds,ds
mov es,cs:loseg mov es,cs:loseg
mov es:save_ds,ds mov es:save_ds,ds
ret VZ_RET
stack_ss endp stack_ss endp
move_wseg proc move_wseg proc
@ -438,7 +438,7 @@ move_wseg proc
mov cx,offset cgroup:parbuf mov cx,offset cgroup:parbuf
sub cx,si sub cx,si
call memcopy call memcopy
ret VZ_RET
move_wseg endp move_wseg endp
endes endes
@ -481,7 +481,7 @@ _endif
msdos F_REALLOC msdos F_REALLOC
swapo8: call allocTPA swapo8: call allocTPA
pop es pop es
ret VZ_RET
swapout endp swapout endp
endes endes
@ -500,7 +500,7 @@ memcopy proc
_if c _if c
movsb movsb
_endif _endif
ret VZ_RET
memcopy endp memcopy endp
endbs endbs

View File

@ -42,7 +42,7 @@ ENDIF
extrn rends :word extrn rends :word
extrn syssw :word extrn syssw :word
extrn tbsize :word extrn tbsize :word
extrn tmpnamep :word ; extrn tmpnamep :word
extrn w_busy :word extrn w_busy :word
extrn w_free :word extrn w_free :word
extrn tmpslot :word extrn tmpslot :word
@ -70,7 +70,7 @@ ENDIF
extrn initblk :near extrn initblk :near
extrn isviewmode :near extrn isviewmode :near
extrn jumpnum :near extrn jumpnum :near
extrn killmemtmp :near ; extrn killmemtmp :near
extrn ld_wact :near extrn ld_wact :near
extrn makefulpath :near extrn makefulpath :near
extrn maptext :near extrn maptext :near
@ -79,7 +79,7 @@ ENDIF
extrn ofs2seg :near extrn ofs2seg :near
extrn parsepath :near extrn parsepath :near
extrn ptradj :near extrn ptradj :near
extrn readmemtmp :near ; extrn readmemtmp :near
extrn restcp :near extrn restcp :near
extrn scannum :near extrn scannum :near
extrn searchfile :near extrn searchfile :near
@ -109,7 +109,7 @@ ENDIF
extrn wndsel :near extrn wndsel :near
extrn wrdcpy :near extrn wrdcpy :near
extrn wrdicmp :near extrn wrdicmp :near
extrn writememtmp :near ; extrn writememtmp :near
extrn xmem_alloc :near extrn xmem_alloc :near
extrn xmem_free :near extrn xmem_free :near
extrn xmem_read :near extrn xmem_read :near
@ -162,7 +162,7 @@ _if z
mov fh_r,ax mov fh_r,ax
_endif _endif
opnr_x: pop ds opnr_x: pop ds
ret VZ_RET
open_r endp open_r endp
;--- Open for write --- ;--- Open for write ---
@ -192,7 +192,7 @@ _ifn c
mov fh_w,ax mov fh_w,ax
_endif _endif
pop ds pop ds
ret VZ_RET
open_w endp open_w endp
;--- Open for append --- ;--- Open for append ---
@ -222,7 +222,7 @@ opna1: clr cx
not cx not cx
mov dx,cx mov dx,cx
msdos F_SEEK,2 msdos F_SEEK,2
opna9: ret opna9: VZ_RET
open_a endp open_a endp
assume ds:nothing assume ds:nothing
@ -236,7 +236,7 @@ close_r proc
_ifn z _ifn z
msdos F_CLOSE msdos F_CLOSE
_endif _endif
ret VZ_RET
close_r endp close_r endp
close_w proc close_w proc
@ -251,7 +251,7 @@ _ifn z
_endif _endif
msdos F_CLOSE msdos F_CLOSE
_endif _endif
ret VZ_RET
close_w endp close_w endp
assume ds:cgroup assume ds:cgroup
@ -311,7 +311,7 @@ _endif
pop dx pop dx
msdos F_RENAME ;ren 'TXT' as 'BAK' msdos F_RENAME ;ren 'TXT' as 'BAK'
stc ; ##100.20 stc ; ##100.20
ret VZ_RET
makebak endp makebak endp
ENDIF ENDIF
@ -358,9 +358,9 @@ _repeat
read3: cmp byte ptr [si-1],LF read3: cmp byte ptr [si-1],LF
_until e _until e
clz clz
ret VZ_RET
read9: stz read9: stz
read_x: ret read_x: VZ_RET
fread endp fread endp
;--- Write file --- ;--- Write file ---
@ -379,9 +379,9 @@ fwrite proc
jne writ_x jne writ_x
add dx,ax add dx,ax
clc clc
ret VZ_RET
writ_x: stc writ_x: stc
ret VZ_RET
fwrite endp fwrite endp
;--- Seek to head/end of file --- ;--- Seek to head/end of file ---
@ -395,14 +395,14 @@ seekend proc
clr dx clr dx
msdos F_SEEK,2 msdos F_SEEK,2
pop cx pop cx
ret VZ_RET
seekend endp seekend endp
seekhead proc seekhead proc
mov dx,word ptr [bp].headp mov dx,word ptr [bp].headp
mov cx,word ptr [bp].headp+2 mov cx,word ptr [bp].headp+2
msdos F_SEEK,0 msdos F_SEEK,0
ret VZ_RET
seekhead endp seekhead endp
;--- Set text ID --- ;--- Set text ID ---
@ -417,7 +417,7 @@ _if e
_endif _endif
mov idcount,ax mov idcount,ax
mov [bp].textid,ax mov [bp].textid,ax
ret VZ_RET
settextid endp settextid endp
assume ds:cgroup assume ds:cgroup
@ -492,7 +492,7 @@ qwrit1:
qwrit8: qwrit8:
popm <es,ds,si> popm <es,ds,si>
pop [di] pop [di]
ret VZ_RET
qwrite endp qwrite endp
;--- Read temp --- ;--- Read temp ---
@ -549,7 +549,7 @@ qread1:
pop es:[di] pop es:[di]
clc clc
qread8: popm <es,ds,di,si> qread8: popm <es,ds,di,si>
ret VZ_RET
qread endp qread endp
;--- Close temp --- ;--- Close temp ---
@ -561,7 +561,7 @@ qclose proc
call close_r call close_r
popm <si,bx,ax> popm <si,bx,ax>
popf popf
ret VZ_RET
qclose endp qclose endp
;--- Kill temp --- ;--- Kill temp ---
@ -582,7 +582,7 @@ _repeat
cmp di,tmpslot+2 cmp di,tmpslot+2
_until e _until e
popm <ds,di> popm <ds,di>
ret VZ_RET
qkill endp qkill endp
;--- Init temp slot --- ;--- Init temp slot ---
@ -596,7 +596,7 @@ inittmpslot proc
sub cx,di sub cx,di
call memclear call memclear
pop es pop es
ret VZ_RET
inittmpslot endp inittmpslot endp
assume ds:nothing assume ds:nothing
@ -761,7 +761,7 @@ topen8: cbw
topen9: pushf topen9: pushf
call close_r call close_r
popf popf
ret VZ_RET
addeof: addeof:
clrl [bp].readp clrl [bp].readp
@ -778,7 +778,7 @@ addeof1:
mov byte ptr [si],LF mov byte ptr [si],LF
inc si inc si
mov [bp].tend,si mov [bp].tend,si
ret VZ_RET
topen endp topen endp
copypath proc copypath proc
@ -786,7 +786,7 @@ copypath proc
lea di,[bp].path lea di,[bp].path
movseg es,ss movseg es,ss
call strcpy call strcpy
ret VZ_RET
copypath endp copypath endp
public initlnumb public initlnumb
@ -796,7 +796,7 @@ initlnumb proc
mov [bp].lnumb0,ax mov [bp].lnumb0,ax
mov [bp].dnumb,ax mov [bp].dnumb,ax
mov [bp].dnumb0,ax mov [bp].dnumb0,ax
ret VZ_RET
initlnumb endp initlnumb endp
;--- Read Top of file --- ;--- Read Top of file ---
@ -821,7 +821,7 @@ _endif
mov word ptr [bp].readp,dx mov word ptr [bp].readp,dx
or [bp].largf,FL_TAIL+FL_TAILX or [bp].largf,FL_TAIL+FL_TAILX
rtop8: clc rtop8: clc
rtop9: ret rtop9: VZ_RET
readtop endp readtop endp
;----- Read start ----- ;----- Read start -----
@ -867,7 +867,7 @@ read_end proc
mov si,dx mov si,dx
call addeof call addeof
clc clc
ret VZ_RET
read_end endp read_end endp
;----- Read Backword ----- ;----- Read Backword -----
@ -893,7 +893,7 @@ read_bwd proc
tst si tst si
_endif _endif
mov [bp].ttop,si mov [bp].ttop,si
ret VZ_RET
read_bwd endp read_bwd endp
;----- Init log file ----- ; ##16 ;----- Init log file ----- ; ##16
@ -947,7 +947,7 @@ init_log proc
mov [bp].lnumb0,ax mov [bp].lnumb0,ax
or [bp].nodnumb,2 or [bp].nodnumb,2
pop ds pop ds
inilog9: ret inilog9: VZ_RET
init_log endp init_log endp
;----- Check Log table ----- ;----- Check Log table -----
@ -972,7 +972,7 @@ chk_logtbl proc
mov di,si mov di,si
movseg es,ss movseg es,ss
call set_logtbl call set_logtbl
chklog9: ret chklog9: VZ_RET
chk_logtbl endp chk_logtbl endp
;----- Scan paramater ----- ;----- Scan paramater -----
@ -1041,7 +1041,7 @@ scjmp1: mov pathp,si
_endif _endif
call set_opnopt call set_opnopt
jnc scanpar1 jnc scanpar1
scanpar9: ret scanpar9: VZ_RET
scan_parm endp scan_parm endp
jump_lnumb proc jump_lnumb proc
@ -1059,7 +1059,7 @@ jump_lnumb proc
call se_textend call se_textend
_endif _endif
popm <ds,si> popm <ds,si>
ret VZ_RET
jump_lnumb endp jump_lnumb endp
jump_cp proc jump_cp proc
@ -1074,7 +1074,7 @@ jump_cp proc
call restcp call restcp
call putnum call putnum
popm <ds,si> popm <ds,si>
ret VZ_RET
jump_cp endp jump_cp endp
scan_mark proc scan_mark proc
@ -1085,7 +1085,7 @@ scan_mark proc
pop di pop di
shlm di,2 shlm di,2
stl [bp+di].tretp stl [bp+di].tretp
ret VZ_RET
scan_mark endp scan_mark endp
;--- Close text --- ;--- Close text ---
@ -1098,21 +1098,21 @@ tclose proc
call close1 call close1
call wndcls call wndcls
call setwnum call setwnum
clos9: ret clos9: VZ_RET
tclose2: tclose2:
movseg ds,ss movseg ds,ss
call ld_wact call ld_wact
call close1 call close1
call wndchg call wndchg
ret VZ_RET
close1: close1:
call fclose call fclose
mov si,[bp].tends mov si,[bp].tends
mov di,[bp].ttops mov di,[bp].ttops
call sgmove2 call sgmove2
ret VZ_RET
fclose: fclose:
movseg ds,ss movseg ds,ss
@ -1132,7 +1132,7 @@ _ifn z
call qkill call qkill
_endif _endif
_endif _endif
ret VZ_RET
tclose endp tclose endp
;--- Save/Append text --- ;--- Save/Append text ---
@ -1296,7 +1296,7 @@ _ifn z
_else _else
call newline call newline
_endif _endif
ret VZ_RET
tsave endp tsave endp
;--- Init open --- ;--- Init open ---
@ -1369,10 +1369,10 @@ _endif
setttop: setttop:
mov [bp].ttop,TEXTTOP mov [bp].ttop,TEXTTOP
clc clc
ret VZ_RET
iopn_x: mov dl,E_NOMEM iopn_x: mov dl,E_NOMEM
stc stc
ret VZ_RET
iniopn endp iniopn endp
;--- Memory open --- ;--- Memory open ---
@ -1397,7 +1397,7 @@ mopn1:
mov [bp].tends,di mov [bp].tends,di
pop [bp].ttops pop [bp].ttops
_endif _endif
ret VZ_RET
memopn endp memopn endp
assume ds:cgroup assume ds:cgroup
@ -1432,7 +1432,7 @@ _until
isex8: clc isex8: clc
pop bp pop bp
isex9: pop ds isex9: pop ds
ret VZ_RET
isexist endp isexist endp
;**************************** ;****************************
@ -1528,7 +1528,7 @@ nreadeof:
nxtb8: clc nxtb8: clc
nxtb9: mov si,[bp].w2 ; si=old tend nxtb9: mov si,[bp].w2 ; si=old tend
popm <di,dx,cx,bx,ax> popm <di,dx,cx,bx,ax>
ret VZ_RET
nexttext endp nexttext endp
;--- Read previous text --- ;--- Read previous text ---
@ -1543,6 +1543,7 @@ pretext proc
mov [bp].w2,si mov [bp].w2,si
test [bp].largf,FL_HEAD test [bp].largf,FL_HEAD
jmpl z,preb_c jmpl z,preb_c
nop
call csroff call csroff
mov ax,[bp].headsz ; ##16 mov ax,[bp].headsz ; ##16
tst ax tst ax
@ -1630,7 +1631,7 @@ _endif
clc clc
preb9: mov si,[bp].w2 preb9: mov si,[bp].w2
popm <di,dx,cx,bx,ax> popm <di,dx,cx,bx,ax>
ret VZ_RET
pretext endp pretext endp
readsize proc readsize proc
@ -1640,7 +1641,7 @@ _if z
jbe rsize9 jbe rsize9
_endif _endif
mov ax,[bp].tbalt mov ax,[bp].tbalt
rsize9: ret rsize9: VZ_RET
readsize endp readsize endp
;--- Is top/end of file ? --- ;--- Is top/end of file ? ---
@ -1664,7 +1665,7 @@ _else
clz clz
_endif _endif
pop ax pop ax
istop9: ret istop9: VZ_RET
istop endp istop endp
;--- To top of file --- ;--- To top of file ---
@ -1698,7 +1699,7 @@ retract:
call initlnumb call initlnumb
toptxt8:call qclose toptxt8:call qclose
mov si,[bp].ttop mov si,[bp].ttop
ret VZ_RET
toptext endp toptext endp
;----- To head of file ----- ; ##16 ;----- To head of file ----- ; ##16
@ -1794,7 +1795,7 @@ _repeat
_until c _until c
endtxt8: call qclose endtxt8: call qclose
mov si,[bp].tend mov si,[bp].tend
ret VZ_RET
endtext endp endtext endp
;--- Seek text --- ;--- Seek text ---
@ -1855,7 +1856,7 @@ _endif
popf popf
call qclose call qclose
popm <di,si,cx,bx> popm <di,si,cx,bx>
ret VZ_RET
seektext endp seektext endp
;--- Buffer overflow --- ;--- Buffer overflow ---
@ -1904,7 +1905,7 @@ fulb2:
fulb_o: clc fulb_o: clc
fulb9: call qclose fulb9: call qclose
popm <dx,cx,bx> popm <dx,cx,bx>
ret VZ_RET
fulb_x: mov dl,E_TEMP fulb_x: mov dl,E_TEMP
call disperr call disperr
@ -1926,7 +1927,7 @@ fulbh1: mov [bp].w2,si
sub si,cx sub si,cx
sub di,cx sub di,cx
clc clc
fulbh9: ret fulbh9: VZ_RET
fulltext endp fulltext endp
;--- Overflow 64KB --- ;--- Overflow 64KB ---
@ -1953,7 +1954,7 @@ _endif
ovfbx: stc ovfbx: stc
ovfb9: call qclose ovfb9: call qclose
popm <dx,bx> popm <dx,bx>
ret VZ_RET
ovftext endp ovftext endp
;--- Write head --- ;--- Write head ---
@ -2000,7 +2001,7 @@ _endif
or [bp].largf,FL_HEAD or [bp].largf,FL_HEAD
clc clc
whead9: pop si whead9: pop si
ret VZ_RET
writhead endp writhead endp
;--- Write tail --- ;--- Write tail ---
@ -2039,7 +2040,7 @@ wtail8: pop si
clc clc
_endif _endif
pop si pop si
ret VZ_RET
writtail endp writtail endp
;--- Set top line number --- ;--- Set top line number ---
@ -2054,7 +2055,7 @@ _ifn z
_else _else
or [bp].nodnumb,2 or [bp].nodnumb,2
_endif _endif
ret VZ_RET
setnum0 endp setnum0 endp
public isdnumb public isdnumb
@ -2072,7 +2073,7 @@ _ifn z
_endif _endif
_endif _endif
pop ax pop ax
ret VZ_RET
isdnumb endp isdnumb endp
;----- Open Ext-File ----- ;----- Open Ext-File -----
@ -2095,7 +2096,7 @@ open_ext proc
_if c _if c
mov ss:opnpath,ax mov ss:opnpath,ax
_endif _endif
ret VZ_RET
open_ext endp open_ext endp
;----- Close Ext-File ----- ;----- Close Ext-File -----
@ -2104,7 +2105,7 @@ open_ext endp
close_ext proc close_ext proc
movseg ds,ss movseg ds,ss
call close1 call close1
ret VZ_RET
close_ext endp close_ext endp
endcs endcs
@ -2114,4 +2115,3 @@ close_ext endp
; End of 'text.asm' ; End of 'text.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -125,13 +125,13 @@ _endif
cmp ah,5 cmp ah,5
je undo_del je undo_del
ledit9: stc ledit9: stc
ret VZ_RET
movpre: movpre:
mov dl,255 mov dl,255
call declin call declin
mov al,[bp].lx mov al,[bp].lx
mov [bp].lxs,al mov [bp].lxs,al
ret VZ_RET
edtfld: edtfld:
mov dh,ch ;CH :location y mov dh,ch ;CH :location y
sub dh,[bp].ly sub dh,[bp].ly
@ -143,7 +143,7 @@ _if ae
_endif _endif
call vscroll call vscroll
clc clc
ret VZ_RET
ledit endp ledit endp
;--- Undo CR --- ;--- Undo CR ---
@ -159,7 +159,7 @@ _ifn c
call scrout_cp call scrout_cp
_endif _endif
clc clc
ret VZ_RET
undo1: undo1:
mov di,[bp].tcp mov di,[bp].tcp
jmp ins_crlf jmp ins_crlf
@ -192,9 +192,9 @@ _ifn s
_endif _endif
call scrout_cp call scrout_cp
clc clc
ret VZ_RET
bscr9: stc bscr9: stc
ret VZ_RET
bs_cr endp bs_cr endp
;--- Delete CR --- ;--- Delete CR ---
@ -220,7 +220,7 @@ _endif
mov si,[bp].tcp mov si,[bp].tcp
call scrout_cp call scrout_cp
popf popf
ret VZ_RET
del_cr endp del_cr endp
;--- Cursor up/down --- ;--- Cursor up/down ---
@ -244,7 +244,7 @@ mdwn1: call xtocp
mov dx,0100h mov dx,0100h
call vscroll call vscroll
clc clc
ret VZ_RET
se_csrdn endp se_csrdn endp
public se_csrup public se_csrup
@ -267,10 +267,10 @@ mup1: dec dh
mov dx,0FF00h mov dx,0FF00h
call vscroll call vscroll
clc clc
ret VZ_RET
cantmove: cantmove:
stc stc
ret VZ_RET
se_csrup endp se_csrup endp
;--- Return --- ;--- Return ---
@ -306,7 +306,7 @@ _if b
_endif _endif
call scrout_cp call scrout_cp
popf popf
retn9: ret retn9: VZ_RET
se_return endp se_return endp
;--- Insert blank line --- ;--- Insert blank line ---
@ -327,7 +327,7 @@ _ifn c
call scrout_cp call scrout_cp
clc clc
_endif _endif
ret VZ_RET
se_blank endp se_blank endp
;--- Auto indent --- ;--- Auto indent ---
@ -385,7 +385,7 @@ indt2: inc cx
rep movsb rep movsb
mov si,di mov si,di
clc clc
indt9: ret indt9: VZ_RET
indent endp indent endp
;--- Line number handle --- ;--- Line number handle ---
@ -397,7 +397,7 @@ getnum proc
call setabsp call setabsp
stl [bp].toldp stl [bp].toldp
pop ax pop ax
ret VZ_RET
getnum endp getnum endp
public putnum,putnum1 public putnum,putnum1
@ -458,17 +458,17 @@ _ifn z
_endif _endif
mov [bp].wys,al mov [bp].wys,al
_endif _endif
ret VZ_RET
putdnum: putdnum:
call isdnumb call isdnumb
_ifn z _ifn z
call setdnum call setdnum
stc stc
ret VZ_RET
_endif _endif
or [bp].nodnumb,1 or [bp].nodnumb,1
ret VZ_RET
putnum endp putnum endp
;--- Return to last position --- ;--- Return to last position ---
@ -480,7 +480,7 @@ mc_lastpos:
and ax,[bp+di+2] and ax,[bp+di+2]
inc ax inc ax
jnz last1 jnz last1
ret VZ_RET
se_lastpos proc se_lastpos proc
mov di,tretp mov di,tretp
@ -497,7 +497,7 @@ jumpto:
mov si,[bp].tcp mov si,[bp].tcp
call scrout_cp call scrout_cp
pret9: clc pret9: clc
ret VZ_RET
se_lastpos endp se_lastpos endp
markp proc markp proc
@ -506,12 +506,12 @@ markp proc
shlm ax,2 shlm ax,2
add ax,tretp add ax,tretp
mov di,ax mov di,ax
ret VZ_RET
mark_x: mark_x:
inc sp inc sp
inc sp inc sp
stc stc
ret VZ_RET
markp endp markp endp
;--- Mark cursor position --- ;--- Mark cursor position ---
@ -525,7 +525,7 @@ setretp:
call setabsp call setabsp
stl [bp].tretp stl [bp].tretp
clc clc
ret VZ_RET
se_markpos endp se_markpos endp
mc_markpos proc mc_markpos proc
@ -534,7 +534,7 @@ mc_markpos proc
call setabsp call setabsp
stl [bp+di] stl [bp+di]
clc clc
ret VZ_RET
mc_markpos endp mc_markpos endp
;--- Top/bottom of window --- ;--- Top/bottom of window ---
@ -585,7 +585,7 @@ sbtm3: call istop
call prefldl call prefldl
sbtm4: call scrout_fx sbtm4: call scrout_fx
sbtm9: clc sbtm9: clc
ret VZ_RET
do_smooth: do_smooth:
test edtsw,EDT_SCROLL test edtsw,EDT_SCROLL
@ -593,7 +593,7 @@ _ifn z
call bx call bx
_endif _endif
stc stc
ret VZ_RET
se_windtop endp se_windtop endp
;--- Text Top/End --- ;--- Text Top/End ---
@ -606,7 +606,7 @@ se_texttop proc
call initlnumb call initlnumb
mov [bp].wys,0 mov [bp].wys,0
call scrout_fx call scrout_fx
ret VZ_RET
se_texttop endp se_texttop endp
public se_textend public se_textend
@ -627,7 +627,7 @@ _if e
mov [bp].lnumb9,ax mov [bp].lnumb9,ax
_endif _endif
clc clc
ret VZ_RET
se_textend endp se_textend endp
;--- Change paging mode --- ;--- Change paging mode ---
@ -655,7 +655,7 @@ _if e
call dispstr call dispstr
_endif _endif
clc clc
ret VZ_RET
se_pagemode endp se_pagemode endp
;--- Page Up --- ;--- Page Up ---
@ -717,7 +717,7 @@ postjmp:
call putnum call putnum
call scrout call scrout
popf popf
ret VZ_RET
se_pageup endp se_pageup endp
;--- Page Down --- ;--- Page Down ---
@ -766,7 +766,7 @@ postrol:
jcxz roll1 jcxz roll1
prol1: call scrout_fx prol1: call scrout_fx
popf popf
ret VZ_RET
roll1: roll1:
cmp dl,1 cmp dl,1
jne prol1 jne prol1
@ -777,7 +777,7 @@ _if s
_endif _endif
call vscroll2 call vscroll2
popf popf
ret VZ_RET
pagelines: pagelines:
mov cl,[bp].tw_sy mov cl,[bp].tw_sy
@ -788,9 +788,9 @@ pagelines:
_if z _if z
inc cx inc cx
_endif _endif
ret VZ_RET
pglin1: dec cx pglin1: dec cx
ret VZ_RET
cmtdwn: cmtdwn:
cmp al,PG_STRSCH cmp al,PG_STRSCH
@ -833,7 +833,7 @@ _endif
call getnum call getnum
mov si,[bp].tnow mov si,[bp].tnow
stc stc
chkts9: ret chkts9: VZ_RET
chk_ts endp chk_ts endp
cmtchk proc cmtchk proc
@ -869,9 +869,9 @@ _until e
pop si pop si
jne cmtcx jne cmtcx
cmtco: stc cmtco: stc
ret VZ_RET
cmtcx: clc cmtcx: clc
ret VZ_RET
cmtchk endp cmtchk endp
skpst proc skpst proc
@ -889,7 +889,7 @@ _if c
lodsb lodsb
_endif _endif
cmp al,LF cmp al,LF
ret VZ_RET
skpst endp skpst endp
;--- Cancel line edit --- ;--- Cancel line edit ---
@ -902,7 +902,7 @@ _ifn z
call scrout_lx call scrout_lx
_endif _endif
clc clc
ret VZ_RET
se_cancel endp se_cancel endp
;--- Jump by line number --- ;--- Jump by line number ---
@ -924,7 +924,7 @@ mc_jumpnum:
call viewpoint1 call viewpoint1
call scrout_fx call scrout_fx
clc clc
jmpn9: ret jmpn9: VZ_RET
se_jumpnum endp se_jumpnum endp
jumpnum proc jumpnum proc
@ -967,9 +967,9 @@ jmpf3: sub [bp].lnumb,cx
_endif _endif
mov [bp].tnow,si mov [bp].tnow,si
clc clc
ret VZ_RET
jmpn_x: stc jmpn_x: stc
ret VZ_RET
jumpdnum: jumpdnum:
mov si,[bp].tfld mov si,[bp].tfld
mov cx,[bp].dnumb mov cx,[bp].dnumb
@ -1002,7 +1002,7 @@ djmpf2: call prefld
_endif _endif
_endif _endif
clc clc
ret VZ_RET
jumpnum endp jumpnum endp
;--- Set line numbler --- ;--- Set line numbler ---
@ -1039,7 +1039,7 @@ _until z
jz slnum8 jz slnum8
neg dx neg dx
slnum8: popm <es,di,cx,ax> slnum8: popm <es,di,cx,ax>
ret VZ_RET
setnum endp setnum endp
;--- Set display line numbler --- ;--- Set display line numbler ---
@ -1082,7 +1082,7 @@ _ifn z
neg dx neg dx
_endif _endif
sdnum8: popm <di,si,cx,bx,ax> sdnum8: popm <di,si,cx,bx,ax>
ret VZ_RET
setdnum endp setdnum endp
;--- Init display line numbler --- ;--- Init display line numbler ---
@ -1122,7 +1122,7 @@ _endif
add dx,[bp].dnumb0 add dx,[bp].dnumb0
mov [bp].dnumb,dx mov [bp].dnumb,dx
mov [bp].nodnumb,0 mov [bp].nodnumb,0
idnum9: ret idnum9: VZ_RET
initdnumb endp initdnumb endp
;--- Text locate x --- ;--- Text locate x ---
@ -1140,7 +1140,7 @@ textloc_x proc
_if c _if c
call scrout1 call scrout1
_endif _endif
ret VZ_RET
textloc_x endp textloc_x endp
;--- Text locate y --- ;--- Text locate y ---
@ -1158,14 +1158,14 @@ _repeat
call se_csrdn call se_csrdn
pop cx pop cx
_loop _loop
ret VZ_RET
tlocy2: neg cx tlocy2: neg cx
_repeat _repeat
push cx push cx
call se_csrup call se_csrup
pop cx pop cx
_loop _loop
tlocy9: ret tlocy9: VZ_RET
textloc_y endp textloc_y endp
;--- Set view point --- ;--- Set view point ---
@ -1180,7 +1180,7 @@ viewpoint proc
mov al,[bp].tw_sy mov al,[bp].tw_sy
shr al,1 shr al,1
mov [bp].wys,al mov [bp].wys,al
viewp9: ret viewp9: VZ_RET
viewpoint endp viewpoint endp
endcs endcs

View File

@ -139,7 +139,7 @@ _repeat
or dl,ah or dl,ah
_else _else
stc stc
ret VZ_RET
_endif _endif
_until _until
test dl,not OPT_N test dl,not OPT_N
@ -148,7 +148,7 @@ _until
_endif _endif
mov [bp].option,dl mov [bp].option,dl
clc clc
ret VZ_RET
readoption endp readoption endp
;------------------------------------------------ ;------------------------------------------------
@ -196,7 +196,7 @@ err_mcb:
call puts call puts
_endif _endif
_endif _endif
ret VZ_RET
;----- Is exist UMB ? ----- ;----- Is exist UMB ? -----
;<-- AX :UMB top segment (0=not exist) ;<-- AX :UMB top segment (0=not exist)
@ -213,7 +213,7 @@ _repeat
cmp al,'M' cmp al,'M'
_while e _while e
stc stc
ret VZ_RET
isumb1: isumb1:
cmp [di].mcb_id,'M' cmp [di].mcb_id,'M'
jne isumb2 jne isumb2
@ -222,7 +222,7 @@ isumb1:
call nextmcb call nextmcb
mov ax,ds mov ax,ds
foundumb: clc foundumb: clc
ret VZ_RET
isumb2: isumb2:
mov ax,ds mov ax,ds
clr al clr al
@ -239,7 +239,7 @@ _repeat
cmp ax,0F000h cmp ax,0F000h
_until ae _until ae
clr ax clr ax
ret VZ_RET
isexistumb endp isexistumb endp
;----- Display UMB total ----- ;----- Display UMB total -----
@ -256,7 +256,7 @@ disp_umbsize proc
call printf1 call printf1
pop ax pop ax
call putcrlf call putcrlf
ret VZ_RET
disp_umbsize endp disp_umbsize endp
;----- Walk Memory Arena ----- ;----- Walk Memory Arena -----
@ -278,7 +278,7 @@ arena1:
tstb [bp].subsegment tstb [bp].subsegment
jnz arena2 jnz arena2
stc stc
ret VZ_RET
_endif _endif
mov [bp].subsegment,FALSE mov [bp].subsegment,FALSE
cmp [bp].version,4 cmp [bp].version,4
@ -307,7 +307,7 @@ arena2:
mov ax,[bp].mcbnext mov ax,[bp].mcbnext
tst ax tst ax
jnz arena1 jnz arena1
ret VZ_RET
;----- Stack MCBs ----- ;----- Stack MCBs -----
@ -405,7 +405,7 @@ stkmcb4: tst ax
jmp stkmcb1 jmp stkmcb1
stkmcb8: stkmcb8:
pop ds pop ds
ret VZ_RET
stack_mcbs endp stack_mcbs endp
;----- Compare MCB owner name ----- ;----- Compare MCB owner name -----
@ -418,7 +418,7 @@ cmp_name proc
mov cx,8 mov cx,8
repe cmpsb repe cmpsb
popm <di,si,cx> popm <di,si,cx>
ret VZ_RET
cmp_name endp cmp_name endp
;----- Check ROM ----- ;----- Check ROM -----
@ -440,7 +440,7 @@ check_rom proc
_endif _endif
notrom: stc notrom: stc
yesrom: pop ax yesrom: pop ax
ret VZ_RET
check_rom endp check_rom endp
;----- Display MCB header ----- ;----- Display MCB header -----
@ -495,7 +495,7 @@ dsppsp:
mov si,offset cgroup: pf_blks_size mov si,offset cgroup: pf_blks_size
call printf1 call printf1
add sp,6 add sp,6
ret VZ_RET
disp_header endp disp_header endp
;----- Display owner/parameters ----- ;----- Display owner/parameters -----
@ -571,7 +571,7 @@ dspenv: tstw [bp].pspSeg
jmps dspowpr9 jmps dspowpr9
_endif _endif
dspparm: call disp_param dspparm: call disp_param
dspowpr9: ret dspowpr9: VZ_RET
disp_owner_parm endp disp_owner_parm endp
;----- Is device subsegment ? ----- ;----- Is device subsegment ? -----
@ -592,7 +592,7 @@ issubseg proc
mov si,[si] mov si,[si]
_endif _endif
pop di pop di
ret VZ_RET
issubseg endp issubseg endp
;----- Is CON device ? ----- ;----- Is CON device ? -----
@ -611,9 +611,9 @@ isdevice proc
call sputname call sputname
pop ds pop ds
stc stc
ret VZ_RET
not_dev: clc not_dev: clc
ret VZ_RET
isdevice endp isdevice endp
;----- Is buffers ? ----- ;----- Is buffers ? -----
@ -633,9 +633,9 @@ _repeat
cmp ax,dx cmp ax,dx
_until z _until z
stc stc
ret VZ_RET
not_buf: clc not_buf: clc
ret VZ_RET
isbuffers endp isbuffers endp
;----- Display owner path in Env ----- ;----- Display owner path in Env -----
@ -672,7 +672,7 @@ disp_envowner proc
mov si,di mov si,di
call sputlower call sputlower
dspown9: clr di dspown9: clr di
ret VZ_RET
disp_envowner endp disp_envowner endp
;----- Display Env ----- ;----- Display Env -----
@ -689,7 +689,7 @@ disp_env proc
call sputs call sputs
mov [bp].dspvct,FALSE mov [bp].dspvct,FALSE
_endif _endif
ret VZ_RET
disp_env endp disp_env endp
;----- Display parameter ----- ;----- Display parameter -----
@ -715,7 +715,7 @@ _repeat
mov ax,VECTCOLMS mov ax,VECTCOLMS
call sputlimit call sputlimit
_while b _while b
dsppr9: ret dsppr9: VZ_RET
disp_param endp disp_param endp
;----- Display fooked vectors ----- ;----- Display fooked vectors -----
@ -738,7 +738,7 @@ _repeat
_endif _endif
nextvct: nextvct:
_loop _loop
ret VZ_RET
dspvct1: dspvct1:
mov al,[bp].vectcnt mov al,[bp].vectcnt
tst al tst al
@ -769,7 +769,7 @@ nextmcb proc
add dx,[di].mcb_size add dx,[di].mcb_size
inc dx inc dx
mov ds,dx mov ds,dx
ret VZ_RET
nextmcb endp nextmcb endp
;----- Check MCB ID ----- ;----- Check MCB ID -----
@ -780,7 +780,7 @@ check_mcb proc
_ifn e _ifn e
cmp [di].mcb_id,'Z' cmp [di].mcb_id,'Z'
_endif _endif
ret VZ_RET
check_mcb endp check_mcb endp
;----- Check System data ----- ;----- Check System data -----
@ -795,7 +795,7 @@ check_sys1:
cmp [di].mcb_id,'I' cmp [di].mcb_id,'I'
_endif _endif
_endif _endif
ret VZ_RET
check_sys endp check_sys endp
memarena endp memarena endp
@ -816,7 +816,7 @@ ems_xms proc
mov ax,bx mov ax,bx
or ax,cx or ax,cx
_if z _if z
ret VZ_RET
_endif _endif
call putcrlf call putcrlf
tst bx tst bx
@ -903,7 +903,7 @@ ems_xms proc
call disp_page call disp_page
call putcrlf call putcrlf
_endif _endif
ret VZ_RET
xmscolm proc xmscolm proc
tst bx tst bx
@ -911,7 +911,7 @@ xmscolm proc
mov ax,XMSCOLMS mov ax,XMSCOLMS
call sfillspc call sfillspc
_endif _endif
ret VZ_RET
xmscolm endp xmscolm endp
;----- Check EMS ----- ;----- Check EMS -----
@ -943,7 +943,7 @@ check_ems proc
pop ax pop ax
and al,0Fh and al,0Fh
mov [bp].emsver2,ax mov [bp].emsver2,ax
noems: ret noems: VZ_RET
check_ems endp check_ems endp
@ -977,7 +977,7 @@ check_xms proc
call [bp].xms call [bp].xms
mov [bp].embfree,ax mov [bp].embfree,ax
mov [bp].embmax,dx mov [bp].embmax,dx
noxms: ret noxms: VZ_RET
check_xms endp check_xms endp
;----- Check HMA ----- ;----- Check HMA -----
@ -1017,7 +1017,7 @@ _loop
jmps sethmaowner jmps sethmaowner
hmaunknown: mov si,offset cgroup: mg_unknown hmaunknown: mov si,offset cgroup: mg_unknown
sethmaowner: mov [bp].hmaowner,si sethmaowner: mov [bp].hmaowner,si
ret VZ_RET
check_hma endp check_hma endp
;----- Display EMS block ----- ;----- Display EMS block -----
@ -1058,7 +1058,7 @@ _repeat
call putcrlf call putcrlf
_until _until
ret VZ_RET
disp_emsblk endp disp_emsblk endp
;----- Display EMS block page/size ----- ;----- Display EMS block page/size -----
@ -1076,7 +1076,7 @@ disp_page proc
pop ax pop ax
pop ax pop ax
popm <di,cx> popm <di,cx>
ret VZ_RET
disp_page endp disp_page endp
ems_xms endp ems_xms endp
@ -1099,7 +1099,7 @@ printf1 proc
dec di dec di
mov [bp].putp,di mov [bp].putp,di
popm <es,ds,di,bx> popm <es,ds,di,bx>
ret VZ_RET
printf1 endp printf1 endp
;----- Put string ----- ;----- Put string -----
@ -1122,7 +1122,7 @@ puts proc
msdos F_WRITE msdos F_WRITE
_endif _endif
popm <es,ds,di,dx,cx,bx,ax> popm <es,ds,di,dx,cx,bx,ax>
ret VZ_RET
puts endp puts endp
;----- Put CR/LF & flash ----- ;----- Put CR/LF & flash -----
@ -1135,7 +1135,7 @@ putcrlf proc
call puts call puts
call sputbegin call sputbegin
pop si pop si
ret VZ_RET
putcrlf endp putcrlf endp
;----- Put string to buffer ----- ;----- Put string to buffer -----
@ -1146,7 +1146,7 @@ sputbegin proc
mov [bp].putp,bx mov [bp].putp,bx
mov byte ptr ss:[bx],0 mov byte ptr ss:[bx],0
pop bx pop bx
ret VZ_RET
sputbegin endp sputbegin endp
; ;
;----- sput string ----- ;----- sput string -----
@ -1160,7 +1160,7 @@ _repeat
call sputc call sputc
_until z _until z
pop ds pop ds
ret VZ_RET
sputs endp sputs endp
; ;
;----- sput char ----- ;----- sput char -----
@ -1179,7 +1179,7 @@ sputc proc
mov byte ptr es:[di],0 mov byte ptr es:[di],0
_endif _endif
popm <es,di> popm <es,di>
ret VZ_RET
sputc endp sputc endp
; ;
;----- sput 8 char ----- ;----- sput 8 char -----
@ -1194,7 +1194,7 @@ _repeat
_break z _break z
_loop _loop
pop cx pop cx
ret VZ_RET
sputname endp sputname endp
; ;
;----- sput 8 char to lower case ----- ;----- sput 8 char to lower case -----
@ -1214,7 +1214,7 @@ _repeat
mov [bp].dspown,TRUE mov [bp].dspown,TRUE
_loop _loop
pop cx pop cx
ret VZ_RET
sputlower endp sputlower endp
; ;
;----- char to lower case ----- ;----- char to lower case -----
@ -1228,7 +1228,7 @@ tolower proc
add al,20h add al,20h
_endif _endif
_endif _endif
ret VZ_RET
tolower endp tolower endp
; ;
;----- sput limit ----- ;----- sput limit -----
@ -1240,7 +1240,7 @@ sputlimit proc
add ax,offset cgroup: pfbuf add ax,offset cgroup: pfbuf
cmp [bp].putp,ax cmp [bp].putp,ax
pop ax pop ax
ret VZ_RET
sputlimit endp sputlimit endp
; ;
;----- fill spaces ----- ;----- fill spaces -----
@ -1254,7 +1254,7 @@ _repeat
call sputspc call sputspc
pop ax pop ax
_until _until
ret VZ_RET
sfillspc endp sfillspc endp
$ld_strseg macro $ld_strseg macro

View File

@ -7,6 +7,7 @@
;NOSWAP equ TRUE ;NOSWAP equ TRUE
REXP equ TRUE ; VWX support by wing REXP equ TRUE ; VWX support by wing
NEWEXPR equ TRUE ; new pointer handler by Sakakibara NEWEXPR equ TRUE ; new pointer handler by Sakakibara
VZ_RET equ retn
IFNDEF PC98 IFNDEF PC98
@ -205,13 +206,13 @@ SYS_GETC equ 4
;--- Parse path result --- ;--- Parse path result ---
PRS_WILD equ 00000001b VZ_PRS_WILD equ 00000001b
PRS_EXT equ 00000010b VZ_PRS_EXT equ 00000010b
PRS_NAME equ 00000100b VZ_PRS_NAME equ 00000100b
PRS_DIR equ 00001000b VZ_PRS_DIR equ 00001000b
PRS_DRV equ 00010000b VZ_PRS_DRV equ 00010000b
PRS_ROOT equ 00100000b VZ_PRS_ROOT equ 00100000b
PRS_ENDDIR equ 10000000b VZ_PRS_ENDDIR equ 10000000b
;--- Char attribute --- ;--- Char attribute ---
@ -341,10 +342,10 @@ CMF_VAL equ 10000000b
;----- DOS Command exec switch ----- ;----- DOS Command exec switch -----
DOS_TBOX equ 0001b VZ_DOS_TBOX equ 0001b
DOS_GO equ 0010b VZ_DOS_GO equ 0010b
DOS_RETURN equ 0100b VZ_DOS_RETURN equ 0100b
DOS_BOXTTL equ 1000b VZ_DOS_BOXTTL equ 1000b
;--- Macro extra char --- ;--- Macro extra char ---
@ -475,7 +476,7 @@ TTLSTRSZ equ 64
TMPSZ equ 256 TMPSZ equ 256
PATHSZ equ 64 PATHSZ equ 64
MASKSZ equ 32 MASKSZ equ 32
BACKSLASH equ 0FCh VZ_BACKSLASH equ 0FCh
SYMCHR equ 27h SYMCHR equ 27h
MARKCNT equ 4 MARKCNT equ 4
ONEMS equ 0FFFh ONEMS equ 0FFFh
@ -484,7 +485,7 @@ PACKSZ equ 13
TEXTTOP equ 2 TEXTTOP equ 2
TMPSLOTCNT equ 512 TMPSLOTCNT equ 512
BMPSIZE equ 128 BMPSIZE equ 128
DOSLEN equ 128 VZ_DOSLEN equ 128
PAGEMAX equ BMPSIZE*8 PAGEMAX equ BMPSIZE*8
EMSMASK equ 0F0h EMSMASK equ 0F0h
EMSMASKW equ 0F000h EMSMASKW equ 0F000h
@ -904,4 +905,3 @@ _text ends
.list .list
assume cs:cgroup, ss:cgroup assume cs:cgroup, ss:cgroup


View File

@ -1,30 +0,0 @@
main+
alias+
char+
core+
disp+
dos+
expr+
filer+
gets+
harderr+
inst+
key+
ledit+
macro+
memo+
menu+
misc+
open+
printf+
scrn+
smooth+
string+
text+
view+
wind+
xscr+
swap+
ems+
msg


View File

@ -1,66 +0,0 @@
.asm.obj:
$(ASM)asm /ml $(MASM) $*;
vz.com: main.obj alias.obj char.obj core.obj disp.obj dos.obj expr.obj\
filer.obj gets.obj harderr.obj inst.obj key.obj ledit.obj macro.obj\
memo.obj menu.obj misc.obj open.obj printf.obj scrn.obj smooth.obj\
string.obj text.obj view.obj wind.obj swap.obj ems.obj xscr.obj msg.obj
main.obj: vz.inc main.asm
alias.obj: vz.inc alias.asm
char.obj: vz.inc char.asm
core.obj: vz.inc core.asm
disp.obj: vz.inc disp.asm
dos.obj: vz.inc dos.asm
expr.obj: vz.inc expr.asm
filer.obj: vz.inc filer.asm
gets.obj: vz.inc gets.asm
harderr.obj: vz.inc harderr.asm
inst.obj: vz.inc inst.asm
key.obj: vz.inc key.asm key98.asm keyibm.asm dummy
ledit.obj: vz.inc ledit.asm
macro.obj: vz.inc macro.asm
memo.obj: vz.inc memo.asm
menu.obj: vz.inc menu.asm
misc.obj: vz.inc misc.asm
open.obj: vz.inc open.asm
printf.obj: sprintf.inc printf.asm
scrn.obj: vz.inc scrn.asm scrn98.asm scrnibm.asm dummy
smooth.obj: vz.inc smooth.asm
string.obj: vz.inc string.asm
text.obj: vz.inc text.asm
view.obj: vz.inc view.asm
wind.obj: vz.inc wind.asm
xscr.obj: vz.inc xscr.asm
swap.obj: vz.inc swap.asm
ems.obj: vz.inc ems.asm
msg.obj: vz.inc msg.asm dummy


View File

@ -1,59 +0,0 @@
main.obj vz.inc main.asm
main /ml;
alias.obj vz.inc alias.asm
alias /ml;
char.obj vz.inc char.asm
char /ml;
core.obj vz.inc core.asm
core /ml;
disp.obj vz.inc disp.asm
disp /ml;
dos.obj vz.inc dos.asm
dos /ml;
expr.obj vz.inc expr.asm
expr /ml;
filer.obj vz.inc filer.asm
filer /ml;
gets.obj vz.inc gets.asm
gets /ml;
harderr.obj vz.inc harderr.asm
harderr /ml;
inst.obj vz.inc inst.asm
inst /ml;
key.obj vz.inc key.asm key98.asm keyibm.asm dummy
key /ml;
ledit.obj vz.inc ledit.asm
ledit /ml;
macro.obj vz.inc macro.asm
macro /ml;
memo.obj vz.inc memo.asm
memo /ml;
menu.obj vz.inc menu.asm
menu /ml;
misc.obj vz.inc misc.asm
misc /ml;
open.obj vz.inc open.asm
open /ml;
printf.obj sprintf.inc printf.asm
printf /ml;
scrn.obj vz.inc scrn.asm scrn98.asm scrnibm.asm dummy
scrn /ml;
smooth.obj vz.inc smooth.asm
smooth /ml;
string.obj vz.inc string.asm
string /ml;
text.obj vz.inc text.asm
text /ml;
view.obj vz.inc view.asm
view /ml;
wind.obj vz.inc wind.asm
wind /ml;
xscr.obj vz.inc xscr.asm
xscr /ml;
swap.obj vz.inc swap.asm
swap /ml;
ems.obj vz.inc ems.asm
ems /ml;
msg.obj vz.inc msg.asm dummy
msg /ml;


View File

@ -63,7 +63,7 @@ w_save dw 0
ld_wact proc ld_wact proc
mov bp,ss:w_act mov bp,ss:w_act
tst bp tst bp
ret VZ_RET
ld_wact endp ld_wact endp
endes endes
@ -101,7 +101,7 @@ _loop
stosw ; w_busy stosw ; w_busy
mov ax,bp mov ax,bp
stosw ; w_ext stosw ; w_ext
ret VZ_RET
winit endp winit endp
public windcount public windcount
@ -117,7 +117,7 @@ _ifn z
inc cx inc cx
_endif _endif
inc cx ; ##16 inc cx ; ##16
ret VZ_RET
windcount endp windcount endp
;--- Window open --- ;--- Window open ---
@ -147,7 +147,7 @@ _else
call cpyfmt call cpyfmt
_endif _endif
mov w_act,bp mov w_act,bp
ret VZ_RET
wndopn endp wndopn endp
;--- Window close --- ;--- Window close ---
@ -195,7 +195,7 @@ _else
call cpyfmt call cpyfmt
_endif _endif
wcls8: mov w_act,bp wcls8: mov w_act,bp
ret VZ_RET
wndcls endp wndcls endp
;--- Window change --- ;--- Window change ---
@ -213,7 +213,7 @@ _else
_endif _endif
mov bp,ax mov bp,ax
mov [bp].w_next,0 mov [bp].w_next,0
ret VZ_RET
wndrmv: wndrmv:
mov ax,w_act mov ax,w_act
mov bp,ax mov bp,ax
@ -221,10 +221,10 @@ wndrmv:
call wlast call wlast
_ifn c _ifn c
mov [bp].w_next,bx mov [bp].w_next,bx
ret VZ_RET
_endif _endif
mov w_busy,bx mov w_busy,bx
ret VZ_RET
wndchg endp wndchg endp
;--- Set window number --- ;--- Set window number ---
@ -247,7 +247,7 @@ _repeat
_until _until
mov textc,ax mov textc,ax
pop bp pop bp
ret VZ_RET
setwnum endp setwnum endp
;--- Set w_record pointer --- ;--- Set w_record pointer ---
@ -264,9 +264,9 @@ _repeat
mov bp,[bp].w_next mov bp,[bp].w_next
_until _until
clc clc
ret VZ_RET
wlast3: stc wlast3: stc
ret VZ_RET
wlast endp wlast endp
;--- Set window format --- ;--- Set window format ---
@ -289,7 +289,7 @@ _endif
_if b _if b
mov [bp].wys,al mov [bp].wys,al
_endif _endif
ret VZ_RET
settextw endp settextw endp
public inifmt public inifmt
@ -300,7 +300,7 @@ inifmt proc
mov al,SPLIT_A mov al,SPLIT_A
call settextw call settextw
mov [bp].fofs,0 mov [bp].fofs,0
ret VZ_RET
inifmt endp inifmt endp
cpyfmt proc cpyfmt proc
@ -315,7 +315,7 @@ cpyfmt proc
rep movsb rep movsb
popm <es,ds> popm <es,ds>
call check_wy call check_wy
ret VZ_RET
cpyfmt endp cpyfmt endp
assume ds:nothing assume ds:nothing
@ -338,7 +338,7 @@ _ifn z
_endif _endif
_endif _endif
clc clc
ret VZ_RET
se_chgwind endp se_chgwind endp
assume ds:cgroup assume ds:cgroup
@ -357,7 +357,7 @@ _ifn z
call dspscr call dspscr
_endif _endif
clc clc
ret VZ_RET
splitmode: splitmode:
tst al tst al
jns splitwd1 jns splitwd1
@ -373,7 +373,7 @@ _ifn z
xchg bp,bx xchg bp,bx
call inifmt call inifmt
_endif _endif
ret VZ_RET
splitwd: splitwd:
mov al,[bp].wsplit mov al,[bp].wsplit
@ -396,7 +396,7 @@ yokowd:
sub ch,dh sub ch,dh
mov al,SPLIT_D mov al,SPLIT_D
call settextw call settextw
ret VZ_RET
tatewd: tatewd:
call doswindow call doswindow
add dh,2 add dh,2
@ -413,7 +413,7 @@ tatewd:
sub cl,dl sub cl,dl
mov al,SPLIT_R mov al,SPLIT_R
call settextw call settextw
ret VZ_RET
se_splitmode endp se_splitmode endp
;--- Split position --- ;--- Split position ---
@ -432,7 +432,7 @@ wpos1: mov al,CSR_OFF
jnz wpos2 jnz wpos2
call newline call newline
wpos9: clc wpos9: clc
ret VZ_RET
wpos2: wpos2:
movseg ds,ss movseg ds,ss
push ax push ax
@ -507,7 +507,7 @@ resetscr:
call dspscr call dspscr
popm <es,ds> popm <es,ds>
clc clc
ret VZ_RET
resetwind: resetwind:
push bp push bp
movseg ds,ss movseg ds,ss
@ -519,7 +519,7 @@ _ifn z
_endif _endif
call splitwd call splitwd
pop bp pop bp
ret VZ_RET
se_xline endp se_xline endp
;--- Change active text --- ; ##153.37 ;--- Change active text --- ; ##153.37
@ -553,7 +553,7 @@ chgtext:
call seekbp call seekbp
chgt1: call wndsel chgt1: call wndsel
call dspscr call dspscr
chgt9: ret chgt9: VZ_RET
mc_chgtext: mc_chgtext:
movseg ds,ss movseg ds,ss
@ -573,7 +573,7 @@ _repeat
mov bp,[bp].w_next mov bp,[bp].w_next
_until _until
stc stc
ret VZ_RET
wndsel: wndsel:
mov bx,w_act mov bx,w_act
@ -623,7 +623,7 @@ wcons2:
jne chgcon1 jne chgcon1
call wndcls1 call wndcls1
call dspscr call dspscr
ret VZ_RET
se_console endp se_console endp
public chgt_cons public chgt_cons
@ -640,10 +640,10 @@ chgt_cons proc
mov w_back,ax mov w_back,ax
chgcon1:call wndsel chgcon1:call wndsel
call dspscr call dspscr
ret VZ_RET
chgcon_x: chgcon_x:
stc stc
ret VZ_RET
chgt_cons endp chgt_cons endp
;--- Dump text name --- ;--- Dump text name ---
@ -665,9 +665,9 @@ sel_number:
sub al,'A'-'1'-9 sub al,'A'-'1'-9
seltx1: sub al,'1' seltx1: sub al,'1'
clc clc
ret VZ_RET
seltx_x:stc seltx_x:stc
ret VZ_RET
_endif _endif
push bp push bp
call seekbp call seekbp
@ -679,7 +679,7 @@ _endif
call printf call printf
popm <ax,ax> popm <ax,ax>
pop bp pop bp
ret VZ_RET
dumptext endp dumptext endp
seekbp proc seekbp proc
@ -696,7 +696,7 @@ _repeat
tst bp tst bp
jz skbp1 jz skbp1
_until _until
ret VZ_RET
seekbp endp seekbp endp
;----- Reset active/back window ----- ;----- Reset active/back window -----
@ -731,7 +731,7 @@ wnd_reset proc
_endif _endif
_endif _endif
popm <ds,bp,bx> popm <ds,bp,bx>
ret VZ_RET
wnd_reset endp wnd_reset endp
endcs endcs
@ -741,4 +741,3 @@ wnd_reset endp
; End of 'wind.asm' ; End of 'wind.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -105,7 +105,7 @@ _ifn z
mov puttop,si mov puttop,si
mov putp,si mov putp,si
_endif _endif
ret VZ_RET
initcon endp initcon endp
endis endis
@ -150,7 +150,7 @@ _ifn z
_endif _endif
movseg ds,ss movseg ds,ss
_endif _endif
ret VZ_RET
opencon endp opencon endp
;--- Pre/Post DOS --- ;--- Pre/Post DOS ---
@ -175,7 +175,7 @@ _if z
mov xpause,al ; ##152.17 mov xpause,al ; ##152.17
pop bp pop bp
_endif _endif
ret VZ_RET
preconfile endp preconfile endp
public postconfile public postconfile
@ -188,7 +188,7 @@ _ifn z
jnz pstcon1 jnz pstcon1
_endif _endif
_endif _endif
ret VZ_RET
pstcon1: pstcon1:
mov di,putp mov di,putp
call flushcontmp call flushcontmp
@ -257,7 +257,7 @@ _endif
inc dx inc dx
mov [bp].lnumb,dx mov [bp].lnumb,dx
popm <ds,bp> popm <ds,bp>
ret VZ_RET
postconfile endp postconfile endp
endcs endcs
@ -299,7 +299,7 @@ slash1:
clr ax clr ax
mov es,ax mov es,ax
mov byte ptr es:[grafflag],0 mov byte ptr es:[grafflag],0
mov al,BACKSLASH mov al,VZ_BACKSLASH
pushf pushf
call cs:vct29 call cs:vct29
mov byte ptr es:[grafflag],1 mov byte ptr es:[grafflag],1
@ -323,20 +323,20 @@ _ifn z
_endif _endif
call isalpha call isalpha
jc skipesc9 jc skipesc9
ret VZ_RET
pausectrl: pausectrl:
xor al,'1' xor al,'1'
mov xpause,al mov xpause,al
skipesc9: skipesc9:
mov skipescf,FALSE mov skipescf,FALSE
ret VZ_RET
_endif _endif
cmp al,ESCP cmp al,ESCP
jne puttmp2 jne puttmp2
test syssw,SW_SKIPESC test syssw,SW_SKIPESC
jz puttmp2 jz puttmp2
mov skipescf,TRUE mov skipescf,TRUE
ret VZ_RET
puttmp2: puttmp2:
tst al tst al
jz puttmp9 jz puttmp9
@ -379,7 +379,7 @@ _endif
mov di,puttop mov di,puttop
puttmp7:popm <si,dx,cx,bx> puttmp7:popm <si,dx,cx,bx>
puttmp8:mov putp,di puttmp8:mov putp,di
puttmp9:ret puttmp9:VZ_RET
putcontmp endp putcontmp endp
;--- Flush console tmp buffer --- ;--- Flush console tmp buffer ---
@ -435,7 +435,7 @@ _ifn cxz
_endif _endif
flcon9: pop di flcon9: pop di
pop es pop es
ret VZ_RET
flushcontmp endp flushcontmp endp
endbs endbs
@ -453,7 +453,7 @@ copyxptrs proc
mov ax,es:conend mov ax,es:conend
mov conend,ax mov conend,ax
pop es pop es
ret VZ_RET
copyxptrs endp copyxptrs endp
;--- Set/reset INT29h --- ;--- Set/reset INT29h ---
@ -463,7 +463,7 @@ setint29 proc
mov di,29h*4 mov di,29h*4
mov ax,offset cgroup:int29in mov ax,offset cgroup:int29in
call setint call setint
ret VZ_RET
setint29 endp setint29 endp
public resetint29 public resetint29
@ -471,7 +471,7 @@ resetint29 proc
mov bx,offset cgroup:vct29 mov bx,offset cgroup:vct29
mov di,29h*4 mov di,29h*4
call resetint call resetint
ret VZ_RET
resetint29 endp resetint29 endp
endes endes
@ -490,7 +490,7 @@ chkint29 proc
call setint29 call setint29
jmps chkcon9 jmps chkcon9
chkcon1:call resetint29 chkcon1:call resetint29
chkcon9:ret chkcon9:VZ_RET
chkint29 endp chkint29 endp
endcs endcs
@ -501,4 +501,3 @@ ENDIF
; End of 'xscr.asm' ; End of 'xscr.asm'
; Copyright (C) 1989 by c.mos ; Copyright (C) 1989 by c.mos
;**************************** ;****************************


View File

@ -292,7 +292,7 @@ init proc
mov [bp].heap,ax mov [bp].heap,ax
msdos F_SWITCHAR,0 msdos F_SWITCHAR,0
mov [bp].swchr,dl mov [bp].swchr,dl
ret VZ_RET
init endp init endp
init2 proc init2 proc
@ -306,7 +306,7 @@ init2 proc
add ax,cx add ax,cx
mov [bp].dslottop,ax mov [bp].dslottop,ax
mov [bp].dslotseg,ax mov [bp].dslotseg,ax
ret VZ_RET
init2 endp init2 endp
init3 proc init3 proc
@ -318,7 +318,7 @@ init3 proc
add ax,CPYBFPARA add ax,CPYBFPARA
_endif _endif
mov [bp].cpybftop,ax mov [bp].cpybftop,ax
ret VZ_RET
init3 endp init3 endp
ofs2seg proc ofs2seg proc
@ -329,14 +329,14 @@ ofs2seg proc
mov cl,4 mov cl,4
shr ax,cl shr ax,cl
pop cx pop cx
ret VZ_RET
ofs2seg endp ofs2seg endp
nextseg proc nextseg proc
call ofs2seg call ofs2seg
mov dx,ds mov dx,ds
add ax,dx add ax,dx
ret VZ_RET
nextseg endp nextseg endp
;----- Display copied info ----- ;----- Display copied info -----
@ -428,7 +428,7 @@ info_del: mov si,offset cgroup: mg_deleted
mov si,offset cgroup: mg_Bmoved mov si,offset cgroup: mg_Bmoved
info8: call putmsg info8: call putmsg
call putcrlf call putcrlf
ret VZ_RET
disp_info endp disp_info endp
disp_files proc disp_files proc
@ -436,7 +436,7 @@ disp_files proc
call putnumber call putnumber
mov si,offset cgroup: mg_files mov si,offset cgroup: mg_files
call putmsg call putmsg
ret VZ_RET
disp_files endp disp_files endp
;----- Display error message ----- ;----- Display error message -----
@ -489,7 +489,7 @@ _loop
mov al,cl mov al,cl
_endif _endif
call putcrlf call putcrlf
ret VZ_RET
disp_error endp disp_error endp
;----- Display parameters ----- ;----- Display parameters -----
@ -531,7 +531,7 @@ _until
call puts call puts
call putcrlf call putcrlf
_endif _endif
ret VZ_RET
disp_parm endp disp_parm endp
ENDIF ENDIF
@ -553,7 +553,7 @@ parm_read:
inc si inc si
call read_option call read_option
jnc parm_read jnc parm_read
ret VZ_RET
_endif _endif
cmp al,'[' cmp al,'['
_if e _if e
@ -646,7 +646,7 @@ parmend1: jz parm_end
jz parm_dst jz parm_dst
parm_syntax: mov al,ER_SYNTAX parm_syntax: mov al,ER_SYNTAX
parm_x: stc parm_x: stc
ret VZ_RET
_endif _endif
test dl,PRS_EXT+PRS_WILD test dl,PRS_EXT+PRS_WILD
_if z _if z
@ -703,7 +703,7 @@ parm_end:
mov al,ER_SAME mov al,ER_SAME
je parm_x je parm_x
parm9: clc parm9: clc
ret VZ_RET
parse_parm endp parse_parm endp
;----- Load parameter list ----- ;----- Load parameter list -----
@ -719,7 +719,7 @@ loadparmlist proc
add [bp].parmlist,type Parmlist add [bp].parmlist,type Parmlist
dec [bp].parmcnt dec [bp].parmcnt
pop di pop di
ret VZ_RET
loadparmlist endp loadparmlist endp
;----- Read response file ----- ;----- Read response file -----
@ -761,10 +761,10 @@ read_ref proc
_endif _endif
stz stz
rref9: clc rref9: clc
ret VZ_RET
rref_x: mov al,ER_FILENG rref_x: mov al,ER_FILENG
stc stc
ret VZ_RET
read_ref endp read_ref endp
;----- Set src dir from filelist ----- ;----- Set src dir from filelist -----
@ -786,7 +786,7 @@ set_srcdir proc
call getcurdir1 call getcurdir1
call skipstr call skipstr
_endif _endif
ret VZ_RET
set_srcdir endp set_srcdir endp
;----- Copy mask ----- ;----- Copy mask -----
@ -839,7 +839,7 @@ cpym1: or [bp].mode,CPY_MASK
pop bx pop bx
_endif _endif
; call copy_parm ; call copy_parm
; ret ; VZ_RET
copy_mask endp copy_mask endp
;----- Copy a parameter ----- ;----- Copy a parameter -----
@ -876,7 +876,7 @@ cpypar1:
clr al clr al
stosb stosb
pop cx pop cx
ret VZ_RET
copy_parm endp copy_parm endp
;----- Make full path ----- ;----- Make full path -----
@ -927,7 +927,7 @@ mkfull1: call strcpy
call setcurdir call setcurdir
mkfull9: popm <dx,cx,bx> mkfull9: popm <dx,cx,bx>
mov si,cx mov si,cx
ret VZ_RET
mkfullpath endp mkfullpath endp
;----- Get drive No. ----- ;----- Get drive No. -----
@ -946,7 +946,7 @@ getdrive proc
_endif _endif
_endif _endif
inc al inc al
ret VZ_RET
getdrive endp getdrive endp
;----- Get/Set current directory ----- ;----- Get/Set current directory -----
@ -959,7 +959,7 @@ getcurdir proc
call getcurdir1 call getcurdir1
mov al,dl mov al,dl
popm <di,si,dx> popm <di,si,dx>
ret VZ_RET
getcurdir endp getcurdir endp
getcurdir1 proc getcurdir1 proc
@ -971,13 +971,13 @@ getcurdir1 proc
stosw stosw
mov si,di mov si,di
msdos F_CURDIR msdos F_CURDIR
ret VZ_RET
getcurdir1 endp getcurdir1 endp
setcurdir proc setcurdir proc
mov dx,offset cgroup: pathbuf2 mov dx,offset cgroup: pathbuf2
msdos F_CHDIR msdos F_CHDIR
ret VZ_RET
setcurdir endp setcurdir endp
;----- Change to root directory ----- ;----- Change to root directory -----
@ -991,7 +991,7 @@ cd_rootdir proc
msdos F_CHDIR msdos F_CHDIR
pop ax pop ax
mov [si],al mov [si],al
ret VZ_RET
cd_rootdir endp cd_rootdir endp
;----- File to directory ----- ;----- File to directory -----
@ -1020,7 +1020,7 @@ file_to_dir proc
mov bx,cx mov bx,cx
_endif _endif
_endif _endif
ret VZ_RET
file_to_dir endp file_to_dir endp
;----- Make destination directory ----- ;----- Make destination directory -----
@ -1056,7 +1056,7 @@ mkdst1: push ax
_until _until
_endif _endif
mkdst8: popm <ds,si> mkdst8: popm <ds,si>
ret VZ_RET
make_dstdir endp make_dstdir endp
;----- Read option ----- ;----- Read option -----
@ -1091,14 +1091,14 @@ read_option proc
mov ax,1 mov ax,1
shl ax,cl shl ax,cl
or word ptr [bp].option,ax or word ptr [bp].option,ax
ret VZ_RET
ropt_x: mov dl,al ropt_x: mov dl,al
mov al,ER_OPTION mov al,ER_OPTION
stc stc
ret VZ_RET
ropt_help: mov al,ER_HELP ropt_help: mov al,ER_HELP
stc stc
ret VZ_RET
read_option endp read_option endp
;----- Parse path name ----- ;----- Parse path name -----
@ -1146,7 +1146,7 @@ prsdone1: jmp prs_done
prs_error: prs_error:
stc stc
pop di pop di
ret VZ_RET
prs_drive: prs_drive:
cmp _pvc,'A' cmp _pvc,'A'
jne prs_done jne prs_done
@ -1248,7 +1248,7 @@ prs_done:
dec si dec si
clc clc
pop di pop di
ret VZ_RET
parse_path endp parse_path endp
isbslash proc isbslash proc
@ -1256,7 +1256,7 @@ isbslash proc
_ifn e _ifn e
cmp al,'/' cmp al,'/'
_endif _endif
ret VZ_RET
isbslash endp isbslash endp
;------------------------------------------------ ;------------------------------------------------
@ -1287,12 +1287,12 @@ _repeat
mov cl,MASK_DIR mov cl,MASK_DIR
call scan_mask call scan_mask
_while c _while c
ret VZ_RET
readdirs1: readdirs1:
clr si clr si
clr bx clr bx
; call read_a_dir ; call read_a_dir
; ret ; VZ_RET
read_dirs endp read_dirs endp
;----- Read a directory ----- ;----- Read a directory -----
@ -1417,7 +1417,7 @@ radir8:
test [bp].option,OPT_S+OPT_G test [bp].option,OPT_S+OPT_G
jnz read_subdir jnz read_subdir
radir9: ret radir9: VZ_RET
read_a_dir endp read_a_dir endp
;----- Read sub-directory ----- ;----- Read sub-directory -----
@ -1455,7 +1455,7 @@ _repeat
add di,type Dirslot add di,type Dirslot
_until _until
clc clc
ret VZ_RET
read_subdir endp read_subdir endp
;----- Get directories ----- ;----- Get directories -----
@ -1538,7 +1538,7 @@ gdirs8:
gdirs_x: gdirs_x:
stc stc
pop si pop si
ret VZ_RET
get_dirs endp get_dirs endp
;----- Get files by response file ----- ;----- Get files by response file -----
@ -1581,7 +1581,7 @@ gfiles1:
cmp di,[bp].dslotmax cmp di,[bp].dslotmax
jb gfiles1 jb gfiles1
stc stc
ret VZ_RET
gfiles8: gfiles8:
mov dx,offset cgroup: mask_all mov dx,offset cgroup: mask_all
mov bh,[bp].option mov bh,[bp].option
@ -1591,7 +1591,7 @@ gfiles8:
_endif _endif
mov [bp].dslotp,di mov [bp].dslotp,di
clc clc
ret VZ_RET
get_files endp get_files endp
;---- Get a file from filelist ----- ;---- Get a file from filelist -----
@ -1604,7 +1604,7 @@ get_a_file proc
cmp si,[bp].refend cmp si,[bp].refend
_if ae _if ae
stc stc
ret VZ_RET
_endif _endif
pushm <cx,di,es> pushm <cx,di,es>
movseg es,ds movseg es,ds
@ -1640,7 +1640,7 @@ get_a_file proc
dec si dec si
popm <es,di,cx> popm <es,di,cx>
clc clc
ret VZ_RET
get_a_file endp get_a_file endp
;----- Make read path ----- ;----- Make read path -----
@ -1655,7 +1655,7 @@ makepath: pushm <di,es>
mov di,offset cgroup: pathbuf mov di,offset cgroup: pathbuf
call makepath1 call makepath1
popm <es,di> popm <es,di>
ret VZ_RET
makesrcpath endp makesrcpath endp
makedstpath proc makedstpath proc
@ -1672,7 +1672,7 @@ makedstpath proc
_endif _endif
_endif _endif
movseg ds,cs movseg ds,cs
ret VZ_RET
makedstpath endp makedstpath endp
makedstpath1 proc makedstpath1 proc
@ -1683,7 +1683,7 @@ makedstpath1 proc
mov es,ax mov es,ax
_endif _endif
call makepath call makepath
ret VZ_RET
makedstpath1 endp makedstpath1 endp
makepath1 proc makepath1 proc
@ -1723,7 +1723,7 @@ makepath1 proc
pop dx pop dx
pop bx pop bx
movseg ds,cs movseg ds,cs
ret VZ_RET
makepath1 endp makepath1 endp
;----- Check destination directory ----- ;----- Check destination directory -----
@ -1750,7 +1750,7 @@ check_dst proc
_ifn z _ifn z
mov di,[bp].dslotp mov di,[bp].dslotp
_endif _endif
ret VZ_RET
_endif _endif
xdst_loop: xdst_loop:
mov di,[bp].dslotp mov di,[bp].dslotp
@ -1828,7 +1828,7 @@ xdst_clr:
_until _until
_endif _endif
mov di,[bp].dslotend mov di,[bp].dslotend
ret VZ_RET
check_dst endp check_dst endp
;----- Check exclusive dir/mask ----- ;----- Check exclusive dir/mask -----
@ -1844,7 +1844,7 @@ _repeat
_break c _break c
call strskip call strskip
_until _until
ret VZ_RET
check_ex endp check_ex endp
;----- Scan mask ----- ;----- Scan mask -----
@ -1871,7 +1871,7 @@ _repeat
_until _until
scmask_c: stc scmask_c: stc
scmask9: pop cx scmask9: pop cx
ret VZ_RET
scan_mask endp scan_mask endp
;----- Compare mask ----- ;----- Compare mask -----
@ -1887,7 +1887,7 @@ comp_mask proc
_if e _if e
stc stc
_endif _endif
ret VZ_RET
_endif _endif
pushm <si,di> pushm <si,di>
@ -1914,7 +1914,7 @@ cpmsk2:
_endif _endif
clc clc
cpmsk9: popm <di,si> cpmsk9: popm <di,si>
ret VZ_RET
cpmsk_a: cpmsk_a:
_repeat _repeat
mov al,es:[di] mov al,es:[di]
@ -1989,7 +1989,7 @@ _until
_endif _endif
_endif _endif
mov al,EL_OK mov al,EL_OK
docpy9: ret docpy9: VZ_RET
do_copy endp do_copy endp
assume ds:cgroup assume ds:cgroup
@ -2056,7 +2056,7 @@ _until
msdos F_CLOSE msdos F_CLOSE
_endif _endif
cfile9: pop ds cfile9: pop ds
ret VZ_RET
copy_file endp copy_file endp
;----- Requst copy buffer ----- ;----- Requst copy buffer -----
@ -2079,7 +2079,7 @@ req_cpybf proc
mov cx,8 mov cx,8
rep stosw rep stosw
clr di clr di
req9: ret req9: VZ_RET
req_cpybf endp req_cpybf endp
;----- Flush buffer ----- ;----- Flush buffer -----
@ -2149,7 +2149,7 @@ flush1: call do_verify
_endif _endif
mov ax,[bp].cpybftop mov ax,[bp].cpybftop
mov [bp].cpybfend,ax mov [bp].cpybfend,ax
flush9: ret flush9: VZ_RET
do_flush endp do_flush endp
;----- Open for write ----- ;----- Open for write -----
@ -2226,7 +2226,7 @@ openw4: inc [bp].openwcnt
openw5: openw5:
mov [bp].cpybf_q,ax mov [bp].cpybf_q,ax
clc clc
openw9: ret openw9: VZ_RET
open_write endp open_write endp
open_w proc open_w proc
@ -2236,7 +2236,7 @@ open_w proc
mov al,O_UPDATE mov al,O_UPDATE
_endif _endif
msdos F_OPEN msdos F_OPEN
ret VZ_RET
open_w endp open_w endp
;----- Open for /g ----- ;----- Open for /g -----
@ -2257,7 +2257,7 @@ open_gather proc
pop ax pop ax
pop dx pop dx
clc clc
ret VZ_RET
_endif _endif
_endif _endif
pop bx pop bx
@ -2267,7 +2267,7 @@ open_gather proc
pop dx pop dx
call inc_ext call inc_ext
stc stc
ret VZ_RET
open_gather endp open_gather endp
inc_ext proc inc_ext proc
@ -2287,7 +2287,7 @@ _until z
inc si inc si
pop [si] pop [si]
mov byte ptr [si+2],0 mov byte ptr [si+2],0
ret VZ_RET
inc_ext endp inc_ext endp
;----- Write file ----- ;----- Write file -----
@ -2348,7 +2348,7 @@ _until
_endif _endif
mov [bp].readmsgf,al mov [bp].readmsgf,al
write8: clc write8: clc
write9: ret write9: VZ_RET
do_write endp do_write endp
;----- Close files ----- ;----- Close files -----
@ -2400,7 +2400,7 @@ _until
mov al,ER_DSKFULL mov al,ER_DSKFULL
stc stc
_endif _endif
close9: ret close9: VZ_RET
close_file endp close_file endp
;----- Close/Delete a file ----- ;----- Close/Delete a file -----
@ -2456,7 +2456,7 @@ delete1: msdos F_CLOSE
; _endif ; _endif
_endif _endif
_endif _endif
close19: ret close19: VZ_RET
close1 endp close1 endp
;----- Verify destination file ----- ;----- Verify destination file -----
@ -2529,7 +2529,7 @@ verify3: mov ax,es:cb_next
_until _until
clc clc
mov [bp].fh_v,bx mov [bp].fh_v,bx
verify9: ret verify9: VZ_RET
do_verify endp do_verify endp
;----- Verify one block ----- ;----- Verify one block -----
@ -2579,11 +2579,11 @@ verb_x:
jc verb9 jc verb9
clr bx clr bx
_endif _endif
ret VZ_RET
_else _else
mov al,ER_VERIFY mov al,ER_VERIFY
stc stc
ret VZ_RET
_endif _endif
_endif _endif
_endif _endif
@ -2599,7 +2599,7 @@ verb_x:
_endif _endif
_endif _endif
clc clc
verb9: ret verb9: VZ_RET
verify_block endp verify_block endp
;----- Check for Incremental copy ----- ;----- Check for Incremental copy -----
@ -2660,7 +2660,7 @@ check_inc proc
chkinc8: chkinc8:
msdos F_SEEK,1 msdos F_SEEK,1
stl [di].cb_seek stl [di].cb_seek
chkinc9: ret chkinc9: VZ_RET
check_inc endp check_inc endp
;---- Seek file ----- ;---- Seek file -----
@ -2683,7 +2683,7 @@ _repeat
_loop _loop
_endif _endif
_endif _endif
ret VZ_RET
do_seek endp do_seek endp
;----- Make directory ----- ;----- Make directory -----
@ -2747,7 +2747,7 @@ makedir proc
msdos F_ATTR,1 msdos F_ATTR,1
_endif _endif
clc clc
mkdir9: ret mkdir9: VZ_RET
makedir endp makedir endp
;----- Display read message ----- ;----- Display read message -----
@ -2766,7 +2766,7 @@ disp_readmsg proc
call putc call putc
_endif _endif
_endif _endif
ret VZ_RET
disp_readmsg endp disp_readmsg endp
;----- Display file name ----- ;----- Display file name -----
@ -2825,7 +2825,7 @@ disp_fname proc
call putfname call putfname
popm <es,ds> popm <es,ds>
_endif _endif
ret VZ_RET
disp_fname endp disp_fname endp
putfname proc putfname proc
@ -2861,7 +2861,7 @@ _repeat
call putspc call putspc
inc cx inc cx
_until _until
ret VZ_RET
putfname endp putfname endp
assume ds:cgroup assume ds:cgroup
@ -2877,7 +2877,7 @@ echo_file proc
inc [bp].totalfiles inc [bp].totalfiles
_endif _endif
_endif _endif
ret VZ_RET
echo_file endp echo_file endp
;------------------------------------------------ ;------------------------------------------------
@ -2897,7 +2897,7 @@ init_move proc
_if e _if e
or [bp].mode,MOV_SAMEDRV or [bp].mode,MOV_SAMEDRV
_endif _endif
ret VZ_RET
init_move endp init_move endp
;----- Move file ----- ;----- Move file -----
@ -2939,7 +2939,7 @@ move_file proc
_endif _endif
inc [bp].totalfiles inc [bp].totalfiles
_endif _endif
move9: ret move9: VZ_RET
move_file endp move_file endp
;----- Do delete ----- ;----- Do delete -----
@ -2968,7 +2968,7 @@ do_delete proc
call delete_dirs call delete_dirs
dodel9: mov al,EL_OK dodel9: mov al,EL_OK
clc clc
ret VZ_RET
do_delete endp do_delete endp
;----- Init delete ----- ;----- Init delete -----
@ -2992,7 +2992,7 @@ init_del proc
rep stosb rep stosb
call getcurdir call getcurdir
call cd_rootdir call cd_rootdir
ret VZ_RET
init_del endp init_del endp
;----- Delete directories ----- ;----- Delete directories -----
@ -3034,7 +3034,7 @@ _until z
call setcurdir call setcurdir
pop dx pop dx
msdos F_CTRL_C,1 msdos F_CTRL_C,1
ret VZ_RET
delete_dirs endp delete_dirs endp
rmdir proc rmdir proc
@ -3045,7 +3045,7 @@ rmdir proc
msdos F_RMDIR msdos F_RMDIR
_endif _endif
_endif _endif
ret VZ_RET
rmdir endp rmdir endp
;----- Delete by FCB ----- ;----- Delete by FCB -----
@ -3082,7 +3082,7 @@ _until
_endif _endif
pop ds pop ds
_endif _endif
ret VZ_RET
del_fcb endp del_fcb endp
;----- Delete by file handle ----- ;----- Delete by file handle -----
@ -3118,7 +3118,7 @@ _repeat
_endif _endif
add si,type Dirslot add si,type Dirslot
_until _until
ret VZ_RET
del_handle endp del_handle endp
;----- Confirmation ----- ;----- Confirmation -----
@ -3152,7 +3152,7 @@ _ifn z
_endif _endif
_endif _endif
_endif _endif
ret VZ_RET
confirm endp confirm endp
assume ds:cgroup assume ds:cgroup
@ -3173,7 +3173,7 @@ skipspc1:
cmp al,SPC cmp al,SPC
je skipspc je skipspc
skpspc8: dec si skpspc8: dec si
ret VZ_RET
skipspc endp skipspc endp
; ;
;----- Skip string ----- ;----- Skip string -----
@ -3186,7 +3186,7 @@ strskip proc
call skipstr call skipstr
mov si,di mov si,di
popm <es,di> popm <es,di>
ret VZ_RET
strskip endp strskip endp
skipstr proc skipstr proc
@ -3196,7 +3196,7 @@ skipstr proc
repnz scasb repnz scasb
mov ax,cx mov ax,cx
pop cx pop cx
ret VZ_RET
skipstr endp skipstr endp
; ;
;----- Char to upper case ----- ;----- Char to upper case -----
@ -3210,7 +3210,7 @@ toupper proc
sub al,'a'-'A' sub al,'a'-'A'
stc stc
_endif _endif
ret VZ_RET
toupper endp toupper endp
; ;
;----- Copy string ----- ;----- Copy string -----
@ -3226,7 +3226,7 @@ _repeat
tst al tst al
_until z _until z
dec di dec di
ret VZ_RET
strcpy endp strcpy endp
; ;
;----- Compare two strings ----- ;----- Compare two strings -----
@ -3248,7 +3248,7 @@ strcmp proc
pop di pop di
rep cmpsb rep cmpsb
strcmp9: popm <di,si,cx> strcmp9: popm <di,si,cx>
ret VZ_RET
strcmp endp strcmp endp
; ;
;----- Put char/string ----- ;----- Put char/string -----
@ -3260,7 +3260,7 @@ putc proc
mov dl,al mov dl,al
msdos F_DSPCHR msdos F_DSPCHR
pop dx pop dx
ret VZ_RET
putc endp putc endp
putspc endp putspc endp
@ -3271,7 +3271,7 @@ putcrlf proc
mov al,LF mov al,LF
call putc call putc
pop ax pop ax
ret VZ_RET
putcrlf endp putcrlf endp
puts proc puts proc
@ -3289,7 +3289,7 @@ puts proc
mov bx,1 mov bx,1
msdos F_WRITE msdos F_WRITE
puts9: popm <es,di,dx,cx,bx,ax> puts9: popm <es,di,dx,cx,bx,ax>
ret VZ_RET
puts endp puts endp
putmsg proc putmsg proc
@ -3297,7 +3297,7 @@ putmsg proc
movseg ds,cs movseg ds,cs
call puts call puts
pop ds pop ds
ret VZ_RET
putmsg endp putmsg endp
; ;
;----- Put number ----- ;----- Put number -----
@ -3344,7 +3344,7 @@ putnm6: push dx
tst bx tst bx
jnz putnm3 jnz putnm3
popm <dx,bx> popm <dx,bx>
ret VZ_RET
putnumber endp putnumber endp