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

Interrupt-based events (like grayscale) #17

Open
Zeda opened this issue Dec 2, 2019 · 5 comments
Open

Interrupt-based events (like grayscale) #17

Zeda opened this issue Dec 2, 2019 · 5 comments
Labels
enhancement New feature or request

Comments

@Zeda
Copy link
Owner

Zeda commented Dec 2, 2019

I attempted this in the past and it broke quite a bit (you can see in the source file a commented out #define "include_interrupt" if you want to mess around with it yourself).

I think I forgot to disable interrupts for each bcall() and that may have caused it. In any event, I'm making this issue to keep it on my mind. I'll tie the Func command to this somehow, and I'm trying to decide if I should explicitly include a grayscale routine that uses this (or if the user should just use the Func command to achieve this).

Just an idea/feature request.

@Zeda Zeda added the enhancement New feature or request label Dec 2, 2019
@NonstickAtom785
Copy link
Contributor

Func should have an optional syntax that allow a menu to enhance the grayscale. I'm gonna mess around with it soon enough. Just gotta learn a couple more things.

@Zeda
Copy link
Owner Author

Zeda commented Dec 2, 2019

That's not a thing that Func should handle :P It is meant to handle subroutines and interrupts; not grayscale or anything. You can use it for grayscale, but there are other uses for it, too.

@NonstickAtom785
Copy link
Contributor

Ah okay. What if grammer had a built in Grayscale tuner?

Off topic...
I want to help with fixing bugs when I get the chance or at least locating them but I don't have a good PC for it. All I have is Mimas. I wish people were updating Mimas. I would like if you could read source directly from archive and save it directly back to archive. But I don't even think that's possible.

Back on topic...
I found a work around for delay. I used:

For <<constant>>
End

With a little routine that increases and decrease the the constant. While doing that I found a bug. I couldn't put that in the subroutine if I used a variable "directly".

.Delay
For T
End
End

However if I used Ans it worked!

@Zeda
Copy link
Owner Author

Zeda commented Dec 3, 2019

Oh, I know exactly what's wrong, thanks!
I bet you can do For 0+T and it'll work fine :P
Basically, the routine for For checks if there is a variable as the first argument. If so, it expects the next two arguments.

I'll fix this later today, thanks!

@NonstickAtom785
Copy link
Contributor

No problem.

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
None yet
Development

No branches or pull requests

2 participants