Award286 clone

Discussion of development and patch submission.
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Award286 clone

Post by Greatpsycho »

This patch applies experimental implement for Award 286 clone that uses Chips&Technologies 82C235 Single Chip AT chipset.
Currently, only limited shadow ram support implemented(Only segment C000~FFFF supported).

I've attached test boot image that loads UMB_DRVR.SYS to UMB use test but it is patched to do not check ISA-DMA work. Original version also included but it enters infinite loop when ISA-DMA check because DMA write request not yet implemened in PCem.

Note : This is second submission. scat.c has been changed first submission and should be updated if you downloaded first-time attached award286_emu.tgz file.
Attachments
award286_emu.tgz
Award 286 clone patches and needed files.
(29.42 KiB) Downloaded 529 times
award286_boot_dos5.img.gz
Test boot image
(158.82 KiB) Downloaded 474 times
Last edited by Greatpsycho on Thu 31 Mar, 2016 1:11 pm, edited 2 times in total.
SA1988
Posts: 274
Joined: Wed 30 Apr, 2014 9:38 am

Re: Award286 clone

Post by SA1988 »

The 82C836 chipset is identical to this, but for 386 processors, though I'm struggling finding an award bios for it.
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Post by Greatpsycho »

This revision 2 patch added applies experimental EMS implement for Award 286 clone that uses Chips&Technologies 82C235 Single Chip AT chipset.

Patch and test disk image attached.

Please note this revision allows EMS function only memory size is 2MB, 4MB, 6MB, 8MB due to chipset & attached BIOS limit. I'll modify BIOS to allow memory configuration upto 16MB later.
SETUP.png
SETUP.png (19.42 KiB) Viewed 24415 times
Attachments
award286_boot_disk_rev2_dos5.img.gz
Test boot image. EMS driver and test program added.
(164.97 KiB) Downloaded 457 times
award286_emu_rev2.tgz
Award 286 clone patches and needed files
(30.57 KiB) Downloaded 453 times
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Post by Greatpsycho »

This is revision 3 patch for Award286 clone.

Changed from revision 2

1) Added memory remap feature if 1MB memory installed.
2) Code simplified and many bugs fixed.
3) Attached modified BIOS and EMS driver to handle memory configuration up to 16MB.(Original versions are also included)

Please note memory setting should be one of 1MB, 2MB, 4MB, 6MB, 8MB if original BIOS or EMS driver use. Modified BIOS & EMS driver supports 10MB, 12MB, 14MB, 16MB configuration.
SETUP.png
SETUP.png (19.44 KiB) Viewed 24313 times
Attachments
award286_boot_rev3_dos5.img.gz
Test boot image.
(160.82 KiB) Downloaded 451 times
award286_emu_rev3.tgz
Award 286 clone patches and needed files
(54.24 KiB) Downloaded 476 times
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Post by Greatpsycho »

This additional patch fixees memory configuration related bugs in revision 3.

Only patch file against revision 3 attached.
Attachments
scat.c.patch
Patch file against revision 3 of scat.c
(3.32 KiB) Downloaded 425 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Post by SarahWalker »

Is this ready for me to merge into mainline?
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Post by Greatpsycho »

SarahWalker wrote:Is this ready for me to merge into mainline?
Yes. It seems ready to merge into mainline now. Not yet implemented features are planned to be implemented after the release of new version. And I'm going to port shadowram features and memory remap feature into AMI286 clone(It uses NEAT chipset) before end of this month.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Post by SarahWalker »

Committed at rev 474. I had to make a few changes to rebase it to the current version (mem_size has changed from MB to kB) and tweaked the coding style a bit, but other than that it's good.
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Post by Greatpsycho »

SarahWalker wrote:Committed at rev 474. I had to make a few changes to rebase it to the current version (mem_size has changed from MB to kB) and tweaked the coding style a bit, but other than that it's good.
I found a bug when A20 line set to be enabled via port 0x92, A20 line can't be disabled. This patch solves that bug.
Attachments
scat.c.patch
A20 line access bug patch against rev 474
(743 Bytes) Downloaded 378 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Post by SarahWalker »

Committed at rev 475.
EluanCM
Posts: 112
Joined: Tue 27 Oct, 2015 2:07 pm
Location: Brazil
Contact:

Re: Award286 clone

Post by EluanCM »

I dumped the BIOS from an old 286 of mine (Hyundai Super 286-TR) which used this chipset and it actually worked! Only problem is that sometimes "refresh timing error" is displayed after POST, but it is 100% stable after lots of testing. Thanks!
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Post by Greatpsycho »

I've rewritten 82C235 memory mapping logic. Windows 3.0 Real mode and Desqview now works properly when EMS enabled and shadow RAM at A000~BFFF segment area can be enabled.
Attachments
award286_emu_patch.tgz
(3.06 KiB) Downloaded 356 times
EluanCM
Posts: 112
Joined: Tue 27 Oct, 2015 2:07 pm
Location: Brazil
Contact:

