Tomchi wrote:Sorry i could not help you more.
Don't be so sad. It's not your fault you couldn't help
Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team
Tomchi wrote:Sorry i could not help you more.


charles wrote:of course he couldn't help ,
have you seen that bludgering he did
neat but destructive
unstable
and does not run under the editor
can not be reconfigured to work with other timers
charles




charles wrote:don't get me wrong
iam not peeing on your code
i am just making a point that a code which won't run in the editor is close to poo poo for my uses and trivial practise, how is this practical to design a program if users have to stop the editor , load the compilliier and compille
charles

charles wrote:don't get me wrong
iam not peeing on your code
i am just making a point that a code which won't run in the editor is close to poo poo for my uses and trivial practise, how is this practical to design a program if users have to stop the editor , load the compilliier and compille
every time they want to see if the code thay are working on is "proofed right" ?
i'll check again . but i'm afraid i do not like or really approve of hacks like this (frustrating to not see at edit time whats going on)
and yes like you said this is just one of many ways to do this
i'll find more!!!!!!!!!!!!!!!!!

Tomchi wrote:now what bludgering mean i don't know.


charles wrote:thanks all clear in a cloudy sort of way
charles




Tomchi wrote:
- Code: Select all
PROCEDURE timer_b
~1 ! to locate start of procedure
~1 ! and to be replaced by the save registers machine code
' interrupt code
CARD{&HFFFF8240}=CARD{rst%} ! rasterbar
CARD{&HFFFF825E}=CARD{rst15%} ! colour 15 rasters
ADD rst%,2 ! points to next
ADD rst15%,2 ! points to next
'
BYTE{&HFFFFFA0F}=BCLR(BYTE{&HFFFFFA0F},0) ! interupt is done
'
~2 ! to locate end of procedure
~2 ! and to be replaced by the restore registers machine code
RETURN



Nyh wrote:Now this is some naughty code. This will indeed work for rasters. It will however not work for timer interrupts because they might happen during a VBL interrupt (and a raster interrupt won't).
Hans Wessels


charles wrote:so basically i have to add a little more code to my dervirved tomchis ,
like if vbl interupt happening
do not read my variable?

Tomchi wrote:Nyh wrote:Now this is some naughty code. This will indeed work for rasters. It will however not work for timer interrupts because they might happen during a VBL interrupt (and a raster interrupt won't).
Hans Wessels
I don't understand why it doesn't work. I have something working with timer A, so i thought VBL wasn't a problem, but then moving mouse or even doing a PRINT would crash the proggy.
Could you enlighhten me Nyh plz, about what happens if the interrupt occurs during a VBL and why asm would work and converted gfa won't ?

charles wrote:don't set me into passive mode
nothing will get written

lp wrote:Its more than a5, GFA maintains registers a3-a5 always. If any of these change, GFA fails. Its stated in the manual which he probably never fully read. It applies to the editor and the compiler. They work nearly identical.


Nyh wrote:lp wrote:Its more than a5, GFA maintains registers a3-a5 always. If any of these change, GFA fails. Its stated in the manual which he probably never fully read. It applies to the editor and the compiler. They work nearly identical.
I stand corrected. Thanks for the clarification. And yes, I didn't read the Gfa manual form front to back because, well, I never did do any programming in Gfa.![]()


Users browsing this forum: CommonCrawl [Bot] and 0 guests