Commit Graph

762 Commits

Author SHA1 Message Date
Christophe Bothamy
0d281a9cca - initialize ata controller state even if master/slave device is not
present. This would prevent the simulation from running on windows
  if no slave device was present on the ata0 interface.
2003-11-25 23:00:06 +00:00
Volker Ruppert
335507ac38 - evaluate_media(): floppy type handling for images rewritten. The function now
fails if the image size is too large for the selected type.
- evaluate_media(): enclose path names in single quotes in BX_INFOs
2003-11-23 21:54:59 +00:00
Volker Ruppert
e827d430f2 - don't try to insert the floppy media if the path name is "none"
- evaluate_media(): new variable 'raw_floppy' indicates raw floppy access on win32
- evaluate_media(): try to read the first sector determine the presence of the
  floppy media (raw access on win32)
2003-11-22 18:22:45 +00:00
Volker Ruppert
c1989c68da - removed unused stuff 2003-11-16 08:21:10 +00:00
Volker Ruppert
5cd8ea6be1 - split the fprintf() call in the writelog() function. This is a workaround for
a bug in cygwin and mingw/msys (loglevel was always 0)
- DSP test register implemented
2003-11-15 14:56:30 +00:00
Volker Ruppert
31fcbd1bad - DSP command 0xE0 returns bitwise NOT of data byte
- SB16 returns DSP version 4.05 (4.11 is SB16 SCSI-2)
2003-11-14 19:00:32 +00:00
Volker Ruppert
7e19d19b54 - don't panic at controller command 0xa0 (keyboard BIOS name) 2003-11-11 18:18:36 +00:00
Volker Ruppert
6866ca21d6 - serial FIFO support (UART type 16550A) implemented 2003-11-09 00:14:43 +00:00
Christophe Bothamy
740d0806f5 - fix bug that corrupts disk data when using a redolog. 2003-11-07 22:59:05 +00:00
Volker Ruppert
c99cd71125 - don't print the VBE disable info if the status is unchanged 2003-11-06 18:48:01 +00:00
Volker Ruppert
597c2834ca - CRTC initialisation fixed (bug found with valgrind) 2003-11-02 16:34:10 +00:00
Volker Ruppert
6c398a7170 - the CRT controller works the same way in color and monochrome emulation modes
- use the same text mode update code for color and monochrome modes (vga mode 0x07
  now works with the Elpin BIOS)
2003-11-01 10:28:40 +00:00
Volker Ruppert
2ef7ec8973 - new function raise_interrupt() manages the serial interrupt reasons
- the line status register only causes an interrupt if an error occurs
- missing initial baurate value added (using 115200)
- baudrate divisor value checks fixed
2003-10-31 17:23:56 +00:00
Volker Ruppert
5616d81a67 - removed unnecessary comments 2003-10-31 15:49:29 +00:00
Volker Ruppert
2fc0b134ed - interrupt and i/o port initialization moved into the initialization loop
- new function lower_interrupt() lowers the irq line if no interrupts are pending
- IER write code: missing conditions for lower_interrupt() added
- symbol BX_SERIAL_CONFDEV removed (now using BX_N_SERIAL_PORTS)
2003-10-29 21:00:04 +00:00
Volker Ruppert
5540cd5664 - printer sends ACK after init
- irq number added to BX_INFO in init()
2003-10-29 17:29:26 +00:00
Christophe Bothamy
39db299002 - remove references to zlib compressed disk images.
Gzipped disk images are too slow to be useful anyway.
  Proper read/write compressed disk image support
  will be implemented after 2.1
2003-10-29 01:13:16 +00:00
Volker Ruppert
fbba69380b - MCR bit 3 (OUT2) controls the serial interrupt generation, but has no effect
on the IIR (only depends on the IER).
- IER write code rewritten. The "THR empty" interrupt will be generated immediately
  after enabling this interrupt reason.
2003-10-28 18:40:00 +00:00
Volker Ruppert
f46ff184f6 - applied patch #724466 (libtool needs --mode=compile and --mode=link to work
without warnings)
2003-10-26 10:00:20 +00:00
Daniel Gimpelevich
5586f6054b *** empty log message *** 2003-10-24 11:16:25 +00:00
Volker Ruppert
33847825a2 - TTY_HACK feature removed. It no longer compiles and it has been replaced by
the SERIAL_ENABLE feature.
- rx_timer value for data sizes other than 8 fixed
- initial comment updated
2003-10-12 10:51:58 +00:00
Daniel Gimpelevich
c249cc8709 Update to coincide with Volker's adjustment to VGA-BIOS upstream. 2003-10-05 23:15:45 +00:00
Daniel Gimpelevich
abc180a397 fix oversight and prepare for change in vgabios 2003-10-04 15:58:21 +00:00
Daniel Gimpelevich
d0c10dd46b *** empty log message *** 2003-10-02 11:33:42 +00:00
Christophe Bothamy
e856e9c46e - fix utc time for bsd, that also works for linux.
Patch by Daniel Gimpelevich
2003-10-02 07:38:00 +00:00
Bryce Denney
fdeff47720 - add typecast to Bit64s to get around VC++ fatal error 2003-10-01 02:06:14 +00:00
Christophe Bothamy
27b8d78e2d - add parameter to set the redolog name for 'volatile' and 'undoable' disks 2003-09-22 23:32:24 +00:00
Christophe Bothamy
95b002087f - remove unwanted if (...) added in rev1.109 2003-09-17 12:19:34 +00:00
Christophe Bothamy
92f4a281b0 - fix compile problem when configured with --disable-cdrom (patch by Jamie Baxter) 2003-09-17 12:02:54 +00:00
Volker Ruppert
d04a74c7a2 - more accurate emulation of the serial transmit registers (THR/TSR)
- tx_timer value for data sizes other than 8 fixed
- MCR bit 3 (OUT2) controls the serial interrupt generation
2003-09-14 20:16:25 +00:00
Christophe Bothamy
5f8213251c - implement option to set clock from utc time, on supported platforms 2003-09-05 23:17:51 +00:00
Christophe Bothamy
a6f0158745 - add possibility to have both sync method active at the same time 2003-08-26 20:24:36 +00:00
Volker Ruppert
ca60988fd9 - wx: NetConfigDialog replaced by a new version using ParamDialog
- parameter for the ethernet module must be of type bx_param_enum_c, since we
  have a list of valid modules
