[Patch] Compaq Portable Plus

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

[Patch] Compaq Portable Plus

Post by dns2kv2 » Sat 09 Dec, 2017 2:19 pm

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 16 times

User avatar
JohnElliott
Posts: 58
Joined: Sun 31 Jan, 2016 7:29 pm

Re: [Patch] Compaq Portable Plus

Post by JohnElliott » Sun 10 Dec, 2017 12:19 am

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: 34
Joined: Sun 19 Feb, 2017 3:30 am

Re: [Patch] Compaq Portable Plus

Post by dns2kv2 » Sun 10 Dec, 2017 1:09 am

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: 58
Joined: Sun 31 Jan, 2016 7:29 pm

Re: [Patch] Compaq Portable Plus

Post by JohnElliott » Mon 11 Dec, 2017 12:33 am

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: 5
Joined: Sat 10 Dec, 2016 9:13 am

Re: [Patch] Compaq Portable Plus

Post by ArtiomWin » Mon 11 Dec, 2017 1:37 pm

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: 34
Joined: Sun 19 Feb, 2017 3:30 am

Re: [Patch] Compaq Portable Plus

Post by dns2kv2 » Mon 11 Dec, 2017 3:52 pm

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: 58
Joined: Sun 31 Jan, 2016 7:29 pm

Re: [Patch] Compaq Portable Plus

Post by JohnElliott » Mon 11 Dec, 2017 9:24 pm

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 16 times

User avatar
JohnElliott
Posts: 58
Joined: Sun 31 Jan, 2016 7:29 pm

Re: [Patch] Compaq Portable Plus

Post by JohnElliott » Fri 15 Dec, 2017 1:16 am

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 9 times

User avatar
SarahWalker
Site Admin
Posts: 1442
Joined: Thu 24 Apr, 2014 4:18 pm

Re: [Patch] Compaq Portable Plus

Post by SarahWalker » Sat 24 Feb, 2018 2:06 pm

Compaq CGA committed at rev 1066.

User avatar
SarahWalker
Site Admin
Posts: 1442
Joined: Thu 24 Apr, 2014 4:18 pm

Re: [Patch] Compaq Portable Plus

Post by SarahWalker » Sat 24 Feb, 2018 2:33 pm

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