PC88 Core

User avatar
patamar4
Posts: 15
Joined: Sun May 24, 2020 6:56 pm
Has thanked: 8 times
Been thanked: 1 time

PC88 Core

Unread post by patamar4 »

I believe that most already know, but to leave registered the Puu converted the core of PC88 to Mister and update x68k

http://fpga8801.seesaa.net/
User avatar
AmigoMexicano
Posts: 14
Joined: Mon May 25, 2020 3:06 am

Re: PC88 Core

Unread post by AmigoMexicano »

Yes! Found out on the facebook group. Trying to test it, once the family goes to sleep haha :D This core needs SRAM card? The one I ordered is taking some time to arrive...
--
From Mexico City... AmigoMexicano!
(Yes, the same from all other retro forums)
*MiSTer FPGA Owner since April 2020*
User avatar
zomgugoff
Posts: 33
Joined: Sun May 24, 2020 8:54 pm

Re: PC88 Core

Unread post by zomgugoff »

I tried to compile it, but it didn't produce a .rbf file for some reason. I was able to compile the updated F68k core, however.
User avatar
Cebion
Posts: 115
Joined: Sun May 24, 2020 7:30 pm
Has thanked: 1 time
Been thanked: 3 times

Re: PC88 Core

Unread post by Cebion »

Here are some tips for configuring it: (Taken from another post)

BASIC Mode: N88 V1H (V2 if you mostly play V2 games, but V1 games won't tell you that you are running in the wrong mode if you try to launch them in V2, while V2 games will usually display a message if you need to launch in V2 mode)

CPU Clock: 4MHz (most PC-88 systems until late models are 4MHz only, and many titles assume 4MHz)
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: PC88 Core

Unread post by puu »

Due to copyright issues, some files may not be included in the archive.
I'm sorry that the attached document is written in Japanese. (Because I can understand only C, VHDL and Japanese)
Probably the missing one is the font file.
Save the 8x16 dot font file as Font/fonth.hex.
Since there is an 8x16dot part in FONT ROM(0x0800-0x17ff), I think that you should extract that part with a binary editor and save it as .hex.
LFT
Posts: 19
Joined: Sun May 24, 2020 7:28 pm
Has thanked: 10 times
Been thanked: 3 times

Re: PC88 Core

Unread post by LFT »

I love that core. Thank you puu :)
Televicious
Posts: 93
Joined: Mon May 25, 2020 8:23 pm
Been thanked: 4 times

Re: PC88 Core

Unread post by Televicious »

is there a .rbf download somewhere? I don't have quartus installed.
User avatar
ron
Posts: 160
Joined: Sun May 24, 2020 7:02 pm
Has thanked: 70 times
Been thanked: 62 times

Re: PC88 Core

Unread post by ron »

Thanks puu !
Core runs very well. Was a bit complicated to concatenate the Roms, so after that, everything was fine !
There were some .d88 with weird behaviour and requiring for V2, so the rest worked fine, even CP/M-

Great Work ! Amazing.

ありがとうpuu!
コアは非常によく動作します。 Romsを連結するのは少し複雑だったので、その後はすべてうまくいきました!
奇妙な動作とV2を必要とする.d88がいくつかあったので、CP/M-
cpmpc88kunihiko.jpg
cpmpc88kunihiko.jpg (28.05 KiB) Viewed 143593 times
User avatar
Sorgelig
Site Admin
Posts: 890
Joined: Thu May 21, 2020 9:49 pm
Has thanked: 2 times
Been thanked: 214 times

Re: PC88 Core

Unread post by Sorgelig »

@puu,
do PC88 and X68000 use NEC uPD765 as a floppy controller?
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: PC88 Core

Unread post by puu »

Yes.FDC is same.
ExCyber
Posts: 232
Joined: Sun May 24, 2020 3:33 pm
Has thanked: 12 times
Been thanked: 77 times

Re: PC88 Core

Unread post by ExCyber »

Can this boot at all without the I/O board? I get a blank screen, but I'm not sure whether I made a mistake with fonth.hex/boot.rom or the core just never starts unless it can mount the secondary SD card.

edit: Okay, it gets to the ROM BASIC interpreter with "Mode" set to something other than "N". And then if I switch it back to "N" and reset, the PC-8001 BASIC does boot (although sometimes with glitches in the function bar). But if I load the core with Mode "N" it does not boot. So I'm not sure what's going on, but it's roughly the result I was going for (i.e. not being able to run disks but being able to play around with the ROM BASIC).
User avatar
AmigoMexicano
Posts: 14
Joined: Mon May 25, 2020 3:06 am

