PC98 Core

puu
Core Developer
Posts: 113
Joined: Mon May 25, 2020 9:20 am
Location: Japan
Has thanked: 2 times
Been thanked: 151 times
Contact:

Re: PC98 core

Unread post by puu »

Thank you.
I tried tracing with the 98DO BIOS, but I used the OUTSB instruction at a very early stage in the BIOS, which seems to be an instruction added after 80186/80286 / V30, but in Zet this is executed Unable, exception 06: It seems that an undefined instruction has occurred. (I think exception 06 was reserved on 8086) It doesn't seem to work as it is.
However, it is predicted that it will not be so difficult to modify Zet (CPU core) to support OUTSB instructions, so I am thinking about proceeding with this method.
Mosojol
Posts: 3
Joined: Fri Oct 30, 2020 5:20 am
Has thanked: 1 time

Re: PC98 core

Unread post by Mosojol »

I'm thinking you could maybe make a 8086 that supports some of the 286+ instructions not related to protected mode? It would certainly allow a larger variety of programs to run too (programs compiled for 286+ that don't use its features but compiler optimizations make them use those instructions).
Is GDC working? Is there possibility of GRCG (not EGC) features?
puu
Core Developer
Posts: 113
Joined: Mon May 25, 2020 9:20 am
Location: Japan
Has thanked: 2 times
Been thanked: 151 times
Contact:

Re: PC98 core

Unread post by puu »

This is the progress at the moment:
The INS and OUTS instructions that are missing in the 80286's real mode base have been added, and it seems that the INS instruction is not used in the BIOS, so it has been confirmed that the OUTS instruction works normally. The PUSHA and POPA instructions were implemented, but we found a bug and fixed it. As a result, the microcode has been expanded from 9-bit addresses to 10-bit addresses, so it is possible to increase the number of instructions to just under twice.
In GDC, the dot, line, and square drawing circuits are working for the time being. Circles and arcs have not been implemented yet. GRCG is also implemented.
Since I haven't connected the FDC yet, I can only boot ROM BASIC, but it is at the stage where ROM BASIC can be booted. Therefore, I think that development will proceed because the IO port can be accessed freely.

By the way, the development environment is DE0-CV. I will not port it to MiSTer until it is a little more complete.
Flakeyship
Posts: 2
Joined: Mon Dec 28, 2020 8:22 pm

Re: PC98 core

Unread post by Flakeyship »

Amazing project puu! Would it be possible to keep a 24 Khz option for those of us that still use old school MultiSync monitors?
puu
Core Developer
Posts: 113
Joined: Mon May 25, 2020 9:20 am
Location: Japan
Has thanked: 2 times
Been thanked: 151 times
Contact:

Re: PC98 core

Unread post by puu »

sorry. The timing is adjusted to VGA (640x480) that can be used by the overwhelming majority of people.
The original (640x400) should be compatible with a slight change in RTL, but I have already thrown away the compatible display so I can't confirm it.
Flakeyship
Posts: 2
Joined: Mon Dec 28, 2020 8:22 pm

Re: PC98 core

Unread post by Flakeyship »

No problem, it appears to be the most reasonable decision. At least now I have a reason to get a real pc98 :)
xFufe
Posts: 1
Joined: Mon Jan 04, 2021 10:58 am

Re: PC98 core

Unread post by xFufe »

Awesome program puu! What's left to get working? Can't wait till it's out!
puu
Core Developer
Posts: 113
Joined: Mon May 25, 2020 9:20 am
Location: Japan
Has thanked: 2 times
Been thanked: 151 times
Contact:

Re: PC98 core

Unread post by puu »

The PC-98 core port to MiSTer has been completed and is being uploaded.
There are some strange parts and functions that are not supported (pallet, HDD, etc.).

http://fpga8801.seesaa.net/archives/20210107-1.html
User avatar
ron
Posts: 160
Joined: Sun May 24, 2020 7:02 pm
Has thanked: 70 times
Been thanked: 62 times

Re: PC98 core

Unread post by ron »

OK. Thank You very much puu.
Let's take a look ! Thanks for your work.
jordi
Posts: 282
Joined: Thu Jun 11, 2020 10:11 am
Has thanked: 116 times
Been thanked: 87 times

Re: PC98 core

Unread post by jordi »

