• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
Bish96048420

How do I program in DOS(Disk-Operating-System)directly?

7 posts in this topic

Ok, so I thought it would be kind of cool & retro to make a classic 16-bit style game using the C programming language, which can be used from C++, right?

However, I'm kind of lost.

How do I specifically code a program to execute like one would in DOS back in Windows 95/98?

Windows 7 has DOS, right? Isn't it still a 16-bit OS?

But is there a specific way you program for it?

I want to make a graphical game obviously, even though DOS works in a one-bit per-pixel style.

I'm sorry, but I'm kind of confused ... any pointers?
0

Share this post


Link to post
Share on other sites
You need a 16-bit compiler, like Turbo C++. You also need a 32-bit windows OS or emulator.
1

Share this post


Link to post
Share on other sites
Thanks! I'll make sure to get Turbo C++.

But ... I have a 64-bit version of Windows 7.

What do you mean by an emulator of 32-bits?

There are emulators for Windows 7 32-bit? O.o
0

Share this post


Link to post
Share on other sites
Since Vista, IIRC, 16-bit support has been removed from Windows 64-bit editions. You'll need a version that supports WoW16 still (IIRC 32-bit editions of Windows still have this) or a VM that runs a true 16-bit OS.


If you want to really write 16-bit code, that's it anyways; if you just want a game that [i]looks[/i] retro but still runs in 32/64-bit modes, there's easier ways to do that. If you just want to write really low-level stuff on a limited architecture, look into the Arduino or something similar.
0

Share this post


Link to post
Share on other sites
What if I want to write 2, 4, and 8-bit code for 8-bit games?

Could I download an 8 or 16-bit OS, and boot a separate partition of the hard drive where I store the OS, and, when capable, program from that OS in the lower bit system support?

Like Windows 95 for example. Are there any downloads of it available?

And does coding style strictly change within different bits?

Because I notice that in DOS you have to add a whole bunch of code that is specific to DOS's 16-bit system.
0

Share this post


Link to post
Share on other sites
But your suggestions are a perfect example as to why I was struck to write this post:

[url="http://www.gamedev.net/topic/623081-they-say-computers-are-strictly-logical-and-so-basic-but-i-say-otherwise/"]http://www.gamedev.n...-say-otherwise/[/url]

I disagree with you, and that post above will open your mind.
-7

Share this post


Link to post
Share on other sites
A few wrong ideas up-front.

Windows 7 doesn't "have DOS"; it has a command-prompt, but that command-prompt is a native Windows application. The last DOS-based version of Windows was Windows Me; Windows 2000, XP, Vista and 7 are not DOS-based.

Windows 7 is not 16-bit. The last 16-bit version of Windows was 3.x in the early 90s; Windows 95, 98 and Me were hybrid 16/32, all NT-class versions of Windows (which includes 2000, XP, Vista and 7) are fully native 32-bit or 64-bit.

Under any of these operating systems you cannot access the hardware directly. It's forbidden, you must go through an API.

JTippets is correct - the old days were horrible. No multitasking, no device drivers, no protected memory, you could (and often did) write a program that gleefully corrupted anything else on your PC. Back in the late 80s/early 90s writing "the C program that rebooted your computer" was a rite of passage - and that was the least worst thing you could do.

No standardization - you had to write a separate renderer, separate sound code, separate input code, etc for each variation of hardware that could exist. No guarantee that your program could work on any other machine.

The answer to your question is: "you don't". Those days are gone, and for very good reasons.
1

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0