Skip to content

VDP Command LINE issue #1961

Closed
Closed

Description

@hra1129

I would like to inform you that when executing the VDP command LINE with the parameters below,
I observed differences in behavior between A1GT and OpenMSX.

DX=200, DY=50, NX=234, NY=0, CLR=11, DIX=0, DIY=1, MAJ=1, CMD=(LINE, IMP)

The range of VDP commands supported by SCREEN5 is (0,0) to (255,1023).
For example, if a value exceeds 1023, the excess appears at the top edge.
This behavior is the same for both A1GT and OpenMSX.

However, when values exceeded 0, A1GT stopped operation at line 0.
OpenMSX differed by continuing to draw beyond 1023.

My test program.
https://github.com/hra1129/TangCartMSX/blob/main/RTL/tangnano20k_vdp_cartridge_step7/src/th9958/soft_vdp_test/SC5LINE.COM
https://github.com/hra1129/TangCartMSX/blob/main/RTL/tangnano20k_vdp_cartridge_step7/src/th9958/soft_vdp_test/sc5line.asm
https://github.com/hra1129/TangCartMSX/blob/main/RTL/tangnano20k_vdp_cartridge_step7/src/th9958/soft_vdp_test/sc5line.txt

Activity

  1. m9710797 commented on Sep 1, 2025

    @m9710797
    Contributor

    Thanks for this report!

    I've pushed a fix(?) for this.

    • Drawing a line upward now stops at the top border.
    • Drawing a line downwards wraps around at the bottom border.

    Please help verify that it's indeed the same in openMSX as on a real machine. (I only ran your test program on openMSX, not on a real machine).

  2. MBilderbeek commented on Sep 2, 2025

    @MBilderbeek
    Member

    I made a video of this test running on my real GT, from a DOS1 floppy disk. See https://youtu.be/RG-MMT6AZuo

  3. MBilderbeek commented on Sep 4, 2025

    @MBilderbeek
    Member

    @hra1129 can you confirm the current openMSX implementation is like the real hardware for your test?

  4. hra1129 commented on Sep 5, 2025

    @hra1129
    Author

    I don't have an environment set up to build the latest OpenMSX, so it's difficult to check immediately.

    The line indicated by the arrow in your video is the problematic line.
    Image

    Image

    The blue screen is page0. The orange screen displays page3.
    In the OpenMSX 20 implementation, lines were also present on the orange screen.
    In the latest version, if that line is gone, I believe it's functioning correctly.

  5. MBilderbeek commented on Sep 6, 2025

    @MBilderbeek
    Member

    @hra1129 do you know you can download the latest openMSX binaries from https://github.com/openMSX/openMSX/actions ? Just click the top master build and scroll down for build artifacts.

    But, for your convenience, I'll run the program in my emulated GT in a very recent build: please check https://youtu.be/867iTvaPnbE

  6. hra1129 commented on Sep 6, 2025

    @hra1129
    Author

    the latest openMSX binaries

    Thank you.
    I see, so the latest build was available for download. I didn't know that.

    I'll run the program in my emulated GT

    I watched the video you provided, and it appears to be working as expected.

  7. MBilderbeek commented on Sep 6, 2025

    @MBilderbeek
    Member

    If you have any (other) feedback on that latest build, please do open an issue! We hope many people try out the latest builds before we release the final 21.0, so that we can incorporate their feedback into the new release.

    Thanks for confirming that the output is now correct. I'll close this issue then. And thanks again for reporting! Really much appreciated.

  8. added a commit that references this issue on Sep 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions