Jump to content
IGNORED

halt as waitvbl: looking for assembly compilable snippet


Recommended Posts

In Colecovision the VDP interrupt line is connected to the NMI pin of Z80, instead of INT as in SG-1000

 

The BIOS patches the $0066 location to jump to $8021, where you should put a JP to your routine. A simple interruption routine looks like this:

 

 

PUSH AF
PUSH HL
IN A,($BF)    ; Clear interruption
POP HL
POP AF
RETN

 

Now you can use HALT :)

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...