Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to hardware scrolling under cpc #1083

Open
poppichicken opened this issue Dec 10, 2024 · 2 comments
Open

Add support to hardware scrolling under cpc #1083

poppichicken opened this issue Dec 10, 2024 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@poppichicken
Copy link

poppichicken commented Dec 10, 2024

hi Marco.

I'm not sure if I have written this correctly, but rightScroll is not called.

BITMAP ENABLE(160,200,16)
BORDER OLIVE GREEN
CLS BLACK
DEFINE KEYBOARD ASYNC

ON SCROLL RIGHT COLUMN CALL rightScroll

PRINT "hello"
HSCROLL SCREEN RIGHT
END

rightScroll:
PRINT "rightScroll"
RETURN

image

Same thing happens if I use:

ON SCROLL RIGHT COLUMN GOSUB rightScroll
@spotlessmind1975 spotlessmind1975 added the bug Something isn't working label Dec 10, 2024
@spotlessmind1975 spotlessmind1975 added this to the future milestone Dec 10, 2024
@spotlessmind1975 spotlessmind1975 moved this from Needs triage to High priority in Bug fix / Correzione bug Dec 10, 2024
@spotlessmind1975 spotlessmind1975 added enhancement New feature or request and removed bug Something isn't working labels Dec 10, 2024
@spotlessmind1975
Copy link
Owner

Hi @poppichicken , and thank you for your bug report!

At first I thought it was a bug but, in fact, looking closely, it is not. In the sense that the ON...SCROLL instruction works with hardware scrolling (to be clear: what can be done pixel by pixel with some chipsets), but not with software scrolling (which is what can be done character by character). The reason is simple: it is a callback that is used to allow the program to fill the space not yet shown, before proceeding with the actual video shifting. Hardware scrolling is not implemented on the cpc target. So it is necessary to implement that type of operation first.

Thank you!

@spotlessmind1975 spotlessmind1975 changed the title ON SCROLL ... CALL (CPC) Add support to hardware scrolling under cpc Dec 10, 2024
@poppichicken
Copy link
Author

Ah, I see.
Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants