Award286 clone

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

Award286 clone

Postby Greatpsycho » Wed 30 Mar, 2016 1:13 pm

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 170 times
award286_boot_dos5.img.gz
Test boot image
(158.82 KiB) Downloaded 138 times
Last edited by Greatpsycho on Thu 31 Mar, 2016 1:11 pm, edited 2 times in total.
SA1988
Posts: 204
Joined: Wed 30 Apr, 2014 9:38 am

Re: Award286 clone

Postby SA1988 » Wed 30 Mar, 2016 8:55 pm

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

Re: Award286 clone

Postby Greatpsycho » Sun 03 Apr, 2016 5:41 pm

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 6584 times
Attachments
award286_boot_disk_rev2_dos5.img.gz
Test boot image. EMS driver and test program added.
(164.97 KiB) Downloaded 125 times
award286_emu_rev2.tgz
Award 286 clone patches and needed files
(30.57 KiB) Downloaded 132 times
Greatpsycho
Posts: 87
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Postby Greatpsycho » Sun 10 Apr, 2016 2:56 pm

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 6482 times
Attachments
award286_boot_rev3_dos5.img.gz
Test boot image.
(160.82 KiB) Downloaded 138 times
award286_emu_rev3.tgz
Award 286 clone patches and needed files
(54.24 KiB) Downloaded 154 times
Greatpsycho
Posts: 87
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Postby Greatpsycho » Wed 13 Apr, 2016 3:38 am

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 120 times
SarahWalker
Site Admin
Posts: 1310
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Wed 13 Apr, 2016 4:59 pm

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

Re: Award286 clone

Postby Greatpsycho » Thu 14 Apr, 2016 2:21 am

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.
SarahWalker
Site Admin
Posts: 1310
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Thu 14 Apr, 2016 8:27 pm

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: 87
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Postby Greatpsycho » Sun 17 Apr, 2016 9:57 am

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 77 times
SarahWalker
Site Admin
Posts: 1310
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Sun 17 Apr, 2016 2:52 pm

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

Re: Award286 clone

Postby EluanCM » Wed 20 Apr, 2016 3:15 am

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: 87
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Postby Greatpsycho » Sun 26 Feb, 2017 9:12 am

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 54 times
EluanCM
Posts: 28
Joined: Tue 27 Oct, 2015 2:07 pm
Contact:

Re: Award286 clone

Postby EluanCM » Wed 22 Mar, 2017 4:11 am

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?
SarahWalker
Site Admin
Posts: 1310
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Wed 22 Mar, 2017 5:44 pm

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.
SarahWalker
Site Admin
Posts: 1310
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Wed 22 Mar, 2017 6:27 pm

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: 87
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Postby Greatpsycho » Sat 01 Apr, 2017 9:14 am

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 21 times
Greatpsycho
Posts: 87
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Postby Greatpsycho » Sat 08 Apr, 2017 5:55 am

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 17 times
SarahWalker
Site Admin
Posts: 1310
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Wed 12 Apr, 2017 7:56 pm

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

Re: Award286 clone

Postby Greatpsycho » Wed 19 Apr, 2017 1:03 pm

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 15 times
scat.c.patch
Patch file against rev 682.
(2.65 KiB) Downloaded 12 times
Last edited by Greatpsycho on Sat 22 Apr, 2017 3:34 am, edited 1 time in total.
SarahWalker
Site Admin
Posts: 1310
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Wed 19 Apr, 2017 3:54 pm

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

Re: Award286 clone

Postby Greatpsycho » Fri 21 Apr, 2017 1:52 pm

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 17 times
SarahWalker
Site Admin
Posts: 1310
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Fri 28 Apr, 2017 4:09 pm

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

Re: Award286 clone

Postby Greatpsycho » Thu 06 Jul, 2017 7:21 am

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 8 times
SarahWalker
Site Admin
Posts: 1310
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Thu 06 Jul, 2017 7:42 pm

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

Re: Award286 clone

Postby Greatpsycho » Tue 01 Aug, 2017 7:33 am

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 8 times
SarahWalker
Site Admin
Posts: 1310
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Award286 clone

Postby SarahWalker » Tue 01 Aug, 2017 1:08 pm

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

Re: Award286 clone

Postby omarsis81 » Tue 01 Aug, 2017 1:27 pm

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

Re: Award286 clone

Postby Greatpsycho » Tue 01 Aug, 2017 2:55 pm

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: 532
Joined: Thu 17 Dec, 2015 6:20 pm

Re: Award286 clone

Postby omarsis81 » Tue 01 Aug, 2017 3:21 pm

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: 87
Joined: Tue 22 Mar, 2016 10:03 am
Location: Korea
Contact:

Re: Award286 clone

Postby Greatpsycho » Thu 17 Aug, 2017 8:02 am

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.

Return to “Development”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest