English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 21 April 2017, 17:16   #81
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,698
Yep, the .scp file is completely broken; just doing Dir in a CLI gives a disk error requester. The DMS might be OK; at least all files on it copy without errors.
mark_k is offline  
AdSense AdSense  
Old 21 April 2017, 19:21   #82
shaf
Registered User
 
Join Date: Jun 2012
Location: Toronto / Canada
Posts: 87
The DMS file is OK, That's the source I used to update the Installer, I'll recreate the SCP image.
shaf is offline  
Old 21 April 2017, 21:39   #83
DamienD
Global Moderator

DamienD's Avatar
 
Join Date: Aug 2005
Location: London / Sydney
Age: 41
Posts: 9,661
Quote:
Originally Posted by shaf View Post
The DMS file is OK, That's the source I used to update the Installer, I'll recreate the SCP image.
Why not just upload the .DMS file?

I'm sure Toni knows how to handle this
DamienD is online now  
Old 22 April 2017, 06:06   #84
shaf
Registered User
 
Join Date: Jun 2012
Location: Toronto / Canada
Posts: 87
I did upload the DMS image, the SCP file contains a newer Hard Drive Table
shaf is offline  
Old 22 April 2017, 10:14   #85
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,940
DMS works (emulation is nearly done) but it seems it does not have A1000 kickdisk install support.
Toni Wilen is online now  
Old 22 April 2017, 14:17   #86
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,698
After quickly looking at the Comspec SetClock program and ComspecSCSI.device...

The SA1000 can have an optional real-time clock. The SetClock program expects bit 0 of er_SerialNumber (in the ExpansionRom structure) to be zero for RTC to be present.

