[Patch] Compaq Portable Plus

Post Reply
User avatar
dns2kv2
Posts: 67
Joined: Sun 19 Feb, 2017 3:30 am

[Patch] Compaq Portable Plus

Post by dns2kv2 »

tested against latest pcem commit 9de4df7

Image


playable display adapter:
-ati 18800
-ati 28800
-tseng et4000/w32p
-tseng et4000ax
-ega
-oak oti-067
-paradise pvga1a
-trident tvga8900d
-trident tgui9440
-vga
-wyse 700


playable harddisk controller:
-[mfm] dtc 5150x
-[mfm] fixed disk adapter (xebec)


playable floppy disk image size:
-360kb


issue:
-post error "101"
-post error "401"
-when opening graphical games or apps, the keyboard arrow buttons become numbers.
you must use numpad arrows to move around, if you don't have numpad, oh well errhhh...
Attachments
PCem-Compaq-Portable-Plus.patch
(4.63 KiB) Downloaded 452 times
User avatar
JohnElliott
Posts: 113
Joined: Sun 31 Jan, 2016 7:29 pm

Re: [Patch] Compaq Portable Plus

Post by JohnElliott »

It may work with a CGA chipset if you select CGA video timings using the 'external monitor' hotkey (CTRL + ALT + < ). Otherwise it'll be trying to drive the Compaq dual-scan monitor.
User avatar
dns2kv2
Posts: 67
Joined: Sun 19 Feb, 2017 3:30 am

Re: [Patch] Compaq Portable Plus

Post by dns2kv2 »

JohnElliott wrote:It may work with a CGA chipset if you select CGA video timings using the 'external monitor' hotkey (CTRL + ALT + < ). Otherwise it'll be trying to drive the Compaq dual-scan monitor.
if you can help implement it, please do so.
if you can also help fix other issue in the patch, please do so.
User avatar
JohnElliott
Posts: 113
Joined: Sun 31 Jan, 2016 7:29 pm

Re: [Patch] Compaq Portable Plus

Post by JohnElliott »

I haven't looked into implementing the Compaq dual-scan CGA yet, but I was right that pressing CTRL + ALT + < will make it display correctly on the existing CGA:

Image

It would also work if you set the DIP switches to boot in 24x40 mode rather than 24x80, but PCEM doesn't support this.
ArtiomWin
Posts: 6
Joined: Sat 10 Dec, 2016 9:13 am

Re: [Patch] Compaq Portable Plus

Post by ArtiomWin »

JohnElliott wrote:I haven't looked into implementing the Compaq dual-scan CGA yet, but I was right that pressing CTRL + ALT + < will make it display correctly on the existing CGA:

Image

It would also work if you set the DIP switches to boot in 24x40 mode rather than 24x80, but PCEM doesn't support this.
I've found at some site CPQVID BIOS ROM (8K). Maybe it is for Compaq CGA card.
User avatar
dns2kv2
Posts: 67
Joined: Sun 19 Feb, 2017 3:30 am

Re: [Patch] Compaq Portable Plus

Post by dns2kv2 »

JohnElliott wrote:I haven't looked into implementing the Compaq dual-scan CGA yet, but I was right that pressing CTRL + ALT + < will make it display correctly on the existing CGA:

Image

It would also work if you set the DIP switches to boot in 24x40 mode rather than 24x80, but PCEM doesn't support this.
yep, you're right. it worked out of the box just like you said.
User avatar
JohnElliott
Posts: 113
Joined: Sun 31 Jan, 2016 7:29 pm

Re: [Patch] Compaq Portable Plus

Post by JohnElliott »

OK, here's an implementation of the Compaq CGA (at least, the version used in the Portable).

Later versions of the adaptor (as found in the Portable II and the original Deskpro) also allow the high-resolution display to be switched between CGA and MDA attributes, using bit 7 of the CGA control register. My patch doesn't implement this, though it probably wouldn't be too hard to do.
Attachments
compaq_cga.patch
(22.43 KiB) Downloaded 433 times
User avatar
JohnElliott
Posts: 113
Joined: Sun 31 Jan, 2016 7:29 pm

Re: [Patch] Compaq Portable Plus

Post by JohnElliott »

And this version of the patch emulates the later version of the adaptor that can do MDA or CGA attributes. If you want to test switching from one to the other on the Portable, which doesn't have a hotkey to do this, you can create a COM file using DEBUG:

Code: Select all

A>DEBUG
-a100
103B:0100 mov ax,40
103B:0103 mov es,ax
103B:0105 mov bx,65
103B:0108 es:
103B:0109 xor byte ptr [bx],80
103B:010C es:
103B:010D mov al,[bx]
103B:101F mov dx,03d8
103B:0112 out dx,al
103B:0113 int 20
103B:0115
-rcx
CX 0000
:15
-ntoggle.com
-w
Writing 0015 bytes
-q
TOGGLE.COM will then toggle the attributes between MDA-style and CGA-style each time it's run:
Image Image
Attachments
compaq_cga_2.patch
(23.59 KiB) Downloaded 445 times
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: [Patch] Compaq Portable Plus

Post by SarahWalker »

Compaq CGA committed at rev 1066.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: [Patch] Compaq Portable Plus

Post by SarahWalker »

And the Compaq Portable Plus added at rev 1067. I fixed the 401 error - LPT1 was at the wrong address. The 101 error is a PIT bug that I'm still looking at.
Post Reply