Unfortunately, if I do that, I will encounter a weirder screen.
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
Could you please share your mister.ini file to see if there is some configuration to adapt ?suww37 wrote: ↑Thu Jul 21, 2022 3:52 pmUnfortunately, if I do that, I will encounter a weirder screen.
Re: MiSTer PCXT
- Attachments
-
- MiSTer.zip
- (2.99 KiB) Downloaded 133 times
- wark91
- Core Developer
- Posts: 334
- Joined: Sun May 24, 2020 8:34 pm
- Has thanked: 447 times
- Been thanked: 95 times
Re: MiSTer PCXT
Thank you !
In your file, you have two things seems not good.
first point : "volumectl=1" not sure it is use. It is not present in default ini file. Do you know why this option is here ?
Second point:
; Set to 1 for automatic HDMI VSync rate adjust to match original VSync.
; Set to 2 for low latency mode (single buffer).
; This option makes video butter smooth like on original emulated system.
; Adjusting is done by changing pixel clock. Not every display supports variable pixel clock.
; For proper adjusting and to reduce possible out of range pixel clock, use 60Hz HDMI video
; modes as a base even for 50Hz systems.
vsync_adjust=1 Match display frequency
Match display frequency highlighted is not good it is need to be commented by adding ";" before the texte.
you could try to set "vsync_adjust=0" to see if it helps.
Third point : you set vga_scaler to 1. Normally with your screen at 15Khz you don't need to pass by the scaler. You could try set it to 0 to see.
If one core required to pass by vga_scaler you can set specifically for this core by putting this option under [NAME_CORE] to apply it just for the core you want to pass by the scaler.
In your file, you have two things seems not good.
first point : "volumectl=1" not sure it is use. It is not present in default ini file. Do you know why this option is here ?
Second point:
; Set to 1 for automatic HDMI VSync rate adjust to match original VSync.
; Set to 2 for low latency mode (single buffer).
; This option makes video butter smooth like on original emulated system.
; Adjusting is done by changing pixel clock. Not every display supports variable pixel clock.
; For proper adjusting and to reduce possible out of range pixel clock, use 60Hz HDMI video
; modes as a base even for 50Hz systems.
vsync_adjust=1 Match display frequency
Match display frequency highlighted is not good it is need to be commented by adding ";" before the texte.
you could try to set "vsync_adjust=0" to see if it helps.
Third point : you set vga_scaler to 1. Normally with your screen at 15Khz you don't need to pass by the scaler. You could try set it to 0 to see.
If one core required to pass by vga_scaler you can set specifically for this core by putting this option under [NAME_CORE] to apply it just for the core you want to pass by the scaler.
-
- Top Contributor
- Posts: 468
- Joined: Sun May 24, 2020 7:17 pm
- Has thanked: 35 times
- Been thanked: 99 times
Re: MiSTer PCXT
Volumectl=1 is for keyboard that have multimédia keys (vol +, vol -, mute)
Édit: volumectl=0 ; enable audio volume control by multimedia keys
Édit: volumectl=0 ; enable audio volume control by multimedia keys
CPC-Power Staff
Re: MiSTer PCXT
Thank you for helping me first. But even if I do what you say, the symptoms are the same. It doesn't seem to be a problem with the MISTER.ini setting.wark91 wrote: ↑Thu Jul 21, 2022 4:41 pm Thank you !
In your file, you have two things seems not good.
first point : "volumectl=1" not sure it is use. It is not present in default ini file. Do you know why this option is here ?
Second point:
; Set to 1 for automatic HDMI VSync rate adjust to match original VSync.
; Set to 2 for low latency mode (single buffer).
; This option makes video butter smooth like on original emulated system.
; Adjusting is done by changing pixel clock. Not every display supports variable pixel clock.
; For proper adjusting and to reduce possible out of range pixel clock, use 60Hz HDMI video
; modes as a base even for 50Hz systems.
vsync_adjust=1 Match display frequency
Match display frequency highlighted is not good it is need to be commented by adding ";" before the texte.
you could try to set "vsync_adjust=0" to see if it helps.
Third point : you set vga_scaler to 1. Normally with your screen at 15Khz you don't need to pass by the scaler. You could try set it to 0 to see.
If one core required to pass by vga_scaler you can set specifically for this core by putting this option under [NAME_CORE] to apply it just for the core you want to pass by the scaler.
- wark91
- Core Developer
- Posts: 334
- Joined: Sun May 24, 2020 8:34 pm
- Has thanked: 447 times
- Been thanked: 95 times
Re: MiSTer PCXT
Thanks. I didn't know this option !breiztiger wrote: ↑Thu Jul 21, 2022 5:28 pm Volumectl=1 is for keyboard that have multimédia keys (vol +, vol -, mute)
and it is not present in this sample file : https://github.com/MiSTer-devel/Main_Mi ... MiSTer.ini
Re: MiSTer PCXT
When I run with Tandy, the top of the screen is a little crushed, but it's still worth watching. However, the cga is crushed a lot.dmckean wrote: ↑Thu Jul 21, 2022 1:18 pmSome CRTs are able to handle an off specification sync signal much better than others. In my experience so far on this project, it's normal for cores to have wonky video this early on. It's an early beta and you should just deal with it for now.suww37 wrote: ↑Thu Jul 21, 2022 1:08 pm
Is it a sync problem? However, in other people's crt, 15khz is output normally, so I don't understand why I'm the only one who can't output it. Do you think there is a problem with the pcxt core? What kind of effort should I do to solve this? I'd like to see the 15khz crt screen.
- Attachments
-
- 4DF51BE3-D039-4D18-B89E-EB9CBB804FD3.jpeg (6.26 MiB) Viewed 7921 times
- wark91
- Core Developer
- Posts: 334
- Joined: Sun May 24, 2020 8:34 pm
- Has thanked: 447 times
- Been thanked: 95 times
Re: MiSTer PCXT
Hope next updates could sort your issue.suww37 wrote: ↑Thu Jul 21, 2022 5:31 pmThank you for helping me first. But even if I do what you say, the symptoms are the same. It doesn't seem to be a problem with the MISTER.ini setting.wark91 wrote: ↑Thu Jul 21, 2022 4:41 pm Thank you !
In your file, you have two things seems not good.
first point : "volumectl=1" not sure it is use. It is not present in default ini file. Do you know why this option is here ?
Second point:
; Set to 1 for automatic HDMI VSync rate adjust to match original VSync.
; Set to 2 for low latency mode (single buffer).
; This option makes video butter smooth like on original emulated system.
; Adjusting is done by changing pixel clock. Not every display supports variable pixel clock.
; For proper adjusting and to reduce possible out of range pixel clock, use 60Hz HDMI video
; modes as a base even for 50Hz systems.
vsync_adjust=1 Match display frequency
Match display frequency highlighted is not good it is need to be commented by adding ";" before the texte.
you could try to set "vsync_adjust=0" to see if it helps.
Third point : you set vga_scaler to 1. Normally with your screen at 15Khz you don't need to pass by the scaler. You could try set it to 0 to see.
If one core required to pass by vga_scaler you can set specifically for this core by putting this option under [NAME_CORE] to apply it just for the core you want to pass by the scaler.
last test (just in case) try the default ini file https://raw.githubusercontent.com/MiSTe ... MiSTer.ini and set just direct_video to 1.
-
- Top Contributor
- Posts: 860
- Joined: Wed Feb 09, 2022 11:50 pm
- Has thanked: 64 times
- Been thanked: 194 times
Re: MiSTer PCXT
That bent screen looks like the output timing might not be stable at the start of a frame, like maybe something is ringing a bit until it settles.
edit: well, ringing might be a poor word choice... it looks like, starting about 8 lines down, the video signal is arriving early, and then stabilizes later.
edit: well, ringing might be a poor word choice... it looks like, starting about 8 lines down, the video signal is arriving early, and then stabilizes later.
- Newsdee
- Top Contributor
- Posts: 873
- Joined: Mon May 25, 2020 1:07 am
- Has thanked: 104 times
- Been thanked: 239 times
Re: MiSTer PCXT
See here for a fix for now:
viewtopic.php?p=56151#p56151
There are quite a few things in the core not finalized in terms of signal timings. This is why you see this and the PVM issue. Fixing those is not easy but as the core matures they will improve.
To give you an idea, you can have a look at how VGA works:
http://javiervalcarce.eu/html/vga-signa ... cs-en.html
15khz video is less standard but similar principles apply
Re: MiSTer PCXT
I didn't understand. Will it be a normal screen if I use MS dos 3.2?Newsdee wrote: ↑Fri Jul 22, 2022 12:40 amSee here for a fix for now:
viewtopic.php?p=56151#p56151
There are quite a few things in the core not finalized in terms of signal timings. This is why you see this and the PVM issue. Fixing those is not easy but as the core matures they will improve.
To give you an idea, you can have a look at how VGA works:
http://javiervalcarce.eu/html/vga-signa ... cs-en.html
15khz video is less standard but similar principles apply
- Newsdee
- Top Contributor
- Posts: 873
- Joined: Mon May 25, 2020 1:07 am
- Has thanked: 104 times
- Been thanked: 239 times
Re: MiSTer PCXT
There is a DOS 3.2 command to switch video output to 200 linessuww37 wrote: ↑Fri Jul 22, 2022 1:05 am I didn't understand. Will it be a normal screen if I use MS dos 3.2?
- 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 made a work around to the problem of ghost lines in text mode, thanks @Mills for giving me the hint:
https://github.com/spark2k06/PCXT_MiSTe ... 130a6fcb20
If you examine the commit, you will see that I intercept the change of v_maxscan when tandy and text modes are enabled. If requested to change to 8 (225 lines, 9 per character), I force it to be 7... i.e. we are back to 200 lines and nothing happened
However, this is not the best solution, so we will consider it temporary, in order not to have to use MODE 200, and to make life easier for core users.
I have located the real problem of the ghost line in text mode of the Tandy BIOS, it is in cga_pixel.sv:
The character font is 8x8, however, with the change to 225 lines it should be 8x9... and the last row should be an empty line, however what is happening is that the line reading is looped and so the first row is repeated (which would be the ghost line), it seems that the solution to this is simple, but I can't see how to fix it, so for the moment we'll stick with the work around.
I attach the updated prebeta 1.5, but a warning regarding the turbo version, and is that apparently, this change has made the memory unstable ... no idea why, I attach it also as a curiosity, but I recommend to continue using PCXT_PREBETA_1_5_TURBO_04 instead of this if the 05 gives you problems, which will give you problems.
https://github.com/spark2k06/PCXT_MiSTe ... 130a6fcb20
If you examine the commit, you will see that I intercept the change of v_maxscan when tandy and text modes are enabled. If requested to change to 8 (225 lines, 9 per character), I force it to be 7... i.e. we are back to 200 lines and nothing happened
However, this is not the best solution, so we will consider it temporary, in order not to have to use MODE 200, and to make life easier for core users.
I have located the real problem of the ghost line in text mode of the Tandy BIOS, it is in cga_pixel.sv:
The character font is 8x8, however, with the change to 225 lines it should be 8x9... and the last row should be an empty line, however what is happening is that the line reading is looped and so the first row is repeated (which would be the ghost line), it seems that the solution to this is simple, but I can't see how to fix it, so for the moment we'll stick with the work around.
I attach the updated prebeta 1.5, but a warning regarding the turbo version, and is that apparently, this change has made the memory unstable ... no idea why, I attach it also as a curiosity, but I recommend to continue using PCXT_PREBETA_1_5_TURBO_04 instead of this if the 05 gives you problems, which will give you problems.
- Attachments
-
- PCXT_PREBETA_1_5_TURBO_05.zip
- (1 MiB) Downloaded 141 times
-
- PCXT_PREBETA_1_5_05.zip
- (1.01 MiB) Downloaded 137 times
- pgimeno
- Top Contributor
- Posts: 709
- Joined: Thu Jun 11, 2020 9:44 am
- Has thanked: 277 times
- Been thanked: 226 times
Re: MiSTer PCXT
I don't know how a CGA behaves if the selected character height is greater than 8, if that is possible at all. Does anyone know? Is there anyone who has a functional PC with CGA and is willing to test?
Depending on the answer, a patch for the ghost line problem should be Tandy-specific or general.
Also, can someone with a Tandy machine confirm if there are blank lines when displaying a screen full of solid blocks? I suspect that instead of adding a blank line, it repeats the last line.
The fix might be as simple as:
(in place of https://github.com/spark2k06/PCXT_MiSTe ... el.sv#L120)
Depending on the answer, a patch for the ghost line problem should be Tandy-specific or general.
Also, can someone with a Tandy machine confirm if there are blank lines when displaying a screen full of solid blocks? I suspect that instead of adding a blank line, it repeats the last line.
The fix might be as simple as:
Code: Select all
assign rom_addr = {char_byte, (row_addr < 5'd8 ? row_addr[2:0] : 3'd7)};
Converters I've written: Floppy DIM/FDI/FDD/HDM to D88, D88 to XDF, Tape SVI 318/328 CAS to WAV
- spark2k06
- Core Developer
- Posts: 876
- Joined: Sat Jun 06, 2020 9:05 am
- Has thanked: 409 times
- Been thanked: 969 times
Re: MiSTer PCXT
Very well seen. Great contribution!pgimeno wrote: ↑Fri Jul 22, 2022 8:32 am I don't know how a CGA behaves if the selected character height is greater than 8, if that is possible at all. Does anyone know? Is there anyone who has a functional PC with CGA and is willing to test?
Depending on the answer, a patch for the ghost line problem should be Tandy-specific or general.
Also, can someone with a Tandy machine confirm if there are blank lines when displaying a screen full of solid blocks? I suspect that instead of adding a blank line, it repeats the last line.
The fix might be as simple as:
(in place of https://github.com/spark2k06/PCXT_MiSTe ... el.sv#L120)Code: Select all
assign rom_addr = {char_byte, (row_addr < 5'd8 ? row_addr[2:0] : 3'd7)};
I'll update the repository as soon as I can and re-submit the binaries.
Thanks for your help!
- pgimeno
- Top Contributor
- Posts: 709
- Joined: Thu Jun 11, 2020 9:44 am
- Has thanked: 277 times
- Been thanked: 226 times
Re: MiSTer PCXT
Here's a test program to check the behaviour of 9 lines per character. It prints two lines of checkerboard block characters in order to see what happens in a CGA and in a Tandy.
- Attachments
-
- TST9LIN.zip
- (199 Bytes) Downloaded 156 times
Converters I've written: Floppy DIM/FDI/FDD/HDM to D88, D88 to XDF, Tape SVI 318/328 CAS to WAV
- 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 tried your application, and another one developed by @Mills, and finally I have left one line blank and conditioned to be in Tandy mode:
https://github.com/spark2k06/PCXT_MiSTe ... c1ba077ed4
All this, derived from the tests I have carried out on PCem with CGA and with Tandy, would have to be confirmed on real hardware but for the moment that is the way it is. I attach binaries, again the turbo version is now unstable because of this small code change.
- Attachments
-
- PCXT_PREBETA_1_5_TURBO_06.zip
- (1.01 MiB) Downloaded 152 times
-
- PCXT_PREBETA_1_5_06.zip
- (1.01 MiB) Downloaded 143 times
Re: MiSTer PCXT
The turbo core freezes during boot.spark2k06 wrote: ↑Fri Jul 22, 2022 1:38 pmI have tried your application, and another one developed by @Mills, and finally I have left one line blank and conditioned to be in Tandy mode:
https://github.com/spark2k06/PCXT_MiSTe ... c1ba077ed4
All this, derived from the tests I have carried out on PCem with CGA and with Tandy, would have to be confirmed on real hardware but for the moment that is the way it is. I attach binaries, again the turbo version is now unstable because of this small code change.
- spark2k06
- Core Developer
- Posts: 876
- Joined: Sat Jun 06, 2020 9:05 am
- Has thanked: 409 times
- Been thanked: 969 times
Re: MiSTer PCXT
" again the turbo version is now unstable because of this small code change"suww37 wrote: ↑Fri Jul 22, 2022 2:48 pmThe turbo core freezes during boot.spark2k06 wrote: ↑Fri Jul 22, 2022 1:38 pmI have tried your application, and another one developed by @Mills, and finally I have left one line blank and conditioned to be in Tandy mode:
https://github.com/spark2k06/PCXT_MiSTe ... c1ba077ed4
All this, derived from the tests I have carried out on PCem with CGA and with Tandy, would have to be confirmed on real hardware but for the moment that is the way it is. I attach binaries, again the turbo version is now unstable because of this small code change.
-
- Top Contributor
- Posts: 1441
- Joined: Mon May 25, 2020 7:54 pm
- Has thanked: 496 times
- Been thanked: 467 times
Re: MiSTer PCXT
I've tried this on a hdd image made with "./serdrive -n 500MB 500.img". I did the fdisk, format, then installed DOS 6.22 via native setup installer (from floppies). It boots fine in ao486, but when I move it to the PCXT, I get "Invalid partition table" error (after "Booting C>>C").flynnsbit wrote: ↑Mon Jul 18, 2022 1:14 pm 1. create the disk using serdrive
2. make sure the disk has a vhd extension and move it to your AO486 directory
3. have a primary disk mounted to 0-0 that has fdisk, a dos system of your choosing, and format commands.
4. you can also use an installer like MS-DOS 6.22 from the floppy and in that case you would mount the vhd you created to 0-0 (make sure and set the floppy to boot in the AO486 hardware menu option or it wont ever boot the floppy install)
5. boot the system (from floppy or a pre-configured DOS VHD in 0-0), you should land at dos
6. run fdisk. select the appropriate disk, then select option 1 to create a partition
7. reboot
8. back to dos format d: (if this is your second disk) or format c: if you booted with a floppy and it is your primary disk 0-0
9. if you are trying to use any of my pre-built images for the boot drive, you need to run "assign" with no options to temporarily remove the D: mapping I have in the autoexec which takes over the D: drive.
10. copy the DOS directory over to you newly formatted drive and anything else you want.
11. set the pcxt_hdd_mount.sh script to mount the drive you just created (good time to increase the transfer speed to 460K in the script if you havent), and put yours in the location it expects /games/PCXT/hdd.img
12. Run the script
13. Run the core.
Running Prebeta 1.5.06 and latest uart script - this handles my older (small) images ok. Any ideas why it might be happening?
EDIT: all good now, thanks to flynnsbit's help.
CRT SCR$ Project - building a collection of high-quality photos of CRT displays
CRT ART Books - retro-gaming books with authentic CRT photos
- 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've started with the preliminary development of what will be the prebeta 2.0 version, we won't need the image mount script anymore
On this occasion, the MiSTer file needs to be updated.
For the time being, the configuration is not saved, nor is the image specified in the menu displayed, but the assembly takes place, and after a reset, you can see that it starts. In addition, the image is currently mounted at a fixed speed of 460.8K and must comply with the following parameters:
It is also not possible to unmount the image, and I don't know what effect the image change will have if you haven't restarted MiSTer, it is a very preliminary version.
On this occasion, the MiSTer file needs to be updated.
For the time being, the configuration is not saved, nor is the image specified in the menu displayed, but the assembly takes place, and after a reset, you can see that it starts. In addition, the image is currently mounted at a fixed speed of 460.8K and must comply with the following parameters:
Code: Select all
cyl = 62;
sect = 63;
head = 16;
- Attachments
-
- PCXT_PREBETA_2_0_01.zip
- (1.04 MiB) Downloaded 146 times
-
- MiSTer_PCXT.zip
- (547.36 KiB) Downloaded 139 times
- wark91
- Core Developer
- Posts: 334
- Joined: Sun May 24, 2020 8:34 pm
- Has thanked: 447 times
- Been thanked: 95 times
Re: MiSTer PCXT
It is not easy.
It is the mister main and it is located the /main/fat directory on your sdcard.
If you update your mister this action needs to be done again because the last release of Main Mister will replace it.
I think it is better to wait for this point.
- Newsdee
- Top Contributor
- Posts: 873
- Joined: Mon May 25, 2020 1:07 am
- Has thanked: 104 times
- Been thanked: 239 times
Re: MiSTer PCXT
Is it possible to support mouse with this setup? Or is the serial port completely taken over by the serial disk?
Re: MiSTer PCXT
I copied the PCXT file using SAMBA to the /main/fat directory, but it can't be copied.
It is said that the copy is unloaded because it is being used by MiSTer.
How can I copy it?
- 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 need to remove the one on the SDCard.suww37 wrote: ↑Sat Jul 23, 2022 3:18 pm
I copied the PCXT file using SAMBA to the /main/fat directory, but it can't be copied.
It is said that the copy is unloaded because it is being used by MiSTer.
How can I copy it?
-
- Top Contributor
- Posts: 552
- Joined: Sun May 24, 2020 8:07 pm
- Has thanked: 185 times
- Been thanked: 310 times
- Contact:
Re: MiSTer PCXT
One small request. Could you also add the second *.IMG file option so we can mount a floppy to A. For serdrive it is just simply passing in a second file on the serdrive path, it needs to be at the very end of the serdrive command. I realize we will have to bounce it when swapping out floppy disks but it would be nice to mount one for now.spark2k06 wrote: ↑Sat Jul 23, 2022 7:41 am I've started with the preliminary development of what will be the prebeta 2.0 version, we won't need the image mount script anymore
prebeta_2.0.jpg
On this occasion, the MiSTer file needs to be updated.
For the time being, the configuration is not saved, nor is the image specified in the menu displayed, but the assembly takes place, and after a reset, you can see that it starts. In addition, the image is currently mounted at a fixed speed of 460.8K and must comply with the following parameters:
It is also not possible to unmount the image, and I don't know what effect the image change will have if you haven't restarted MiSTer, it is a very preliminary version.Code: Select all
cyl = 62; sect = 63; head = 16;
Code: Select all
Floppy images may also be used. Image size must be exactly the same size
as a 2.88MB, 1.44MB, 1.2MB, 720KB, 360KB, 320KB, 180KB, or 160KB disk.
Floppy images must be the last disks discovered by the BIOS, and only
two floppy drives are supported by the BIOS at a time.
Also one cool byproduct of you starting with serdrive is now in the future, you could add options in the core menu for creating different image disks, including floppy disks directly from inside the core. That would allow everything to be self contained without having to leave the core to create new disks, floppy images, etc for mounting. Even when actual IDE/Floppy controller support is added this would be a really cool feature.