Grammer2 icon indicating copy to clipboard operation
Grammer2 copied to clipboard

Interrupt-based events (like grayscale)

Open Zeda opened this issue 5 years ago • 5 comments

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 avatar Dec 02 '19 17:12 Zeda

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.

NonstickAtom785 avatar Dec 02 '19 18:12 NonstickAtom785

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.

Zeda avatar Dec 02 '19 19:12 Zeda

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!

NonstickAtom785 avatar Dec 03 '19 17:12 NonstickAtom785

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!

Zeda avatar Dec 03 '19 18:12 Zeda

No problem.

NonstickAtom785 avatar Dec 03 '19 18:12 NonstickAtom785