Re: Award286 clone

Post by EluanCM »

Thanks for this patch!

Sarah: I'm guessing this last patch wasn't merged yet because it messes a with mem.c just for this chipset?
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Post by SarahWalker »

I haven't really looked at this patch yet - it came just after the v12 release when I wasn't really interested in looking at anything related the emulator. I'll give it a look tonight.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Post by SarahWalker »

Having just had a look at the code, I'm really not keen on the mem.c changes here. You should be able to use the mem_mapping functionality to do all this. If there's any required functionality missing, let me know and I'll add it.
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Post by Greatpsycho »

SarahWalker wrote:Having just had a look at the code, I'm really not keen on the mem.c changes here. You should be able to use the mem_mapping functionality to do all this. If there's any required functionality missing, let me know and I'll add it.
I've rewritten memory mapping logic patch. This patch against PCem V12 release. Only solves Windows 3.0 Real mode and Desqview issue when EMS enabled but does not solves impossible to enable shadow RAM at A000~BFFF area. To use shadow ram at A000~BFFF area, video memory mapping portion may need to be modified significantly.
Attachments
award286_emu_patch.tgz
SCAT memory mapping patch against PCem V12
(1.85 KiB) Downloaded 293 times
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Post by Greatpsycho »

This additional patch enables shadow RAM at A000~BFFF segment area.

Sarah : award286 folder does not exist in roms folder in source tree and distribution.
Attachments
scat.c.patch
Additional patch against previous patch.
(1.62 KiB) Downloaded 287 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Post by SarahWalker »

Committed at rev 682.
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Post by Greatpsycho »

This additional patch against rev 682 applies to enable shadow RAM at A000~BFFF segment area(It has already been implemented and submitted but not applied in rev 682) and Waitstate setting is work together with SCAT chipset control register as real machine does.
Attachments
award286_boot_rev4_dos5.img.gz
Test boot image.
(130.5 KiB) Downloaded 300 times
scat.c.patch
Patch file against rev 682.
(2.65 KiB) Downloaded 277 times
Last edited by Greatpsycho on Sat 22 Apr, 2017 3:34 am, edited 1 time in total.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Post by SarahWalker »

Committed at rev 693.
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Post by Greatpsycho »

This patch fixes a problem shadow RAM state at A000~BFFF range not applied correctly and get A20 state bit of SCAT register should be obtained from the keyboard controller but it is getting from port 0x92.
Attachments
scat.c.patch
(1.01 KiB) Downloaded 268 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Post by SarahWalker »

Committed at rev 697.
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Post by Greatpsycho »

This patch applies global EMS state and EMS I/O port setting more accurately.
Attachments
scat.c.patch
Patch for chipset setting.
(15.83 KiB) Downloaded 259 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Post by SarahWalker »

Committed at rev 788.
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Post by Greatpsycho »

This patch improves memory configuration setting accuracy when 1MB memory installed.
Attachments
award286_emu_patch.tar.gz
Patch for memory configuration
(2.24 KiB) Downloaded 270 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Post by SarahWalker »

Committed at rev 829.
User avatar
omarsis81
Posts: 945
Joined: Thu 17 Dec, 2015 6:20 pm

Re: Award286 clone

Post by omarsis81 »

Lots of improvements for the 286 Greatpsycho!
Is that your favorite processor?
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Post by Greatpsycho »

omarsis81 wrote:Lots of improvements for the 286 Greatpsycho!
Is that your favorite processor?
I have a 286 PC purchsed in 1992 and it is still operatable. So I'm working on it.
Emulation of Award286 clone is working properly at most common cases, but it is still imperfect and there are lot of things to implement.
User avatar
omarsis81
Posts: 945
Joined: Thu 17 Dec, 2015 6:20 pm

Re: Award286 clone

Post by omarsis81 »

Greatpsycho wrote:
omarsis81 wrote:Lots of improvements for the 286 Greatpsycho!
Is that your favorite processor?
I have a 286 PC purchsed in 1992 and it is still operatable. So I'm working on it.
Emulation of Award286 clone is working properly at most common cases, but it is still imperfect and there are lot of things to implement.
I appreciate your work on the 286, as I like that processor very much. I believe is the most underrated x86 processors of all! Is has the same or even better performance than a 386 (atinstructionss per second, of course).
Too bad Intel screw it with the protected mode... oh well, I don't want to go off-topic. I will send you a PM. Best regards
Greatpsycho
Posts: 151
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Post by Greatpsycho »

This patch improves memory address clipping and mapping accuracy.

Edit : This patch has been incorporated here.
Last edited by Greatpsycho on Mon 21 Aug, 2017 8:50 am, edited 1 time in total.
Post Reply