Jump to content
IGNORED

COCO interrupt examples


Rastamafugg

Recommended Posts

Is there a good source for code examples using the various interrupts available for the Coco?  Preferably Basic09/Nitros9 examples, but I'm having trouble finding anything online other than what is documented in the service manual documentation.  I'm particularly interested in inserting code to run when the HSYNC and VSYNC interrupts trigger, but I can't seem to find any examples or tutorials for Coco interrupt handling in general.

Link to comment
Share on other sites

I don't have the answer to your question. I can lead you to other resources and people who may know. These places are much more popular than here.

 

FB OS9/NITROS9 Group: https://www.facebook.com/groups/1929079184021683/

FB Colour Computer Group: https://www.facebook.com/groups/2359462640/

 

CoCo Discord: https://discord.gg/4J5nHXm

 

The Colour Computer Archive IS the online resource to know about: https://colorcomputerarchive.com/ Search for books and manuals there. Software is available there too.

 

Michael

 

 
  • Like 1
Link to comment
Share on other sites

I located some assembly books for the coco.  I think what I'm looking for is registering an interrupt handler for IRQ, which fires 60 times a second.  If I'm reading that correctly, though, does that mean the IRQ interrupt fires at the same point in the display cycle?  And is that predictable? (eg: start of the vertical blank?) 

 

I'll try asking some of the sources Michael linked to above, as well.

  • Like 1
Link to comment
Share on other sites

xVsync.   LDA $FF02

vlop.        LDA $FF03

                Cmpa.  #128

                BLO.  vlop

                Rts

 

IF This subroutine is called it will wait for vsync signal.   I think its tied to the field sync signal on the vdg

  • Like 1
Link to comment
Share on other sites

On 5/30/2022 at 7:23 AM, Rastamafugg said:

Is there a good source for code examples using the various interrupts available for the Coco?  Preferably Basic09/Nitros9 examples, but I'm having trouble finding anything online other than what is documented in the service manual documentation.  I'm particularly interested in inserting code to run when the HSYNC and VSYNC interrupts trigger, but I can't seem to find any examples or tutorials for Coco interrupt handling in general.

The CoCo Discord has one of NitrOS9's Progenitors, L. Curtis Boyle as an Administrator..  And another NitrOS9 Progenitor, Bill Nobel, who frequents the OS9 Channels....

 

And then there is MrDave.......  ;)

 

MarkO  ( CoCoNUT! since 2012  )

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...