Re: PC88 Core

Unread post by AmigoMexicano »

I'm also getting black screen, but after mounting a disk and reload the core, nothing shows... already activated auto boot of the disk, and also changed terminal to basic with no disk at all, I don't get any output. Does this needs SDRAM card? Mine is on transit.
--
From Mexico City... AmigoMexicano!
(Yes, the same from all other retro forums)
*MiSTer FPGA Owner since April 2020*
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: PC88 Core

Unread post by puu »

This core can boot without I/O board. When without 2nd SDcard, ROM BASIC will boot.
When press F11, Is core display "SD CARD DISK EMULATION UTILITY" ?
If only the border is visible, there is no font file or missing.
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: PC88 Core

Unread post by puu »

SDRAM board is required.This core read from SDRAM every 8 dots in the horizontal display. The latency is too long for the DDR SRAM on the ARM core side.
Of course, the original DE0-CV does not have DDR SDRAM on the ARM core side.
User avatar
AmigoMexicano
Posts: 14
Joined: Mon May 25, 2020 3:06 am

Re: PC88 Core

Unread post by AmigoMexicano »

I have I/O card. So 2nd SD is installed with disk images. Yes, F11 displays the SD Card utility. It just goes to black after selecting a disk and reload the core.

(and sorry, I meant SDRAM board in my last post)
--
From Mexico City... AmigoMexicano!
(Yes, the same from all other retro forums)
*MiSTer FPGA Owner since April 2020*
User avatar
AmigoMexicano
Posts: 14
Joined: Mon May 25, 2020 3:06 am

Re: PC88 Core

Unread post by AmigoMexicano »

puu wrote: Tue May 26, 2020 2:40 am SDRAM board is required.This core read from SDRAM every 8 dots in the horizontal display. The latency is too long for the DDR SRAM on the ARM core side.
Of course, the original DE0-CV does not have DDR SDRAM on the ARM core side.
That's my problem. Ok, I'll have to wait until my SDRAM board arrives.

Thanks!!
--
From Mexico City... AmigoMexicano!
(Yes, the same from all other retro forums)
*MiSTer FPGA Owner since April 2020*
User avatar
zomgugoff
Posts: 33
Joined: Sun May 24, 2020 8:54 pm

Re: PC88 Core

Unread post by zomgugoff »

puu wrote: Mon May 25, 2020 9:53 am Due to copyright issues, some files may not be included in the archive.
I'm sorry that the attached document is written in Japanese. (Because I can understand only C, VHDL and Japanese)
Probably the missing one is the font file.
Save the 8x16 dot font file as Font/fonth.hex.
Since there is an 8x16dot part in FONT ROM(0x0800-0x17ff), I think that you should extract that part with a binary editor and save it as .hex.
Sorry, I am a little confused. There is a fonth.hex in \PC8801\Font already. It needs to be replaced?
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: PC88 Core

Unread post by puu »

It seems that things that should not be seen are visible. Yes. It is necessary to replace it with the one extracted from the actual machine you have.
Previous versions didn't include anything that wasn't in "Files" in the archive, but are recent versions looking for something specified by IP?
LeftEmpty
Posts: 148
Joined: Sun May 24, 2020 6:47 pm
Has thanked: 4 times
Been thanked: 4 times

Re: PC88 Core

Unread post by LeftEmpty »

Congratulations on your work puu, it is really very impressive! I didn't expect the compatibility to be this good.
The PC-88 (and particularly the PC-80) are amongst my favourite 8-bits computers. I'm totally psyched about your project!
ExCyber
Posts: 232
Joined: Sun May 24, 2020 3:33 pm
Has thanked: 12 times
Been thanked: 77 times

Re: PC88 Core

Unread post by ExCyber »

zomgugoff wrote: Mon May 25, 2020 4:21 am I tried to compile it, but it didn't produce a .rbf file for some reason. I was able to compile the updated F68k core, however.
I thought that I had answered this in my previous post, but I guess I deleted that part before posting. For whatever reason, the archived version of the project is not configured to produce a .rbf file. To change this, I added the following line to PC8801/v17/release-MiSTerDemu.qsf:

Code: Select all

