Jump to content
IGNORED

TI Basic move crunch buffer in assembly


retroclouds

Recommended Posts

22 hours ago, Asmusr said:

Further on the dependence on the F18A, you could add a horizontal scanline handler that changes the name table when it reached a certain scan line and changes it back again when the last line is reached.

 

Quick question on that. Do we have sample code showing how to use the scanline handler. I guess you basically load a short program on the F18A GPU and then set the start address in one of the VDP registers?

 

Link to comment
Share on other sites

40 minutes ago, retroclouds said:

 

Quick question on that. Do we have sample code showing how to use the scanline handler. I guess you basically load a short program on the F18A GPU and then set the start address in one of the VDP registers?

 

I don't have a generic example, but you can find everything in this code from zqx-one.

When you enable to hsync trigger it will start the GPU at it's current PC at the end of each scanline. The GPU will then run until it meets an IDLE instruction.

I'm setting up the hsync trigger every time the gpu code is called but you only have to set it up once.

From GPU code the VDP registers are mapped to >6000-603f. 

[Edit: registers are at >6000, current scanline is at >7000]

 

gpu.a99

Edited by Asmusr
Correction
  • Like 3
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...