ericb59 / Fusion-C-v1.2

MSX C Library for SDCC compiler
Other
71 stars 7 forks source link

Bug in hmmm x coordinate #8

Closed Ray-Hoo closed 3 years ago

Ray-Hoo commented 3 years ago

When I copy a part of the screen with the hmmm command and put in on a certain target location the location is off by 1 pixel. When I move it to the right with 1 pixel, it moves with 2 pixels. So it looks like there is a bug in the X coordinate.

ericb59 commented 3 years ago

Hello,

What is the screen mode you are using ?

ericb59 commented 3 years ago

If you are using Screen mode 5 or 7 , this is normal. It's a hardware limitation.

Ray-Hoo commented 3 years ago

Yes, I am using screen 5. Could you please explain a bit more about this hardware limitation? As I did not experience this when using Turbo Pascal on the MSX (or I have not noticed it).

ericb59 commented 3 years ago

Hi,

You can check in the V9938 manual : http://map.grauw.nl/resources/video/yamaha_v9938.pdf Page 62 That in G4 and G6 mode (Screen mode 5 and 7) the lower bit of SX and DX are lost. So coordinates must be even numbers.

ericb59 commented 3 years ago

Hi,

If you have a GitHub account and want to be included in the Beta test of Fusion-C 1.3, let me know your GitHub Account.

See you Eric

Le lun. 9 nov. 2020 à 19:28, Raymond notifications@github.com a écrit :

Yes, I am using screen 5. Could you please explain a bit more about this hardware limitation? As I did not experience this when using Turbo Pascal on the MSX (or I have not noticed it).

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ericb59/Fusion-C-v1.2/issues/8#issuecomment-724193121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJIPCUI3BK6LMNXGZWGYOH3SPAYGTANCNFSM4TMRUGEQ .