ComspecSCSI.device command numbers 12 and 13 respectively are used to read and set the RTC time . (Those command numbers are TD_REMOVE and TD_CHANGENUM for "normal" trackdisk-like devices... but probably ComspecSCSI.device isn't supposed to be trackdisk-like, that job is for ComspecHD.device?)

Hopefully the pattern of register accesses could allow you to figure out which type of RTC chip it uses.
mark_k is offline  
Old 22 April 2017, 14:46   #87
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,940
Not going to happen without knowing type of the chip in advance. Clocks are too boring.
Toni Wilen is online now  
Old 22 April 2017, 15:17   #88
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,698
shaf mentioned having the schematic and memory map

Failing that I'll try to figure it out.
mark_k is offline  
Old 22 April 2017, 16:41   #89
shaf
Registered User
 
Join Date: Jun 2012
Location: Toronto / Canada
Posts: 87
The Clock Chip is OKI 6242B. I/O Space and ROM Space sit in Expansion Space ($E8000) and Cartridge Space ($F00000). The SCSI chip is WD33C93.

IF you require it I will scan the Schematic and Memory Map But they are very old copies.

Shaf
shaf is offline  
Old 22 April 2017, 18:23   #90
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,698
They could still be useful for emulation, also maybe to someone with the real hardware, if they want to repair their unit. So please do upload them!
mark_k is offline  
Old 22 April 2017, 20:53   #91
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,940
http://www.winuae.net/files/b/winuae_3410b7.7z
http://www.winuae.net/files/b/winuae64_3410b7.7z

Beta 7:

- Accessing accelerator board SCSI IO region without any added SCSI device caused crash.
- winlaunch.lib native code use attempts are now internally "emulated". Library is not used or needed anymore.
- Old style 0xf00000 boot rom is automatically mapped (if memory is not already in use and "new" rom mode) if it looks like program is directly jumping to boot rom trap space instead of using uae.resource.
- AGA FMODE>0 unaligned bitplane and sprite pointer behavior should be now accurately emulated. (It is not simple masking). Sprites not tested (too boring) but both should use same DMA hardware. [I saw some comments somewhere, I'd recommend contacting me for faster response ]
- Added A590 v4.6 boot ROM to ROM scanner.
- Fixed A590 XT mode request sense handling (for example if out of bounds read).
- 68040/060 without FPU or 68060 with FPU disabled exception had wrong PC OF FAULTED INSTRUCTION field in exception stack frame.
- Comspec SA-1000 controller emulation remaining features implemented.
Toni Wilen is online now  
Old 22 April 2017, 22:20   #92
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 391
Is that Comspec controller the one that Dragon's Lair supported?
NorthWay is offline  
Old 23 April 2017, 15:15   #93
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,698
The Comspec SA1000 RTC registers are at even bytes starting at board offset $80A0.
mark_k is offline  
Old 24 April 2017, 20:25   #94
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,940
Comspec RTC emulation and enable/disable option added. Uses already existing MSM emulation = writing to clock registers (except config registers) are not supported. Current date is always returned.

Boot disk returns "Date is unreadable" so either something is wrong or it does not like >=2000 dates (which is more likely..).
Toni Wilen is online now  
Old 24 April 2017, 21:55   #95
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,698
How do you emulate >=2000 years in the MSM6242B? ComspecSCSI.device seems to treat year <78 as meaning 2000+year. In other words, for 2017 you'd need to have 17 in the year registers. So 7 in 1-year digit register, 1 in 10-year digit register. And it requires 10×(10-year reg) + (1-year reg) be <= 99.

cf. this in the 2.5.0b20 changelog entry:
Code:
- RTC year value is saved differently depending on OS version, Pre-2.0: RTC year value = current year - 1900,
  2.0+: year value = last 2 digits. Both methods supported when reading. WinUAE now uses pre-2.0 method if
  MSM clock chip (because this is the only type that KS1.x supports), 2.0+ if RF clock chip, previously always used -1900 method.

Last edited by mark_k; 24 April 2017 at 22:04.
mark_k is offline  
Old 24 April 2017, 22:07   #96
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,940
Quote:
Originally Posted by mark_k View Post
How do you emulate >=2000 years in the MSM6242B? ComspecSCSI.device seems to treat year <78 as meaning 2000+year. In other words, for 2017 you'd need to have 17 in the year registers. So 7 in 1-year digit register, 1 in 10-year digit register. And it requires 10×(10-year reg) + (1-year reg) be <= 99.
It uses invalid BCD values (2017 = 117 = B7), this is more AmigaOS compatible.

Surprisingly Comspec accepts the date (and it even is printed correctly) if year value is 17 (instead of 117). So Comspec now uses different method.
Toni Wilen is online now  
Old 24 April 2017, 22:20   #97
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,698
Also, the function in ComspecSCSI.device to set the RTC always sets the 24/12 bit (i.e. 24-hour mode) in control register F.
mark_k is offline  
Old 26 April 2017, 18:47   #98
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,698
Quote:
Originally Posted by shaf View Post
IF you require it I will scan the Schematic and Memory Map But they are very old copies.
Do you have a user manual too? I've been reverse-engineering ComspecSCSI.device out of curiosity, but maybe I'm wasting my time if its command set is already documented in the manual.
mark_k is offline  
Old 27 April 2017, 18:34   #99
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,698
Some more info about the Comspec RTC. Not sure whether you already emulate this, but bit 0 of the write-only register at board offset $8080 seems to be an enable for the RTC. The RTC probably only appears on the bus when that bit is set.

The ComspecSCSI.device commands for both reading and setting the RTC set that bit before accessing the RTC, and clear it afterwards. I guess protecting the RTC that way reduces the likelihood of a crashing program affecting the stored time/date.
mark_k is offline  
Old 07 May 2017, 17:01   #100
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,940
http://www.winuae.net/files/b/winuae_3410b8.7z
http://www.winuae.net/files/b/winuae64_3410b8.7z

Beta 8:

- Blitter BDAT register's old content was not preserved and shifted in when BDAT was rewritten with CPU or copper and current B-shift was non-zero. (Probably never used by purpose but emulation still should be always correct)
- 68010+ RTE didn't generate format error exception if frame was not supported by selected CPU but it was supported by other 680x0 model and CPU emulation mode was not MMU or more compatible.
- Added Comspec SA-1000 RTC emulation. Always returns current host time, time registers are not writable.
- Built-in HRTMon 2.37 update.
- Added two A2088T BIOS 4.0 (390657-01) ROM versions with different internal date (09/11/89 and 14/11/89).
- Added A2386SX 1.00.03 ROM.
- PC bridgeboard NE2000 boot crash fix. (Introduced when NIC specific MAC setting was added)
- Adjusted windowed mode mouse clipping so that when winuae window is partially under taskbar (including auto hide taskbar or partially outside of monitor, Amiga mouse won't randomly hit hidden borders (if Windows Mouse mode) or become unexpectedly uncaptured (any mode, window partially under taskbar).
- Do not delay SCSI/ATAPI emulation audio CD play state change from startup to playing. Only CD32/CDTV require it.
Toni Wilen is online now  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
WinUAE 2.5.0 Beta series (Was 2.4.2) Toni Wilen support.WinUAE 310 01 December 2012 19:02
WinUAE 2.2.0 beta series Toni Wilen support.WinUAE 119 28 June 2010 03:35
WinUAE 1.5.1 beta series Toni Wilen support.WinUAE 242 12 August 2008 13:42
WinUAE 1.5.0 beta series Toni Wilen support.WinUAE 453 19 June 2008 10:05

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:21.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.28642 seconds with 12 queries