2003-08-25 16:46:18 +00:00
Christophe Bothamy
6c66a9a9a9 - write cmd 0x70 (seek) should not set drq. (fix by Mathis) 2003-08-24 22:44:44 +00:00
Volker Ruppert
4e10730479 - missing return value added in function start_cdrom() 2003-08-21 18:27:01 +00:00
Jeroen Janssen
5a023a8ad5 applied slowdown timer crosscompile fix 2003-08-20 06:26:27 +00:00
Christophe Bothamy
832ef1209f - apply .bochsrc, cdrom, serial and ethernet patches for NetBSD
(patches by fredb, uebayasi and david laight)
2003-08-19 00:37:03 +00:00
Christophe Bothamy
e555765d75 - add a "clock: sync=[none|slowdown|realtime], time0=[timeValue|local|utc]"
- pit: and time0: options are still supported but deprecated
- warn when parsing deprecated directives
- fix wrong number of ata_device_translation_names
- still to do:
  - setting time0 to utc is not yet supported
  - the man page, user guide and .bochsrc still need to be updated
    with the new options
2003-08-19 00:10:39 +00:00
Stanislav Shwartsman
60ca3ac674 ;; is not so necessary ;) 2003-08-15 13:18:53 +00:00
Alexander Krisak
396d948d1b Applied Andrew's Zabolotny patch which gives posibility for program to popup debugger by writing 'D' character to 0x8900 port 2003-08-10 17:19:49 +00:00
Alexander Krisak
d03e9381a0 Fixed broken build, reported by Jeroen Janssen 2003-08-05 09:19:36 +00:00
Alexander Krisak
45df735c30 Apply Vitaly's Vorobyov debugger patch 2003-08-04 16:03:09 +00:00
Stanislav Shwartsman
2c3753e6c2 dos2unix fix 2003-08-04 13:27:39 +00:00
Stanislav Shwartsman
4ba856a52b Committed syntax error fixes from Vitaly Vorobyov.
Syntax error fixes:
  [x] fixed error with array bounds in virt_timer.cc
  [x] fixed error with returning value from void functions
  [x] fixed const class member initialization (according C++ standard)
  [x] for-loop local variable declaration moved out of loop
      (for VC 6.0 compliance)

Removed already committed patch from Dirk Thierbach
Replaced the patch from Vitaly Vorobyov by set of splitted patches.
Now any of his patches could be committed separatelly from others !
2003-08-03 17:04:02 +00:00
Christophe Bothamy
974d3538a1 - change disk image mode name "growable" to the more accurate "growing" 2003-08-01 01:20:00 +00:00
Volker Ruppert
df2d388fa4 - io_len mask fixed and unnecessary io_len checks removed from the remaining
devices except pciusb
2003-07-31 19:51:42 +00:00
Volker Ruppert
37f3ea02b0 - new accesss mask must be checked in the i/o read/write register function.
This is necessary for devices with different i/o port masks.
- BX_MAX_IO_DEVICES increased to 30
- io_len mask fixed and unnecessary io_len checks removed in
  * biosdev.cc
  * cmos.cc
  * dma.cc
2003-07-31 15:29:34 +00:00
Volker Ruppert
bcdcf42bdd - io_len mask in i/o register functions implemented (1 = 8bit, 2 = 16bit, 4 = 32bit).
Unallowed cases are now handled in devices.cc and cause a BX_ERROR.
- io_len mask fixed and unnecessary io_len checks removed in
  * devices.cc
  * extfpuirq.cc
  * gameport.cc
  * ne2k.cc
  * pit.cc
  * pit_wrap.cc (i/o register function calls replaced by DEV_* macro calls)
- TODO: implement this in all other devices
2003-07-31 12:04:48 +00:00
Volker Ruppert
c496962184 - the NE2000 driver for MS-DOS writes a 16 bit value to page 0 reg 5. Now the
low-byte is written to this register and the high-byte is ignored.
2003-07-30 10:45:13 +00:00
Volker Ruppert
6723fc80a5 - the shutdown port now works if the debugger is enabled, too 2003-07-29 18:17:33 +00:00