Category : C Source Code
Archive   : CEXPRESS.ZIP
Filename : REVERSE.ASM

 
Output of file : REVERSE.ASM contained in archive : CEXPRESS.ZIP
;void reverse();

EXTRN _memory_model:byte
EXTRN _color:byte

_TEXT SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:_TEXT
PUBLIC _reverse
_reverse proc near
mov al,_color ;get the current color
and al,10001000B ;relevant bits OFF
or al,1110000B ;relevant bits ON
mov _color,al ;set new value
cmp _memory_model,0 ;quit
jle quit ;
db 0CBh ;RET far
quit: ret ;RET near
_reverse endp
_TEXT ENDS
END


  3 Responses to “Category : C Source Code
Archive   : CEXPRESS.ZIP
Filename : REVERSE.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/