MDA Upgrade to Hercules

jordi
Posts: 282
Joined: Thu Jun 11, 2020 10:11 am
Has thanked: 112 times
Been thanked: 87 times

Re: MDA Upgrade to Hercules

Unread post by jordi »

Newsdee wrote: Sun Jan 22, 2023 8:38 am
spark2k06 wrote: Thu Jan 19, 2023 10:33 am

there may be software that uses both cards simultaneously, and in the absence of two monitors

This reminded me of the GB2P and GBA2P cores: https://www.retrorgb.com/2-player-gb-gb ... ister.html

These cores have a feature where the HDMI and VGA video output of the MiSTer can show different screens.
Mabye some code can be reused to make PCXT work with real dual monitor output.

Obviously this is only nice to have and maybe not worth the effort at all,
but here it is if you want to add another "wow" feature for Hercules users :D
https://github.com/RobertPeip/Gameboy_M ... 582106b6fd

Edit: here is a video showing a couple of apps that support it: https://www.youtube.com/watch?v=4zugZGBPTSA
and it looks like a couple of demos at least use it, e.g.: https://www.youtube.com/watch?v=xsHZl8mhE6A

How cool is such demo!

Malor
Top Contributor
Posts: 860
Joined: Wed Feb 09, 2022 11:50 pm
Has thanked: 64 times
Been thanked: 194 times

Re: MDA Upgrade to Hercules

Unread post by Malor »

That would be a cool feature, but probably not that useful unless the Hercules emulation becomes more complete, which looks like a serious pain in the butt. Just documenting how it even works looks like a pain, never mind implementing it.

flynnsbit
Top Contributor
Posts: 552
Joined: Sun May 24, 2020 8:07 pm
Has thanked: 185 times
Been thanked: 310 times
Contact:

Re: MDA Upgrade to Hercules

Unread post by flynnsbit »

Newsdee wrote: Sun Jan 22, 2023 8:38 am
spark2k06 wrote: Thu Jan 19, 2023 10:33 am

there may be software that uses both cards simultaneously, and in the absence of two monitors

This reminded me of the GB2P and GBA2P cores: https://www.retrorgb.com/2-player-gb-gb ... ister.html

These cores have a feature where the HDMI and VGA video output of the MiSTer can show different screens.
Mabye some code can be reused to make PCXT work with real dual monitor output.

Obviously this is only nice to have and maybe not worth the effort at all,
but here it is if you want to add another "wow" feature for Hercules users :D
https://github.com/RobertPeip/Gameboy_M ... 582106b6fd

Edit: here is a video showing a couple of apps that support it: https://www.youtube.com/watch?v=4zugZGBPTSA
and it looks like a couple of demos at least use it, e.g.: https://www.youtube.com/watch?v=xsHZl8mhE6A

FastDoom now as well. Of course this would need AO486 to have this play like this but still cool to see.
https://www.youtube.com/watch?v=GBY1Ti_Q4Ac

Neat seeing the map on one screen while playing doom on the other.

suww37
Posts: 173
Joined: Sun Apr 17, 2022 2:24 am
Has thanked: 7 times
Been thanked: 15 times

Re: MDA Upgrade to Hercules

Unread post by suww37 »

Malor wrote: Sun Jan 22, 2023 7:05 pm

That would be a cool feature, but probably not that useful unless the Hercules emulation becomes more complete, which looks like a serious pain in the butt. Just documenting how it even works looks like a pain, never mind implementing it.

I also agree with your opinion. I think the PCXT core hercules module is still lacking a lot. We must wait for someone to find a way to support another hercules register.

User avatar
spark2k06
Core Developer
Posts: 876
Joined: Sat Jun 06, 2020 9:05 am
Has thanked: 409 times
Been thanked: 969 times

Re: MDA Upgrade to Hercules

Unread post by spark2k06 »

Here goes my contribution to the original Graphics Gremlin project, let's see if the author of the project is encouraged to try to fix the outstanding problems :)

https://twitter.com/spark2k06/status/16 ... 4175260673
https://github.com/schlae/graphics-gremlin/issues/15

photo_2023-01-25_08-47-24.jpg
photo_2023-01-25_08-47-24.jpg (205.26 KiB) Viewed 9589 times
breiztiger
Top Contributor
Posts: 468
Joined: Sun May 24, 2020 7:17 pm
Has thanked: 35 times
Been thanked: 99 times

Re: MDA Upgrade to Hercules

Unread post by breiztiger »

HGC seem to use same frequency as MDA (50Hz)

MNL115_ita_eng.pdf
(686.05 KiB) Downloaded 219 times
CPC-Power Staff
User avatar
pgimeno
Top Contributor
Posts: 709
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 277 times
Been thanked: 226 times

Re: MDA Upgrade to Hercules

Unread post by pgimeno »

Malor wrote: Sun Jan 22, 2023 5:32 pm

I guess my aging brain has let me down again, then. Wordperfect 5.1 used function keys very heavily, and I thought F11 was one of them, but I haven't touched it in probably thirty years.

