casting address to struct pointer #40
Unanswered
michaelsarr
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Cheater! This kind of acceleration wasn't common until the 90s. Did you measure the times difference? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Anyhow i did get a drawline functioning called from the 6502 and running in the pico vga
at the moment I have some code running on the 6502
you create a struct
struct msarrline
{
uint16_t x0;
uint16_t x1;
uint16_t y0;
uint16_t y1;
uint8_t color;
};
Set the values for from x,y , to x,y and color then copy it to xram @ OxE000
xreg(0xE00,16,1);// to fire it off
i put in a hook to call my function and pass it the address of the struct
vga side
it is a whole lot faster, though
Beta Was this translation helpful? Give feedback.
All reactions