VOGONS

Common searches


DOS game programming

Topic actions

Reply 21 of 33, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

@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

Reply 22 of 33, by Procyon

User metadata
Rank Member
Rank
Member
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. 😜

Reply 23 of 33, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

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

Reply 25 of 33, by pan069

User metadata
Rank Oldbie
Rank
Oldbie

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

Reply 26 of 33, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

@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

Reply 27 of 33, by pan069

User metadata
Rank Oldbie
Rank
Oldbie
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. 😀

Reply 28 of 33, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

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

Reply 29 of 33, by yevrowl

User metadata
Rank Newbie
Rank
Newbie
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

÷)

Reply 30 of 33, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

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

Reply 31 of 33, by yevrowl

User metadata
Rank Newbie
Rank
Newbie

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?

÷)

Reply 33 of 33, by Marco

User metadata
Rank Member
Rank
Member

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 / LAPC-I