That's my recollection as well, though I don't remember ever using it on an XT.

User avatar
kathleen
Top Contributor
Posts: 421
Joined: Fri Jun 26, 2020 4:23 am
Location: Belgium
Has thanked: 243 times
Been thanked: 138 times

Re: MDA Upgrade to Hercules

Unread post by kathleen »

I'm maybe wrong but to me this is true that at the beginning, the XT keyboards were having "only" 10 function keys.
I guess that the 2 additional function keys were introduced once the AT came on the market, so the extended keyboard were also used on the XT where some apps took the benefit of this, like WP5.1.

かすりん

Malor
Top Contributor
Posts: 860
Joined: Wed Feb 09, 2022 11:50 pm
Has thanked: 64 times
Been thanked: 194 times

Re: MDA Upgrade to Hercules

Unread post by Malor »

kathleen wrote: Thu Jan 26, 2023 5:53 am

I'm maybe wrong but to me this is true that at the beginning, the XT keyboards were having "only" 10 function keys.
I guess that the 2 additional function keys were introduced once the AT came on the market, so the extended keyboard were also used on the XT where some apps took the benefit of this, like WP5.1.

That sounds right to me, but I was still mostly an Amiga guy during the XT to AT transition, and wasn't paying that much attention yet. I know there were physical differences between XT and AT keyboards, the signaling changed somehow, but lots of keyboards were switchable between modes, and I think there were also adapters. (Then they changed the interface again for the PS/2.)

I'm not sure if a switchable keyboard would pass F11 to an XT, though.

What I should probably do is try to scare up a WP 5.1 manual, or at least one of their "cheat bars", which were a strip of shortcut labels you put on your keyboard above the F-keys. I think either source would show if F11 was used. If I get to it today, though, it probably won't be until evening.

edit: as a bet with myself, I think F11 was a secondary shortcut for 'reveal codes' in WP5.1. It had the same thing on a different alt-function key, I believe, but then when F11 started existing, I think they duplicated it there because it was being used a lot more than they'd expected.

But: thirty years since I last used it. I could be grievously wrong.

Malor
Top Contributor
Posts: 860
Joined: Wed Feb 09, 2022 11:50 pm
Has thanked: 64 times
Been thanked: 194 times

Re: MDA Upgrade to Hercules

Unread post by Malor »

Ok, I tracked down the WordPerfect info. Yes, F11 was Reveal Codes. F12 was used for block selection. However, these were secondary keys; you could also use alt-F3 and alt-F4, respectively. F11 and F12 were clearly added later, because that one function each is all they do. The other function keys are all overloaded with normal key, control key, alt key, and shift key, for a total of 40 functions.

I still don't know, however, if XTs could use F11, even with an aftermarket keyboard.

jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: MDA Upgrade to Hercules

Unread post by jca »

The IBM 5160 V3 supports the enhanced keyboard. F11 and F12 works with WP 5.1 under PCXT.

User avatar
spark2k06
Core Developer
Posts: 876
Joined: Sat Jun 06, 2020 9:05 am
Has thanked: 409 times
Been thanked: 969 times

Re: MDA Upgrade to Hercules

Unread post by spark2k06 »

After reading all the comments about the real use of F11 and F12 on XT machines and software designed for it, it is clearer to me that it is clearly not essential 8-)

Malor
Top Contributor
Posts: 860
Joined: Wed Feb 09, 2022 11:50 pm
Has thanked: 64 times
Been thanked: 194 times

Re: MDA Upgrade to Hercules

Unread post by Malor »

I think you're drawing the exact wrong conclusion there, spark2k06. It wasn't essential on Wordperfect, but F11 was something that almost every user would bang on constantly. And, per jca, real XTs could read the code, so IMO you should be moving both F11 and F12 to Windows-F11 and F12, like the AO486 core does.

Intercepting those keystrokes was not something that real XTs did.

User avatar
spark2k06
Core Developer
Posts: 876
Joined: Sat Jun 06, 2020 9:05 am
Has thanked: 409 times
Been thanked: 969 times

Re: MDA Upgrade to Hercules

Unread post by spark2k06 »

Malor wrote: Sat Jan 28, 2023 1:12 pm

I think you're drawing the exact wrong conclusion there, spark2k06. It wasn't essential on Wordperfect, but F11 was something that almost every user would bang on constantly. And, per jca, real XTs could read the code, so IMO you should be moving both F11 and F12 to Windows-F11 and F12, like the AO486 core does.

Intercepting those keystrokes was not something that real XTs did.

Apart from this discussion, I don't see any related complaint from any user that they can't use this or that software because they can't press F11/F12, so, usable or not, what is clear is that it is certainly not very useful.

Edit:

By the way, the hook of the F11 and F12 keys is carried out at core level to access the functions described, in no case do I pass the scancodes to the system, so nothing else will happen other than what is stated.

held
Posts: 209
Joined: Sun Sep 26, 2021 2:18 pm
Has thanked: 27 times
Been thanked: 32 times

Re: MDA Upgrade to Hercules

Unread post by held »

