Live data from Hacker News

A framework for making 2D DOS games in Lua

github.com

1–10 of 20 posts

Re: A framework for making 2D DOS games in Lua

#4
post #2

Very cool. It's been ages since I did anything with DOS, but are you limited to 640KB of memory, or can this use real mode/etc. to get access to more memory?

I think it's the other way around - real mode has the 640kb limit and protected mode gets you a 32-bit address space.

Re: A framework for making 2D DOS games in Lua

#6
post #2

Very cool. It's been ages since I did anything with DOS, but are you limited to 640KB of memory, or can this use real mode/etc. to get access to more memory?

There are gaps in my knowledge, but my understanding is that to address 32-bits of memory requires the use of a "DOS extender". The reason being that DOS is barely an operating system at all- It never provided any 32-bit support but support was possible by monkey patching over part of the operating system in memory. This was possible because DOS had no security measures preventing such horrifying endeavours.

Anyway, I see no reference to a dos extender here so I don't know how it could be anything other than a 16-bit program.

If the author of this framework is looking for a dos extender, I think HX seems like a good choice: http://www.japheth.de/HX.html

unlike other DOS extenders, that provide idiosyncratic apis for allocating 32-bit memory, HX imitates as much as possible standard windows apis, and is able to run some windows applications in plain DOS- including, strangely enough, DOSBox.

(I have nothing to do with HX by the way.)

Re: A framework for making 2D DOS games in Lua

#7
That's cool. I've often wondered about creating a retro DOS-shareware-style game, as a throwback to Commander Keen and Jill of the Jungle etc.

It'd be a challenge working with the limited resources, but since most things run DosBOX, you'd also get cross-platform compatibility for free :)

Re: A framework for making 2D DOS games in Lua

#8
post #2

Very cool. It's been ages since I did anything with DOS, but are you limited to 640KB of memory, or can this use real mode/etc. to get access to more memory?

There are gaps in my knowledge, but my understanding is that to address 32-bits of memory requires the use of a "DOS extender". The reason being that DOS is barely an operating system at all- It never provided any 32-bit support but support was possible by monkey patching over part of the operating system in memory. This was possible because DOS had no security measures preventing such horrifying endeavours. Anyway,…

[deleted]

Re: A framework for making 2D DOS games in Lua

#9
post #2

Very cool. It's been ages since I did anything with DOS, but are you limited to 640KB of memory, or can this use real mode/etc. to get access to more memory?

There are gaps in my knowledge, but my understanding is that to address 32-bits of memory requires the use of a "DOS extender". The reason being that DOS is barely an operating system at all- It never provided any 32-bit support but support was possible by monkey patching over part of the operating system in memory. This was possible because DOS had no security measures preventing such horrifying endeavours. Anyway,…

The compiler used is DJGPP, a port of GCC that comes with a DOS extender, a POSIX-compatible C library and pretty much everything else needed to pretend that you're using a Unix system. Basically Cygwin for DOS.
Post reply on HN