home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
181.img
/
TASM-101.ZIP
/
TOGLFLAG.ASM
< prev
next >
Wrap
Assembly Source File
|
1988-10-31
|
485b
|
18 lines
DOSSEG
.MODEL SMALL
.DATA
EXTRN _Flag:word
.CODE
PUBLIC _ToggleFlag
_ToggleFlag PROC
cmp [_Flag],0 ;is the flag reset?
jz SetFlag ;yes, set it
mov [_Flag],0 ;no, reset it
jmp short EndToggleFlag ;done
SetFlag:
mov [_Flag],1 ;set flag
EndToggleFlag:
ret
_ToggleFlag ENDP
END