If I understand the VERA documentation correctly, I could write to VERA two bytes at a time, if I am careful. Here's how I think I can do it.
But egads, it's so much work, it ain't worth it, is it?
//
// set the initial address for port 0, and set its auto increment to 2.
//
VERA.control = 0; // select port 0
VERA.address = my_even_vram_address;
VERA.address_hi = 33; // incr = 2 and address = 1. I think.
//
// set the initial address for port 1, and set its auto increment to 2.
//
VERA.control = 1; // now select port 1
VERA.address = my_odd_vram_address;
VERA.address_hi = 33; // i.e. same as before, I think.
//
// now I can set data, two bytes at a time.
//
#define VERA_BY_2 (*(uint16_t*)0x9f23)
VERA_BY_2 = *((uint16_t*) myTwoByteStruct);
VERA_BY_2 = *((uint16_t*) myNextTwoByteStruct);
VERA_BY_2 = *((uint16_t*) myThirdTwoByteStruct);
// and so on
Question
rje
If I understand the VERA documentation correctly, I could write to VERA two bytes at a time, if I am careful. Here's how I think I can do it.
But egads, it's so much work, it ain't worth it, is it?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.