set_global_assignment -name GENERATE_RBF_FILE ON
In principle you're not supposed to edit this file directly (definitely don't do it while the project is loaded in Quartus!), but the GUI flow for changing this setting didn't work for me because simply opening the dialog changed the target device to an incorrect one, and the correct device wasn't listed for some reason. I don't understand why it happened that way, but adding the line to the .qsf directly did generate a working .rbf file (with the caveats noted in the edit to my previous post).
LeftEmpty
Posts: 148
Joined: Sun May 24, 2020 6:47 pm
Has thanked: 4 times
Been thanked: 4 times

Re: PC88 Core

Unread post by LeftEmpty »

I can't confirm it since I don't have a Windows computer to compile quartus executables, but Puu released today an update to support external font (although I don't have the readme to see the details), and he fixed that output error while he were at it.
User avatar
zomgugoff
Posts: 33
Joined: Sun May 24, 2020 8:54 pm

Re: PC88 Core

Unread post by zomgugoff »

LeftEmpty wrote: Wed May 27, 2020 3:51 am I can't confirm it since I don't have a Windows computer to compile quartus executables, but Puu released today an update to support external font (although I don't have the readme to see the details), and he fixed that output error while he were at it.
I can confirm, Puu made the change in the latest release. The 8x16 font is now added to the boot.rom file instead of being compiled in. I guess that means the .rbf could be distributed legally now.

Speaking of the boot.rom file, I made a little Python script to build it for this release, if anyone wants it.
User avatar
wark91
Core Developer
Posts: 334
Joined: Sun May 24, 2020 8:34 pm
Has thanked: 447 times
Been thanked: 95 times

Re: PC88 Core

Unread post by wark91 »

Thank you Puu for this core and the X68000.

@Zomgugolf, I'm interested by your script. I tried yesterday to build the boot.rom but with no luck.
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: PC88 Core

Unread post by puu »

I did:
cat N88.rom N80.rom N88_0.rom N88_1.rom N88_2.rom N88_3.rom CFONT.bin graphfont.bin DISK.ROM blank8k.bin blank8k.bin KANJI1.rom KANJI2.rom >boot.rom
User avatar
wark91
Core Developer
Posts: 334
Joined: Sun May 24, 2020 8:34 pm
Has thanked: 447 times
Been thanked: 95 times

Re: PC88 Core

Unread post by wark91 »

thank you Puu !
Is it possible to have the sha1sum of each part to be sure I have the correct inputs ?
User avatar
wark91
Core Developer
Posts: 334
Joined: Sun May 24, 2020 8:34 pm
Has thanked: 447 times
Been thanked: 95 times

Re: PC88 Core

Unread post by wark91 »

I finally build the correct boot.rom with helps ! Thank you for the informations.
DanHero
Posts: 21
Joined: Wed May 27, 2020 8:36 pm
Has thanked: 1 time
Been thanked: 2 times

Re: PC88 Core

Unread post by DanHero »

can someone do a little tutorial for this core? I'm currently running out of ideas. I have the rbf file in the main sd, a boot.rom file obtained by renaming one of the many bios for the system and the .d88 disks in the secondary sd. At the moment the core automatically starts the disk manager, so I mount the disks, press f11 to close the manager, reset the core and nothing, black screen. I can't figure out what I'm doing wrong.
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: PC88 Core

Unread post by puu »

The hardware is highly compatible, so I think that any version of the BIOS will work, but the PC88's BIOS has many different versions. So checksum will be difficult.
suverman
Posts: 84
Joined: Mon May 25, 2020 1:17 am
Has thanked: 42 times
Been thanked: 6 times

Re: PC88 Core

Unread post by suverman »

Ys (Ys1,2,3) doesnt seem to want to load at the moment. Rest all seem running perfectly for me.
User avatar
zomgugoff
Posts: 33
Joined: Sun May 24, 2020 8:54 pm

Re: PC88 Core

Unread post by zomgugoff »

wark91 wrote: Wed May 27, 2020 4:20 am Thank you Puu for this core and the X68000.

@Zomgugolf, I'm interested by your script. I tried yesterday to build the boot.rom but with no luck.
pc88_bios.7z
Python 3 boot.rom compiler
(856 Bytes) Downloaded 938 times
It's written for Python 3. Put all of the needed files in the same place. You'll have to edit it and change the list of variables to match your filenames. When you run it, it should output a boot.rom file. If it finds one, it will exit without doing anything.
Post Reply