Commit Graph

9 Commits

Author SHA1 Message Date
Jonathan Campbell
dce1c911d9 Remove INT 16h when entering PC-98 mode. DOS CONIO emulation calls INT
16h handler directly (well... somewhat indirectly due to how INT16h
expects to implement idle). INT 10h-17h are now zeroed out in PC-98
mode.
2017-11-13 15:45:41 -08:00
Alan Stern
8079594a97 Add support for DOS's CPM entry point:
Fill in the far_call and cpm_entry values for each new PSP.
	cpm_entry is an alias to the Int 30 vector located at 0:c0,
	and the alias is adjusted so that the offset part is also
	the maximum amount of program space available to a .com type
	of program.

	The Int 30 and 31 vectors are occupied by a far jmp to the
	callback routine.

	The callback routine pushes the flags and rearranges the stack
	to resemble an ordinary Int 21 call.  It checks the value of
	cl and if it is in range, copies it to ah and invokes the
	regular Int 21 callback.

Believe it or not, people still run programs that use this mechanism.
2017-05-24 14:33:37 -04:00
Jonathan Campbell
6f3b96eef7 callback: allow "reinstallation" of the vector without an E_Exit call
complaining about double vector usage. BIOS: Use the "reinstall" flag to
reinstate interrupt vectors on boot-up.
2016-02-20 00:08:19 -08:00
Jonathan Campbell
71b506dbb3 also add proper default handler for IRQ 8-15 (one that ACKs both PICs). 2016-01-30 20:41:02 -08:00
Jonathan Campbell
ffbad0b2b3 svn mainline r3878:
Year update.
2015-01-25 21:13:25 -08:00
Jonathan Campbell
5e9a21a2bd some cleanup with help from truth5678 2014-12-28 22:23:36 -08:00
Jonathan Campbell
fea06c2287 CPU callback table is now dynamically allocated by ROM BIOS if mainline
compatible mapping turned off.
2014-06-10 21:53:34 -07: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