wow, that's incredible. Congrats!
Does zet itself port to Mister could be also used for normal PC games?
puu
Core Developer
Posts: 113
Joined: Mon May 25, 2020 9:20 am
Location: Japan
Has thanked: 2 times
Been thanked: 151 times
Contact:

Re: PC98 core

Unread post by puu »

Since Zet SOC itself is compatible with IBM PC, I think ao486 has higher performance. I think it's better to use ao486 than to port Zet to MiSTer.
I only use the core part of Zet (i8086).
User avatar
tontonkaloun
Top Contributor
Posts: 361
Joined: Sun May 24, 2020 7:38 pm
Has thanked: 161 times
Been thanked: 53 times

Re: PC98 core

Unread post by tontonkaloun »

puu wrote: Thu Jan 07, 2021 1:40 am The PC-98 core port to MiSTer has been completed and is being uploaded.
There are some strange parts and functions that are not supported (pallet, HDD, etc.).

http://fpga8801.seesaa.net/archives/20210107-1.html
Hello

Thank You so much Mister Puu

I tried quickly this morning.
I created a boot.rom file but the core does'nt start and the MiSTer is unresponsive.
User avatar
ron
Posts: 160
Joined: Sun May 24, 2020 7:02 pm
Has thanked: 70 times
Been thanked: 62 times

Re: PC98 core

Unread post by ron »

I have tried the core and only got a beautiful black screen. The MiSTer hangs up and a total reset must be done. I don't know if it's a problem with the ROM or if the core itself has a fault.
No OSD present and can't do anything else. Does the video work over HDMI or VGA?, I am not very clear about it, because the MiSTer hangs, maybe it could be a problem when synthesizing.
User avatar
ron
Posts: 160
Joined: Sun May 24, 2020 7:02 pm
Has thanked: 70 times
Been thanked: 62 times

Re: PC98 core

Unread post by ron »

I have resynthesized the core and we are the same. No success and too many warnings. It still does not work and the MiSTer hangs completely.

It seems to be a problem with clocks and their allocations/associations.
User avatar
ron
Posts: 160
Joined: Sun May 24, 2020 7:02 pm
Has thanked: 70 times
Been thanked: 62 times

Re: PC98 core

Unread post by ron »

Ok, I am resynthesizing and I have realized that you have to choose the Zet98MiSTer project.
In a while when I finish synthesizing I will tell you if it is specifically this. I was generating a release-Zet98MiSTer.rbf when it is the Zet98MiSTer.rbf to generate.

Edit:

Unfortunately I have obtained the same result, the behavior is the same. It does not work.
puu
Core Developer
Posts: 113
Joined: Mon May 25, 2020 9:20 am
Location: Japan
Has thanked: 2 times
Been thanked: 151 times
Contact:

Re: PC98 core

Unread post by puu »

I put the compiled .rbf in output_files / and updated it to the archived one, so please check there.
User avatar
tontonkaloun
Top Contributor
Posts: 361
Joined: Sun May 24, 2020 7:38 pm
Has thanked: 161 times
Been thanked: 53 times

Re: PC98 core

Unread post by tontonkaloun »

puu wrote: Thu Jan 07, 2021 2:09 pm I put the compiled .rbf in output_files / and updated it to the archived one, so please check there.

I don't see it.
User avatar
tontonkaloun
Top Contributor
Posts: 361
Joined: Sun May 24, 2020 7:38 pm
Has thanked: 161 times
Been thanked: 53 times

Re: PC98 core

Unread post by tontonkaloun »

It's good, the output folder is there now.
I will test.
Attachments
IMG_2759.JPG
IMG_2759.JPG (2.55 MiB) Viewed 51029 times
User avatar
tontonkaloun
Top Contributor
Posts: 361
Joined: Sun May 24, 2020 7:38 pm
Has thanked: 161 times
Been thanked: 53 times

Re: PC98 core

Unread post by tontonkaloun »

it's better!
But no osd menu


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

Re: PC98 core

Unread post by breiztiger »

hi
where can we take the rbf please ?
CPC-Power Staff
User avatar
tontonkaloun
Top Contributor
Posts: 361
Joined: Sun May 24, 2020 7:38 pm
Has thanked: 161 times
Been thanked: 53 times

Re: PC98 core

Unread post by tontonkaloun »

