Reply 20 of 33, by Procyon
- Rank
- Member
@procyon:
I remember that scene! 😀 But what is the point of linking to it in this thread?
Do not read if you don't like attention seeking self-advertisements!
Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels
Peter Swinkels wrote on 2021-09-10, 20:21:@procyon:
I remember that scene! 😀 But what is the point of linking to it in this thread?
Just as a reminder that it's pretty old stuff your dealing with. 😁
And I love that scene and use any excuse to post it. 😜
Yes, this thread is old I admitted I was aware of that earlier. And anything DOS related is 20+ years old in most cases. Isn’t that the point of this whole website?
Do not read if you don't like attention seeking self-advertisements!
Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels
Is it possible to determine the graphics adapter using Q(uick)Basic, at least for compatibility with CGA-EGA-VGA?
÷)
You can use Int 10h function 1Ah to get "Display Combination"
In this document at the bottom of page 21: http://www2.ift.ulaval.ca/~marchand/ift17583/dosints.pdf
If you call Int 10h/1Ah then BL will contain the "active display code".
See here for more information on how to call interrupts in QuickBasic (QBasic doesn't support this): http://www.petesqbsite.com/sections/tutorials … interrupts.html
@pano69:
QBasic doesn't support CALL INTERRUPT but it does support CALL ABSOLUTE. I've never done it myself, but it should be possible to write a machine language procedure to call interrupts using that statement.
Do not read if you don't like attention seeking self-advertisements!
Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels
Peter Swinkels wrote on 2022-06-28, 21:54:@pano69:
QBasic doesn't support CALL INTERRUPT but it does support CALL ABSOLUTE. I've never done it myself, but it should be possible to write a machine language procedure to call interrupts using that statement.
Ah, okay. I'm not that familier with QBasic to be honest. But having said that, I haven't touch QuickBasic in any meaningful way either for the past 25 or so years 😀
I guess if people are hellbent on getting interrupts to work in QBasic then the CALL ABSOLUTE could work (like yourself, I never used it) but I guess when you come to a point like that it might be useful to ask yourself if QBasic is actually the way forward.
But then again, I guess the masochism of using old computer systems is part of the charm. 😀
Perhaps the op should consider using C or C++. Or even Turbo Pascal.
Do not read if you don't like attention seeking self-advertisements!
Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels
Peter Swinkels wrote on 2022-06-29, 10:20:Perhaps the op should consider using C or C++. Or even Turbo Pascal.
Helped at the cyberforum:
ON ERROR GOTO etrap
er = 0
SCREEN 12: SCREEN 0
ON ERROR GOTO 0
IF er = 0 THEN a$ = "VGA": GOTO pr
ON ERROR GOTO etrap
er = 0
SCREEN 9: SCREEN 0
ON ERROR GOTO 0
IF er = 0 THEN a$ = "EGA": GOTO pr
ON ERROR GOTO etrap
er = 0
SCREEN 2: SCREEN 0
ON ERROR GOTO 0
IF er = 0 THEN a$ = "CGA": GOTO pr
a$ = "Unknown"
pr:
PRINT "Video adapter is "; a$
END
etrap:
er = ERR
RESUME NEXT
÷)
This could be adapted to other languages as well:
https://www.phatcode.net/articles.php?id=210
EMS for QuickBASIC
Do not read if you don't like attention seeking self-advertisements!
Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels
For CGA emulation in Hercules there is HGCIBM.
Is there a solution to emulate EGA in Tandy (PCJr)?
Because the video modes are similar (320 × 200 × 16) — https://groups.google.com/g/comp.sys.tandy/c/qQ7XYKSLItA
And also, perhaps, similar solutions for Olivetti and Plantronics Colorplus?
÷)
Looks like the issue has been resolved, thanks for sharing — Re: Emulation of rare graphics adapters
÷)
Do you know further games besides Tyrian and crusade (what I read here) that use 16BIT extender?
1) VLSI SCAMP 311 | 386SX25@30 | 16MB | CL-GD5434 | CT2830| SCC-1 | MT32 | Fast-SCSI AHA 1542CF + BlueSCSI v2/15k U320
2) SIS486 | 486DX/2 66(@80) | 32MB | TGUI9440 | SG NX Pro 16 | LAPC-I