Category : BASIC Source Code
Archive   : QBWIZ20.ZIP
Filename : CRT.ASM

 
Output of file : CRT.ASM contained in archive : QBWIZ20.ZIP
comment #

+----------------------------------------------------------------------+
| |
| QBWiz Copyright (c) 1990-1992 Thomas G. Hanlin III |
| |
| QuickBasic Access Library |
| |
+----------------------------------------------------------------------+

#

public CRT


.model medium

.code



CRT proc ; get display adapter type
mov al,b$Adapter ;
test al,1 ; MDA?
jnz MDA ; yep, set it
test al,2 ; CGA?
jnz CGA ; yep, set it
test al,4 ; EGA?
jnz EGA ; yep, set it
VGA: mov ax,"GV" ;
Done: mov word ptr String,ax ; save first char
mov ax,offset DGROUP:Str ; point to string header
ret ;
MDA: mov ax,"DM" ;
jmp Done ;
CGA: mov ax,"GC" ;
jmp Done ;
EGA: mov ax,"GE" ;
jmp Done ;
CRT endp ; get display adapter type



.data

extrn b$Adapter: byte

Str dw 3,offset DGROUP:String
String db "MDA"



end


  3 Responses to “Category : BASIC Source Code
Archive   : QBWIZ20.ZIP
Filename : CRT.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/