home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
USCX
/
SETPGMS.ZIP
/
SETGLOB.ASM
< prev
next >
Wrap
Assembly Source File
|
1987-01-06
|
1KB
|
33 lines
PAGE 60,132
;Usage is: SETGLOB varname=value
;clone of SET command that demonstrates updating
; the environment string.
;No matter what,the
; global environment is updated
code_seg segment para public
assume cs:code_seg,ds:code_seg,es:code_seg
extrn env_set:near
org 80h
psp_parm_string db ?
org 100h
main proc far
jmp main_start
db 'Copyright 1987, A. B. Krueger GPW MI, 48236'
main_start: ;this is the actual main line program
mov si,offset psp_parm_string ;address of set string
or psp_parm_string,80h ;select global environment
call env_set ;change environment per ds:si
mov ah,4Ch
int 21h
main endp
code_seg ends
end main