Page 2 of 7

Re: PC98 core

Posted: Sun Nov 08, 2020 9:42 am
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.

Re: PC98 core

Posted: Sun Nov 15, 2020 4:37 am
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?

Re: PC98 core

Posted: Thu Nov 19, 2020 3:46 am
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.

Re: PC98 core

Posted: Mon Dec 28, 2020 8:29 pm
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?

Re: PC98 core

Posted: Wed Dec 30, 2020 12:52 am
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.

Re: PC98 core

Posted: Thu Dec 31, 2020 2:34 am
by Flakeyship
No problem, it appears to be the most reasonable decision. At least now I have a reason to get a real pc98 :)

Re: PC98 core

Posted: Mon Jan 04, 2021 11:00 am
by xFufe
Awesome program puu! What's left to get working? Can't wait till it's out!

Re: PC98 core

Posted: Thu Jan 07, 2021 1:40 am
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

Re: PC98 core

Posted: Thu Jan 07, 2021 7:25 am
by ron
OK. Thank You very much puu.
Let's take a look ! Thanks for your work.

Re: PC98 core

Posted: Thu Jan 07, 2021 8:25 am
by jordi
wow, that's incredible. Congrats!
Does zet itself port to Mister could be also used for normal PC games?

Re: PC98 core

Posted: Thu Jan 07, 2021 8:51 am
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).

Re: PC98 core

Posted: Thu Jan 07, 2021 8:56 am
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.

Re: PC98 core

Posted: Thu Jan 07, 2021 8:59 am
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.

Re: PC98 core

Posted: Thu Jan 07, 2021 9:32 am
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.

Re: PC98 core

Posted: Thu Jan 07, 2021 9:38 am
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.

Re: PC98 core

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

Re: PC98 core

Posted: Thu Jan 07, 2021 2:31 pm
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.

Re: PC98 core

Posted: Thu Jan 07, 2021 2:44 pm
by tontonkaloun
It's good, the output folder is there now.
I will test.

Re: PC98 core

Posted: Thu Jan 07, 2021 2:54 pm
by tontonkaloun
it's better!
But no osd menu


I recompiled, same issue

Re: PC98 core

Posted: Thu Jan 07, 2021 3:09 pm
by breiztiger
hi
where can we take the rbf please ?

Re: PC98 core

Posted: Thu Jan 07, 2021 3:20 pm
by tontonkaloun
breiztiger wrote: Thu Jan 07, 2021 3:09 pm hi
where can we take the rbf please ?
voilà !!

Re: PC98 core

Posted: Thu Jan 07, 2021 4:13 pm
by breiztiger
merci !!!

Re: PC98 core

Posted: Thu Jan 07, 2021 5:02 pm
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:

Re: PC98 core

Posted: Thu Jan 07, 2021 6:58 pm
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).

Re: PC98 core

Posted: Thu Jan 07, 2021 11:03 pm
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.

Re: PC98 core

Posted: Thu Jan 07, 2021 11:49 pm
by siskavard
Will this core be added to main eventually?

Re: PC98 core

Posted: Fri Jan 08, 2021 12:12 am
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.

Re: PC98 core

Posted: Fri Jan 08, 2021 12:13 am
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.

Re: PC98 core

Posted: Fri Jan 08, 2021 12:15 am
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!

Re: PC98 core

Posted: Fri Jan 08, 2021 12:25 am
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.