My plan was to do all the drawing on the "hidden" graphics page, then do the page flip when I detect we're in the vertical blank. I don't think there is sufficent cycles to draw anything significant during the VB period.I know this conversation was while back now, but thought I'd jump in. When I was young back in the 80's I had an Apple //c (came with the mouse card or similar). I remember experimenting with the VBI back then and managed to get a mouse pointer the
I know this conversation was while back now, but thought I'd jump in. When I was young back in the 80's I had an Apple //c (came with the mouse card or similar). I remember experimenting with the VBI back then and managed to get a mouse pointer thesize of the original Mac arrow pointer (copied from studying magazines at the time) to move when I moved the mouse on a hi-res screen.
It was super cool to have this code "running in the background".Yup, one can do all sorts of neat stuff if/when you have a proper Vertical Blanking Interrupt.
I couldn't get anything more than a around 2 bytes x 14 pixels (or so). My ASM wasn't the most efficient though, so I'm sure guys here could get a bit more out of it. I do remember using lookup tables to draw to the screen though. Wish we had access tothe internet back then. I had to rely on the odd magazine like Softtalk to help me out....
size of the original Mac arrow pointer (copied from studying magazines at the time) to move when I moved the mouse on a hi-res screen.I know this conversation was while back now, but thought I'd jump in. When I was young back in the 80's I had an Apple //c (came with the mouse card or similar). I remember experimenting with the VBI back then and managed to get a mouse pointer the
Nice!to the internet back then. I had to rely on the odd magazine like Softtalk to help me out....
It was super cool to have this code "running in the background".Yup, one can do all sorts of neat stuff if/when you have a proper Vertical Blanking Interrupt.
I couldn't get anything more than a around 2 bytes x 14 pixels (or so). My ASM wasn't the most efficient though, so I'm sure guys here could get a bit more out of it. I do remember using lookup tables to draw to the screen though. Wish we had access
Fantavision also has a 10x14 px mouse cursor. I should RE/rip that mouse display graphics code someday ...
For example :
$2000 : BD BD BD BD BD BD BD BD BD BD BD BD BD BD BD BD
$2010 : BD BD BD BD BD BD BD BD BD BD BD BD BD BD BD BD
Waiting Routine :
TOP_SCREEN LDA $C070
CMP $#BD
BNE TOOP_SCREEN
You need several pattern because the LDA / CMP /BNE takes few cycles and you can miss the BD. With sevral ones, you will catch it without any doubt.
Does this work on both hi-res screens?
And on a IIe with the $C019 soft switch, Instead of racing the beam (or staying ahead of the refresh), isn't it better to start drawing when the
beam is finished refreshing and is at the bottom of the screen, about to
go
up, and start drawing to the screen then. Doesn't this do the same thing
but offers a little more time to draw to the screen before the screen gets updated on the next time around?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:16:23 |
Calls: | 10,392 |
Files: | 14,064 |
Messages: | 6,417,214 |