yetmorecode / dos32a-ng Goto Github PK
View Code? Open in Web Editor NEW2021 version of DOS/32A DOS Extender.
License: Other
2021 version of DOS/32A DOS Extender.
License: Other
While testing VESA modes on FastDoom I've discovered that DPMI function 0800h crashes if you try to map more than 8Mb. This issue also happens on other games, and it's why the NOLFB utility was created. This is the code I use (modified to avoid crashes).
#define MEMORY_LIMIT (128*64*1024)
void *DPMI_MAP_PHYSICAL(void *p, unsigned long size)
{
// Limit memory to 8Mb, mapping 16Mb crashes
if (size > MEMORY_LIMIT)
size = MEMORY_LIMIT;
/* DPMI call 800h map physical memory*/
PrepareRegisters();
regs.w.ax = 0x0800;
regs.w.bx = (unsigned short)(((unsigned long)p) >> 16);
regs.w.cx = (unsigned short)(((unsigned long)p) & 0xffff);
regs.w.si = (unsigned short)(size >> 16);
regs.w.di = (unsigned short)(size & 0xffff);
int386x(0x31, ®s, ®s, &sregs);
return (void *)(((unsigned long)regs.w.bx << 16) | regs.w.cx);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.