Volker Ruppert
79b811f23f
- fixed warnings in these files:
...
cpu/fetchdecode.cc
cpu/mmx.cc
cpu/proc_ctrl.cc
iodev/virt_timer.cc
plugin.cc
2003-05-02 12:22:48 +00:00
Volker Ruppert
3411535a8b
- 'split screen' feature for standard VGA 16-color modes implemented
...
* new variables 'line_compare' and 'vertical_display_end' depend on CRT
register values
* implemented 'split screen' in functions update() and mem_write()
- mem_write(): CGA section: unnecessary variable 'isEven' removed
2003-05-02 07:32:06 +00:00
Volker Ruppert
8b22768895
- applied some speed optimizations in mem_write() from patch.vga-mode2-speed-dohzono
2003-05-01 12:07:27 +00:00
Volker Ruppert
d02c729791
- removed variable 'scan_bits' and added new variable 'line_offset'. It specifies
...
the address offset between two lines on the screen in all VGA modes.
It depends on the CRTC offset register value and the address mode (byte, word,
dword)
- moved screen update code to the end of the write handler. If a register change
should force a redraw of the screen, the variable 'needs_update' must be set
to 1.
- changes to the attribute controller palette index register now force a redraw
of the screen
- modeX: calculation of the tile numbers fixed
2003-04-28 18:15:31 +00:00
Christophe Bothamy
f8d2f7b701
- define execute_script function only when tap or tuntap is used
...
- add wait.h to fix compile problems
- output log info through ne2k device
2003-04-28 13:01:09 +00:00
Christophe Bothamy
b2e98b3372
- add comments where fixes are needed for other BSDs
2003-04-28 12:58:21 +00:00
Volker Ruppert
b1324da2e1
- function mem_read() rewritten
...
* check memory mapping before everything else
* read mode 1 optimized using a part of patch.vga-mode2-speed-dohzono
- function mem_write(): check memory mapping before everything else
- writes to the CRT registers are handled only if the new value differs
- a CRT start address change forces a redraw of the screen
2003-04-27 09:13:47 +00:00
Volker Ruppert
e79aa992af
- emulated CGA graphics mode 160x100x16 colors implemented using the text mode
...
with 100 rows and a char height of 4
- raster operations AND, OR and XOR in write mode 2 implemented (part of patch #707931 )
- use the vga_tile_updated array in modeX like other modes do
- small optimizations in the graphics update code
2003-04-26 16:43:22 +00:00
Christophe Bothamy
18e2900f02
- merge and move execute_script functions to eth.cc
2003-04-26 14:48:45 +00:00
Christophe Bothamy
ffb9fcf69e
- fix ne2k to work with grub. The remote-DMA check defaults to a safe
...
value instead of silently rejecting it. (patch from Keir Fraser)
2003-04-26 14:07:58 +00:00
Christophe Bothamy
52eda3dbec
- enable tap for FreeBSD (patch by Ronald Klop and Gen Otsuji)
2003-04-26 13:31:23 +00:00
Christophe Bothamy
a6dd6deaf5
- apply patch from James E. Flemer:
...
I've got a game that uses OPL2 functions. It's still not
working yet, but this patch brings it closer. Using Jeffrey S.
Lee's "Programming the AdLib/Sound Blaster FM Music Chips (Ver
2.0)"[1] as a reference, I found an inversion of the OPL timer
masks in the sb16 code. Without this patch, the emulator uses
the wrong bits for masking, and completely botches the flags
register (note the bitwise AND vs OR).
2003-04-25 23:32:55 +00:00
Christophe Bothamy
ce9893f540
- add coherency checks
2003-04-25 22:06:27 +00:00
Christophe Bothamy
33b017566a
- start Bochs cmos map list
2003-04-25 21:48:11 +00:00
Volker Ruppert
daee2aac9b
- improvements to mode 13h emulation (start address, scan bits, doublescan,
...
double width)
- cleanup in modeX emulation similar to mode 13h
- consider start address in function mem_write for VGA modes
- register 0x03c8 is readable, too
2003-04-25 18:51:55 +00:00
Christophe Bothamy
e319a63f9d
- fix "no 0xe9 output message to console" after cd eject (patch by Hartmut Birr)
2003-04-25 00:32:58 +00:00
Christophe Bothamy
2636e1a98d
- correct the debug message of the scancode set that was switched to (fix by osmaker)
2003-04-25 00:23:21 +00:00
Volker Ruppert
548dd3a13c
- doublescan feature implemented (used by CGA 640x200x2, VGA 640x200 and modeX)
...
- clear tile array when switching to graphics mode, clear text snapshot when
switching to text mode, do the same when changing the palette or disable video
- simplified the function determine_screen_dimensions()
- fixed the code for the CGA mode 640x200x2 in update() and mem_write()
2003-04-21 19:03:46 +00:00
Volker Ruppert
a6c6d50951
- CGA-compatible 640x200 2 color graphics mode (mode 6) implemented
...
- check of graphics_ctrl.shift_reg and BX_PANIC in vga mem_read() removed
2003-04-20 17:04:45 +00:00
Volker Ruppert
6b8da048a7
- fixed some uninitialized values found by valgrind
2003-04-07 17:08:38 +00:00
Volker Ruppert
d3b76c1ef9
- fixed 4 warnings
2003-04-05 08:26:49 +00:00
Gregory Alexander
8b1d1b2668
Fixed pit_wrap and virt_timer to update timer on reads.
2003-04-03 21:59:20 +00:00
Volker Ruppert
e5fc0292bc
- fixed the usage of BX_CPP_AttrRegparmN() at the i/o write handler.
...
The floppy access should work again.
2003-03-09 14:03:32 +00:00
Christophe Bothamy
4c91b32b33
- fix non detection of hard drives by minix2.
...
The problem was submitted by Erik van Zijst on the ml.
2003-03-05 10:43:52 +00:00
Christophe Bothamy
e24ea95e73
- clean up the messed file I checked in yesterday
2003-03-03 17:39:16 +00:00
Christophe Bothamy
50efc3b8c7
- apply Conn Clark's patch.perf-regparm-cclark :
...
- it works only on x86 with gcc2.95+
- uses the GCC function atribute "regparm(n)" to declare that certain
functions use the register calling convention
- performance improvement is about 6%
2003-03-02 23:59:12 +00:00
Volker Ruppert
14ca0d2550
- added stubs for the SB16 gameport
2003-02-24 18:35:48 +00:00
Christophe Bothamy
86f5aeb877
- fix compiling if BX_SCHEDULED_DIE_TIME is defined
2003-02-23 22:55:50 +00:00
Gregory Alexander
ef16df4f69
Fixed a few warnings.
2003-02-21 17:45:20 +00:00
Gregory Alexander
c96ae6360e
Stupid overzealous copy-and-paste.
2003-02-21 17:37:55 +00:00
Gregory Alexander
1ea6ff74dd
Return correct values from unregisterTimer.
2003-02-21 17:30:09 +00:00
Sigbjrrn Skjcret
7adae75957
Updated to latest changes...
2003-02-21 14:51:12 +00:00
Gregory Alexander
f195d3fa6d
Oops, stupid debug thing.
2003-02-21 03:49:27 +00:00
Gregory Alexander
de1b90d978
pit_wrap.cc never uses the realtime stuff anymore.
2003-02-18 16:57:44 +00:00
Gregory Alexander
b77b477bfa
The PIT is going to start using virtual timers instead
...
of having its own realtime mechanism. The old PIT
realtime mechanism will be removed next.
2003-02-18 16:54:48 +00:00
Gregory Alexander
25fb7ad86e
Linked virtual timer type to the realtime PIT option.
2003-02-18 16:52:40 +00:00
Gregory Alexander
4ea5f058f5
This is a hideously ugly hack that removes some of the
...
speed throddling. However, it keep up with real time now.
2003-02-18 04:07:42 +00:00
Gregory Alexander
6946666f71
Added init for bx_virt_timer
2003-02-18 03:38:03 +00:00
Gregory Alexander
f844486d08
Fixed some basic runtime problems.
...
Stuff runs now, but I'm working on getting it to behave properly.
2003-02-18 03:36:01 +00:00
Gregory Alexander
2f451da125
Move configuration defines to .cc file instead of .h one.
2003-02-17 05:08:48 +00:00
Gregory Alexander
640ec800fb
Fixed a few minor compile problems and updated initialization code.
2003-02-17 04:51:07 +00:00
Gregory Alexander
c0fa2db674
Add the virtual timers to the main compile.
2003-02-17 03:58:29 +00:00
Gregory Alexander
d9e1b2c8b7
Compiles now. I need to add some more stuff to test it.
2003-02-17 03:20:13 +00:00
Volker Ruppert
163c6be18d
- fixed some warnings in the lowlevel networking code
2003-02-16 19:35:57 +00:00
Gregory Alexander
a0070f6c69
Lots of updates. Doesn't sync with real time yet.
2003-02-16 04:58:43 +00:00
Gregory Alexander
b0e7f6d0c6
Working on timer part.
2003-02-15 23:39:41 +00:00
Gregory Alexander
c0d7138924
Working on a general-purpose virtual timer interface. This should allow
...
more consistent time interfaces once it's finished.
2003-02-14 21:05:36 +00:00
Volker Ruppert
e492acd792
- VBE 4 bpp modes are using the default vga read/write/update code (for VESA
...
mode 0x102 = SVGA mode 0x6a)
- function redraw_area() now uses the old screen dimensions for redrawing
2003-02-09 08:25:22 +00:00
Christophe Bothamy
579f3c0539
- apply Ben Lunt's 160k, 180k, 320k floppy patch
2003-02-06 23:16:56 +00:00
Volker Ruppert
322b428cec
- don't register i/o port address base+0x14 (comparison fixed)
2003-02-06 19:09:24 +00:00