breiztiger wrote: Thu Jan 07, 2021 3:09 pm hi
where can we take the rbf please ?
voilà !!
Attachments
Zet98_20210107.rar
(1.15 MiB) Downloaded 475 times
breiztiger
Top Contributor
Posts: 468
Joined: Sun May 24, 2020 7:17 pm
Has thanked: 35 times
Been thanked: 99 times

Re: PC98 core

Unread post by breiztiger »

merci !!!
CPC-Power Staff
User avatar
ron
Posts: 160
Joined: Sun May 24, 2020 7:02 pm
Has thanked: 70 times
Been thanked: 62 times

Re: PC98 core

Unread post by ron »

tontonkaloun wrote: Thu Jan 07, 2021 2:44 pm It's good, the output folder is there now.
I will test.
Same for me. Exactly the same. But it doesn't start/work. :roll:
User avatar
pgimeno
Top Contributor
Posts: 710
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 277 times
Been thanked: 226 times

Re: PC98 core

Unread post by pgimeno »

If you don't have Quartus, you can use this to extract qar files: https://github.com/makigumo/unqar/blob/master/unqar.py (you need Python).
puu
Core Developer
Posts: 113
Joined: Mon May 25, 2020 9:20 am
Location: Japan
Has thanked: 2 times
Been thanked: 151 times
Contact:

Re: PC98 core

Unread post by puu »

Is the menu displayed when you press F12?
If the menu is displayed, the core itself should be running.
Since Zet is equivalent to 8086 / V30 / 80186, the BIOS of the model at that time is required. As for the era, if it is not the BIOS of the era of PC-9801VM and PC-98DO, the instructions related to protected mode are used in the BIOS and it will not start.
User avatar
siskavard
Posts: 63
Joined: Sun May 24, 2020 11:47 pm
Has thanked: 29 times
Been thanked: 6 times

Re: PC98 core

Unread post by siskavard »

Will this core be added to main eventually?
User avatar
Alkadian
Top Contributor
Posts: 728
Joined: Thu May 28, 2020 9:55 am
Has thanked: 294 times
Been thanked: 119 times

Re: PC98 core

Unread post by Alkadian »

ron wrote: Thu Jan 07, 2021 5:02 pm
tontonkaloun wrote: Thu Jan 07, 2021 2:44 pm It's good, the output folder is there now.
I will test.
Same for me. Exactly the same. But it doesn't start/work. :roll:
Hi guys,
Same for me. No video at all at the screen.
User avatar
Alkadian
Top Contributor
Posts: 728
Joined: Thu May 28, 2020 9:55 am
Has thanked: 294 times
Been thanked: 119 times

Re: PC98 core

Unread post by Alkadian »

puu wrote: Thu Jan 07, 2021 11:03 pm Is the menu displayed when you press F12?
If the menu is displayed, the core itself should be running.
Since Zet is equivalent to 8086 / V30 / 80186, the BIOS of the model at that time is required. As for the era, if it is not the BIOS of the era of PC-9801VM and PC-98DO, the instructions related to protected mode are used in the BIOS and it will not start.
Hi puu,
Thanks for the new release.
No the menu is not displayed when I press F12. I can only see a sort of faint purple box in the center of the screen, which I believe it is where the menu is supposed to show up.
User avatar
Alkadian
Top Contributor
Posts: 728
Joined: Thu May 28, 2020 9:55 am
Has thanked: 294 times
Been thanked: 119 times

Re: PC98 core

Unread post by Alkadian »

pgimeno wrote: Thu Jan 07, 2021 6:58 pm If you don't have Quartus, you can use this to extract qar files: https://github.com/makigumo/unqar/blob/master/unqar.py (you need Python).
Thanks for sharing this python script, it worked like a charm and I have managed to extract the .rbf from within the folder!
puu
Core Developer
Posts: 113
Joined: Mon May 25, 2020 9:20 am
Location: Japan
Has thanked: 2 times
Been thanked: 151 times
Contact:

Re: PC98 core

Unread post by puu »

At present, is there a mistake in the detection of disk insertion? It takes a very long time to start ROM-BASIC when the FD is not inserted.
If you load a D88 image such as MS-DOS or Disk BASIC and reset it, it will start up in about the same time as usual.
If you are using the BIOS of a model that makes a startup sound at startup, you will also hear a startup sound from HDMI.

Around 20:00(JST) yesterday, the .qar file was updated without renaming it. The .rbf file was not included before the update. The only change is the addition of the .rbf file.
Post Reply