MiSTer PCXT
-
- Top Contributor
- Posts: 468
- Joined: Sun May 24, 2020 7:17 pm
- Has thanked: 35 times
- Been thanked: 99 times
Re: MiSTer PCXT
i have to type B at xt ide scrren to boot B: drive with a booter game ...
- spark2k06
- Core Developer
- Posts: 876
- Joined: Sat Jun 06, 2020 9:05 am
- Has thanked: 409 times
- Been thanked: 969 times
Re: MiSTer PCXT
README updated:breiztiger wrote: ↑Wed Aug 17, 2022 2:29 pm why floppy is mount in b: drive ?
i have to type B at xt ide scrren to boot B: drive with a booter game ...
https://github.com/spark2k06/PCXT_MiSTe ... /README.md
-
- Top Contributor
- Posts: 401
- Joined: Wed May 18, 2022 11:20 am
- Has thanked: 127 times
- Been thanked: 412 times
Re: MiSTer PCXT
I sent a pull request.
The signal that should have been declared reg (or logic) was declared wire.
This change seems to have improved the "16 / 256 colors" effect display on the 8088MPH.
- spark2k06
- Core Developer
- Posts: 876
- Joined: Sat Jun 06, 2020 9:05 am
- Has thanked: 409 times
- Been thanked: 969 times
Re: MiSTer PCXT
- Fix wire-declared registers.
- ce_pix fixed to 1'b1 in video_monochrome_converter, by @somhi
- Fix SDRAM input_delay mistake.
Other news
This repository will soon become part of MiSTer-devel, as soon as the MiSTer Main release is published. There will no longer be a prebeta branch, it will be replaced by the prerelease branch... for the time being, new pull requests will be made on the usual repository:
https://github.com/spark2k06/PCXT_MiSTe ... prerelease
As soon as it is published in MiSTer_devel, it will be next:
https://github.com/MiSTer-devel/PCXT_Mi ... prerelease
-
- Top Contributor
- Posts: 468
- Joined: Sun May 24, 2020 7:17 pm
- Has thanked: 35 times
- Been thanked: 99 times
Re: MiSTer PCXT
- spark2k06
- Core Developer
- Posts: 876
- Joined: Sat Jun 06, 2020 9:05 am
- Has thanked: 409 times
- Been thanked: 969 times
Re: MiSTer PCXT
It is variable, sometimes it says exact xt, sometimes 1%.breiztiger wrote: ↑Fri Aug 19, 2022 7:59 am with last build from 0818 8088mph crash at this screen with persitant bip
20220819_095544-screen.png
and have 1% at start of the demo (before exact xt speed)
- spark2k06
- Core Developer
- Posts: 876
- Joined: Sat Jun 06, 2020 9:05 am
- Has thanked: 409 times
- Been thanked: 969 times
Re: MiSTer PCXT
I have carried out a more detailed analysis of this problem debugging this driver, and have come to the following conclusion:spark2k06 wrote: ↑Wed Aug 17, 2022 8:07 am @MicroCoreLabs, I want to try to investigate why the DOSMAX driver crashes on this core, but first, I would like to make sure that it has nothing to do with MCL86. The configuration of the CONFIG.SYS file I have is as follows:
The crash occurs on line 4. Can you confirm that this problem does not occur on a real PC with MCL86?Code: Select all
FILES=30 DOS=HIGH,UMB DEVICE=C:\USE!UMB.SYS D000-E000 DEVICE=C:\DOSMAX\DOSMAX.EXE /R+ /N+ /P- SHELL=C:\DOSMAX\SHELLMAX.COM C:\COMMAND.COM C:\ /E:256 /P
DOSMAX, together with USE!UMB.SYS, can be downloaded from here:
https://github.com/monotech/NuXT/blob/m ... DOSMAX.zip
It seems that this instruction is not working properly. I don't know if it is a problem with MCL86 or with the core. Below I send a screenshot of PCXT in MiSTer and another one of PCEm (on a real 8088 machine it also happens):
I have checked, that if we use DS:SI instead of SS:SI, the operation is correct in MiSTer.
I have created two executables, one using SS as the source and the other using DS as the source. The first one reproduces the problem mentioned in the core, and returns an ERROR message, when on an emulator or a real PC it doesn't happen and shows OK. The other one returns OK in both environments.
@MicroCoreLabs, can you try these tests with MCL86 on a real PC? If it works fine, @kitune-san, can you try it and see if you can find out why it malfunctions with the core?
- Attachments
-
- TEST_SS_AND_DS.zip
- (345 Bytes) Downloaded 145 times
Re: MiSTer PCXT
- wark91
- Core Developer
- Posts: 334
- Joined: Sun May 24, 2020 8:34 pm
- Has thanked: 447 times
- Been thanked: 95 times
Re: MiSTer PCXT
You could add them in this list below with some screenshot
It will help tracks issues or compatibility.
https://docs.google.com/spreadsheets/d/ ... 1426632805
Re: MiSTer PCXT
wark91 wrote: ↑Fri Aug 19, 2022 10:40 amYou could add them in this list below with some screenshot
It will help tracks issues or compatibility.
https://docs.google.com/spreadsheets/d/ ... 1426632805
I know. However, both games performed well on the previous core.
- spark2k06
- Core Developer
- Posts: 876
- Joined: Sat Jun 06, 2020 9:05 am
- Has thanked: 409 times
- Been thanked: 969 times
Re: MiSTer PCXT
- wark91
- Core Developer
- Posts: 334
- Joined: Sun May 24, 2020 8:34 pm
- Has thanked: 447 times
- Been thanked: 95 times
Re: MiSTer PCXT
suww37 wrote: ↑Fri Aug 19, 2022 10:48 amwark91 wrote: ↑Fri Aug 19, 2022 10:40 amYou could add them in this list below with some screenshot
It will help tracks issues or compatibility.
https://docs.google.com/spreadsheets/d/ ... 1426632805I know. However, both games performed well on the previous core.
You can mention it there is some regression since this version with a screenshot of both versions
- pgimeno
- Top Contributor
- Posts: 709
- Joined: Thu Jun 11, 2020 9:44 am
- Has thanked: 277 times
- Been thanked: 226 times
Re: MiSTer PCXT
Does it really say "packed file error" or does it say "Packed file is corrupt"? The difference is important.
- pgimeno
- Top Contributor
- Posts: 709
- Joined: Thu Jun 11, 2020 9:44 am
- Has thanked: 277 times
- Been thanked: 226 times
Re: MiSTer PCXT
Pinging @MicroCoreLabs with a quote just in case. This looks a lot like a CPU module bug.spark2k06 wrote: ↑Fri Aug 19, 2022 8:46 amI have carried out a more detailed analysis of this problem debugging this driver, and have come to the following conclusion:spark2k06 wrote: ↑Wed Aug 17, 2022 8:07 am @MicroCoreLabs, I want to try to investigate why the DOSMAX driver crashes on this core, but first, I would like to make sure that it has nothing to do with MCL86. The configuration of the CONFIG.SYS file I have is as follows:
The crash occurs on line 4. Can you confirm that this problem does not occur on a real PC with MCL86?Code: Select all
FILES=30 DOS=HIGH,UMB DEVICE=C:\USE!UMB.SYS D000-E000 DEVICE=C:\DOSMAX\DOSMAX.EXE /R+ /N+ /P- SHELL=C:\DOSMAX\SHELLMAX.COM C:\COMMAND.COM C:\ /E:256 /P
DOSMAX, together with USE!UMB.SYS, can be downloaded from here:
https://github.com/monotech/NuXT/blob/m ... DOSMAX.zip
It seems that this instruction is not working properly. I don't know if it is a problem with MCL86 or with the core. Below I send a screenshot of PCXT in MiSTer and another one of PCEm (on a real 8088 machine it also happens):
I have checked, that if we use DS:SI instead of SS:SI, the operation is correct in MiSTer.
I have created two executables, one using SS as the source and the other using DS as the source. The first one reproduces the problem mentioned in the core, and returns an ERROR message, when on an emulator or a real PC it doesn't happen and shows OK. The other one returns OK in both environments.
@MicroCoreLabs, can you try these tests with MCL86 on a real PC? If it works fine, @kitune-san, can you try it and see if you can find out why it malfunctions with the core?
-
- Top Contributor
- Posts: 531
- Joined: Tue May 26, 2020 5:06 am
- Has thanked: 87 times
- Been thanked: 211 times
Re: MiSTer PCXT
Do you (or anyone) know why the following code does not work on the current PCXT core?
Is this a BIOS issue?
Code: Select all
procedure stuffKey(scan : byte; c : char); assembler;
asm
mov cl, c
mov ch, scan
mov ah, 5
int $16
{al=0 if success, 1 if failed, but we just ignore that here}
end;
Thanks!
- pgimeno
- Top Contributor
- Posts: 709
- Joined: Thu Jun 11, 2020 9:44 am
- Has thanked: 277 times
- Been thanked: 226 times
Re: MiSTer PCXT
The screenshots don't show the value of CX prior to the instruction, so it's hard to actually tell whether they're working properly or improperly. If CX = 1 then the results are consistent.spark2k06 wrote: ↑Fri Aug 19, 2022 8:46 am It seems that this instruction is not working properly. I don't know if it is a problem with MCL86 or with the core. Below I send a screenshot of PCXT in MiSTer and another one of PCEm (on a real 8088 machine it also happens):
MiSTer_SSSI_TO_ESDI.png
PCEM_SSSI_TO_ESDI.png
- spark2k06
- Core Developer
- Posts: 876
- Joined: Sat Jun 06, 2020 9:05 am
- Has thanked: 409 times
- Been thanked: 969 times
Re: MiSTer PCXT
I have attached a couple of executables in the thread reproducing the problem, download them, the problem is always reproduced from CX > 1.pgimeno wrote: ↑Fri Aug 19, 2022 3:30 pmThe screenshots don't show the value of CX prior to the instruction, so it's hard to actually tell whether they're working properly or improperly. If CX = 1 then the results are consistent.spark2k06 wrote: ↑Fri Aug 19, 2022 8:46 am It seems that this instruction is not working properly. I don't know if it is a problem with MCL86 or with the core. Below I send a screenshot of PCXT in MiSTer and another one of PCEm (on a real 8088 machine it also happens):
MiSTer_SSSI_TO_ESDI.png
PCEM_SSSI_TO_ESDI.png
- pgimeno
- Top Contributor
- Posts: 709
- Joined: Thu Jun 11, 2020 9:44 am
- Has thanked: 277 times
- Been thanked: 226 times
Re: MiSTer PCXT
Wikipedia is not the best source for interrupt information. Ralf Brown's interrupt list has this to say about this function:bbond007 wrote: ↑Fri Aug 19, 2022 3:14 pm @kitune-san
Do you (or anyone) know why the following code does not work on the current PCXT core?
Is this a BIOS issue?
https://en.wikipedia.org/wiki/INT_16HCode: Select all
procedure stuffKey(scan : byte; c : char); assembler; asm mov cl, c mov ch, scan mov ah, 5 int $16 {al=0 if success, 1 if failed, but we just ignore that here} end;
Thanks!
Code: Select all
--------B-1605-------------------------------
INT 16 - KEYBOARD - STORE KEYSTROKE IN KEYBOARD BUFFER (AT/PS w enh keybd only)
AH = 05h
CH = BIOS scan code
CL = ASCII character
Return: AL = status
00h if successful
01h if keyboard buffer full
AH destroyed by many BIOSes
It also lists different behaviours for this function on PCjr and Tandy 2000.
You can emulate it by grabbing the circular buffer pointers in the BIOS memory area and inserting the key in the buffer yourself.
- spark2k06
- Core Developer
- Posts: 876
- Joined: Sat Jun 06, 2020 9:05 am
- Has thanked: 409 times
- Been thanked: 969 times
Re: MiSTer PCXT
You must wait for sorgelig to make a new Main public.
Edit: Sorry, I didn't see that you had already posted it, I'll check it later.
In any case, check the README of the PCXT core. Now you should have pcxt.rom and tandy.rom instead of boot.rom.
Re: MiSTer PCXT
After renaming boot.rom, bios now works on pcxt core. But hdd.img can't be booted. It doesn't seem to recognize the image. Do I still need the uart commands in misiter.ini?
- pgimeno
- Top Contributor
- Posts: 709
- Joined: Thu Jun 11, 2020 9:44 am
- Has thanked: 277 times
- Been thanked: 226 times
Re: MiSTer PCXT
-
- Core Developer
- Posts: 96
- Joined: Sun Jun 05, 2022 6:12 pm
- Location: California
- Has thanked: 6 times
- Been thanked: 86 times
- Contact:
Re: MiSTer PCXT
I am wondering if you are getting an interrupt between repeats of the MOVSB opcode. Remember that the real 8086 will only remember the first prefix opcode in between interrupts.
Your sequence of 0xF3 0x36 0xA4 is REPeat, Segment_Override_to_SS, MOVSB. So if there is an interrupt/trap then it will resume at the 0x36 0xA4 and will lose the REPeat opcode. This is unique to the 8088. The 80286 and beyond can remember more prefixes between interrupts.
Im still checking my microcode, however I was noticing that if one byte is successfully moved using MOVSB then the segment override is basically working at least once. I will check to make sure the override works between MOVSB repeat cycles but, as I noted, you will lose the REP opcode if there is an interrupt between iterations.
- spark2k06
- Core Developer
- Posts: 876
- Joined: Sat Jun 06, 2020 9:05 am
- Has thanked: 409 times
- Been thanked: 969 times
Re: MiSTer PCXT
Exactly, that is the first byte, but 32 should have been copied.MicroCoreLabs wrote: Does the first byte of the MOVSB get moved successfully? Is the 0x5C the first byte?
I don't know if it is receiving interrupts during the copy, but it is curious that only one byte is always copied. In the previous post I have provided a couple of very simple .COM files where this behaviour is reproduced, and both in PCEm and in a real PCXT (8088 in Sergey's Micro8088 project) it works fine.MicroCoreLabs wrote: I am wondering if you are getting an interrupt between repeats of the MOVSB opcode. Remember that the real 8086 will only remember the first prefix opcode in between interrupts.
Your sequence of 0xF3 0x36 0xA4 is REPeat, Segment_Override_to_SS, MOVSB. So if there is an interrupt/trap then it will resume at the 0x36 0xA4 and will lose the REPeat opcode. This is unique to the 8088. The 80286 and beyond can remember more prefixes between interrupts.
Im still checking my microcode, however I was noticing that if one byte is successfully moved using MOVSB then the segment override is basically working at least once. I will check to make sure the override works between MOVSB repeat cycles but, as I noted, you will lose the REP opcode if there is an interrupt between iterations.
-
- Core Developer
- Posts: 96
- Joined: Sun Jun 05, 2022 6:12 pm
- Location: California
- Has thanked: 6 times
- Been thanked: 86 times
- Contact:
Re: MiSTer PCXT
Thats good. So the override is working and so is the MOVSB... just something strange about either the REP or the SEG_OVERRIDE.Exactly, that is the first byte, but 32 should have been copied.
As a quick test, would it be possible to move the CLI to before the repeated MOVSB so see if it is true that an interrupt is messing up the REP?
Its been a while since I looked at this code, however I also wonder if your single-stepping is also causing the prefix(s) to be eliminated for the MCL86. I believe that I am allowing the TRAP to come between REP iterations, but maybe thats not accurate?
Could you also write a small .com file to copy from one place to another with the same prefixes and then only after the com file runs look at the results. Would be interested to see if the sequence, if not interrupted, works successfully at all. I am not setup to duplicate this at the moment.
-
- Core Developer
- Posts: 96
- Joined: Sun Jun 05, 2022 6:12 pm
- Location: California
- Has thanked: 6 times
- Been thanked: 86 times
- Contact:
Re: MiSTer PCXT
Hmm.. this is not actual 8088 silicon, correct? The testing I did was against the real Intel 8088 to duplicate the exact behavior - especially for things like Interrupts, TRAP, and repeats. There are "bugs" in the real 8088 that I tried to duplicate which are accidentally or intentionally "corrected" in many 8088 emulators... The loss of prefixes between interrupts are one example...this behaviour is reproduced, and both in PCEm and in a real PCXT (8088 in Sergey's Micro8088 project) it works fine.
- spark2k06
- Core Developer
- Posts: 876
- Joined: Sat Jun 06, 2020 9:05 am
- Has thanked: 409 times
- Been thanked: 969 times
Re: MiSTer PCXT
I will try it tomorrow. Just stress that the problem occurs with the SS segment as the origin. Being DS there is no problem.MicroCoreLabs wrote: ↑Fri Aug 19, 2022 6:25 pmThats good. So the override is working and so is the MOVSB... just something strange about either the REP or the SEG_OVERRIDE.Exactly, that is the first byte, but 32 should have been copied.
As a quick test, would it be possible to move the CLI to before the repeated MOVSB so see if it is true that an interrupt is messing up the REP?
Its been a while since I looked at this code, however I also wonder if your single-stepping is also causing the prefix(s) to be eliminated for the MCL86. I believe that I am allowing the TRAP to come between REP iterations, but maybe thats not accurate?
Could you also write a small .com file to copy from one place to another with the same prefixes and then only after the com file runs look at the results. Would be interested to see if the sequence, if not interrupted, works successfully at all. I am not setup to duplicate this at the moment.
-
- Core Developer
- Posts: 96
- Joined: Sun Jun 05, 2022 6:12 pm
- Location: California
- Has thanked: 6 times
- Been thanked: 86 times
- Contact:
Re: MiSTer PCXT
I believe the sequence you isolated is being interrupted in the middle of the REP, possibly after the first copy. And on the genuine 8088 which has a bug where only the prefix preceding the MOVSB is saved.
Also, I suspect that DEBUG will also debounce the REP and maybe the reason you only see one successful copy.
Maybe you can allow this sequence to run and use a breakpoint on an opcode after the sequence to see if all bytes were copied.
-
- Top Contributor
- Posts: 1441
- Joined: Mon May 25, 2020 7:54 pm
- Has thanked: 496 times
- Been thanked: 467 times
Re: MiSTer PCXT
CRT SCR$ Project - building a collection of high-quality photos of CRT displays
CRT ART Books - retro-gaming books with authentic CRT photos