spark2k06 wrote: Mon Jan 16, 2023 3:22 pm

I am pleased to show you the first tests on the upgrade of the MDA module from Graphics Gremlin to Hercules:

There are still some screen adjustments to be made so it doesn't look scrolled to the left, and support for the two Hercules memory pages, but I've attached a first binary for you to try out.

Apart from the cough- substandard crack in the video -cough, this is better than sliced bread :lol:
(I only use TDC or Exodus since they are actively maintained.)

breiztiger
Top Contributor
Posts: 468
Joined: Sun May 24, 2020 7:17 pm
Has thanked: 35 times
Been thanked: 99 times

Re: MDA Upgrade to Hercules

Unread post by breiztiger »

https://github.com/wbhart/crtc

perhaps some interresting infos

CPC-Power Staff
Malor
Top Contributor
Posts: 860
Joined: Wed Feb 09, 2022 11:50 pm
Has thanked: 64 times
Been thanked: 194 times

Re: MDA Upgrade to Hercules

Unread post by Malor »

I went and looked, and he doesn't even say what that does. There is literally not one word of documentation on what the "crtc" project is for, and "crtc", by itself, doesn't carry any useful information.

Maybe there's something in the sources, but a basic explanation of what it's about would seem in order before trying to dig through all those files.

breiztiger
Top Contributor
Posts: 468
Joined: Sun May 24, 2020 7:17 pm
Has thanked: 35 times
Been thanked: 99 times

Re: MDA Upgrade to Hercules

Unread post by breiztiger »

Look at the file crtc.pdf

CPC-Power Staff
suww37
Posts: 173
Joined: Sun Apr 17, 2022 2:24 am
Has thanked: 7 times
Been thanked: 15 times

Re: MDA Upgrade to Hercules

Unread post by suww37 »

You said that in the case of “Monkey1” or “prince of persia“, the hercules screen is output to normal. But if you also check these 2 games in detail, you’ll notice that the screen is not in the center and has moved slightly to the left. So it looks like you‘re going to need a screen adjustment for the Hercules graphics module, not a problem with a standard register or a non-standard register. Is it possible to solve this?

Attachments
E05AC018-E337-43E3-BA62-1CBCC89FF7EB.jpeg
E05AC018-E337-43E3-BA62-1CBCC89FF7EB.jpeg (4.81 MiB) Viewed 8965 times
28F3D3E8-3095-4744-860A-2E4D2930D208.jpeg
28F3D3E8-3095-4744-860A-2E4D2930D208.jpeg (4.27 MiB) Viewed 8965 times
User avatar
spark2k06
Core Developer
Posts: 876
Joined: Sat Jun 06, 2020 9:05 am
Has thanked: 409 times
Been thanked: 969 times

Re: MDA Upgrade to Hercules

Unread post by spark2k06 »

suww37 wrote: Mon Jan 30, 2023 9:26 am

You said that in the case of “Monkey1” or “prince of persia“, the hercules screen is output to normal. But if you also check these 2 games in detail, you’ll notice that the screen is not in the center and has moved slightly to the left. So it looks like you‘re going to need a screen adjustment for the Hercules graphics module, not a problem with a standard register or a non-standard register. Is it possible to solve this?

Maybe one day I will take it up again, but it obviously needs a revision. Again, even so, this is already more than just an MDA. So that all these inconveniences are not forgotten between posts, I suggest you open issues in the GitHub repository. I hope that someone other than myself, who is skilled enough and interested enough, can contribute to the improvements.

User avatar
Newsdee
Top Contributor
Posts: 873
Joined: Mon May 25, 2020 1:07 am
Has thanked: 104 times
Been thanked: 239 times

Re: MDA Upgrade to Hercules

Unread post by Newsdee »

Every little step helps! It's great we have basic Hercules support even if there's still some issues to iron out

held
Posts: 209
Joined: Sun Sep 26, 2021 2:18 pm
Has thanked: 27 times
Been thanked: 32 times

Re: MDA Upgrade to Hercules

Unread post by held »

suww37 wrote: Mon Jan 30, 2023 9:26 am

You said that in the case of “Monkey1” or “prince of persia“, the hercules screen is output to normal. But if you also check these 2 games in detail, you’ll notice that the screen is not in the center and has moved slightly to the left. So it looks like you‘re going to need a screen adjustment for the Hercules graphics module, not a problem with a standard register or a non-standard register. Is it possible to solve this?

I going from memory here, but I had those same problems in the late 80's begin 90's. Although we had all kinds of issues on Hercules, you accepted that as being normal. So this could be in play too.

Crazy times :lol:

User avatar
Newsdee
Top Contributor
Posts: 873
Joined: Mon May 25, 2020 1:07 am
Has thanked: 104 times
Been thanked: 239 times

Re: MDA Upgrade to Hercules

Unread post by Newsdee »

Around 89-90, I was friend of two brothers across the street, and I'd hang out at their house to play together Lucasart and Sierra adventures on their PC on Hercules (it was probably an AT). Such good times. I wonder if either of them turned out as geeky as I am for older games :D

Post Reply