Commit Graph

17 Commits

Author SHA1 Message Date
Jonathan Campbell
0d1beebfd1 add mount -ro option, to mount a local folder readonly, update DOS kernel to support returning "write protect" error code 2018-02-08 00:29:25 -08:00
Jonathan Campbell
4345b7c25f Following prior changes, change maximum sector size to 1024
bytes/sector. DOSBox-X now appears to be able to mount PC-98 FDI images
directly.
2017-11-25 23:12:02 -08:00
Jonathan Campbell
03ac1a43c0 make bootsector max size a #define constant. remove unused misc[] member. 2017-11-25 21:48:40 -08:00
Jonathan Campbell
e23fcd39bb DOS info block fix: the NUL header has two 16-bit WORDs for interrupt
and strategy, NOT one 32-bit DWORD for strategy. Each 16-bit WORD is an
offset relative to the header.
2017-09-16 18:57:43 -07:00
Darik Horn
7f78ea0955 Use regular file streams in MinGW builds.
Interfaces like fopen, ftell, and fseek are 64-bit compatible in the
MinGW runtime.
2017-05-12 13:08:16 -04:00
Jonathan Campbell
5b90fd9eee sticking large binary blobs in shell.cpp is messy. start moving those
blobs out into their own files.
2015-10-19 13:21:18 +00:00
Jonathan Campbell
3232582e8e sorry. LFN patch completely breaks file I/O in DOSBox. reverting. 2015-08-16 03:33:59 -07:00
Jonathan Campbell
41bd80c3bf LFN (Long File Name) support patch
[https://github.com/joncampbell123/dosbox-x/issues/105]
2015-08-16 02:02:30 -07:00
Jonathan Campbell
ffbad0b2b3 svn mainline r3878:
Year update.
2015-01-25 21:13:25 -08:00
Jonathan Campbell
7e6d9e25c4 DOS kernel: Modified psp() and dta() functions to print BUG message and
ignore attempts to read/write PSP and DTA segments IF booted into a
guest OS.
2014-04-26 00:15:10 -07:00
Jonathan Campbell
e1aa849af8 Define DOS_FIRST_SHELL_END variable to mark the end of the shell's
workspace. The reason this variable is needed is because DOSBox-X's
dynamic allocation mode permits additional allocation to happen before
determining the value of DOS_MEM_START. And the reason that is important
is because the DOS shell builtin assumed that it could use the area from
DOS_FIRST_SHELL+19 to DOS_MEM_START as it's environment block, when it
turns out the dynamic allocation method would have already assigned the
extra space to certain DOS kernel structures. Oops!
2014-04-23 13:37:52 -07:00
Jonathan Campbell
34aecc57cf update DOS_GetMemory() to carry with it a string to convey the purpose
of the allocation.
2014-01-21 15:01:00 -08:00
Jonathan Campbell
fa43e4b203 move fixed global constants defining segments into dos.cpp and make them
variables. We're going to allow for dynamic mapping later.
2014-01-18 16:56:36 -08:00
Jonathan Campbell
1754a6caf5 updated comments about apparently data at 0xD000. It turns out what
DOSBox was doing at 0xD000 was emulating Upper Memory Blocks. Added code
to memory handler to default map out those pages, then allow the XMS
driver to map them back to RAM. Added options so that you can control
the UMB region and size from dosbox.conf.
2014-01-18 16:19:33 -08:00
Jonathan Campbell
4d0e86801f split DOS_GetMemory() to make BIOS_GetMemory() which allocates from a
region in the 0xF000 segment instead of DOSBox's private segment at
0xC800. Corrected language regarding realbig16, the B (big) bit hack
doesn't allow for 32-bit real mode code, it only allows the code segment
to extend past 64KB (huge real mode).
2014-01-18 15:18:46 -08:00
Jonathan Campbell
21614b8c3f toss out my copy, integrate tawoongs's daum branch code into mine,
remove what won't compile, begin work.
2013-10-14 05:07:26 -07:00
root
f331824031 port from svn 2013-07-07 20:39:49 -07:00