mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-11-20 02:32:36 +00:00
Improved VERA code.
This commit is contained in:
parent
2d58a799d5
commit
27d0aa9e67
@ -34,8 +34,7 @@ void memcpy_to_vram(char vbank, void* vdest, void* src, unsigned int num ) {
|
||||
*VERA_ADDRX_M = >vdest;
|
||||
*VERA_ADDRX_H = VERA_INC_1 | vbank;
|
||||
// Transfer the data
|
||||
char *s = src;
|
||||
char *end = (char*)src+num;
|
||||
for(; s!=end; s++)
|
||||
for(char *s = src; s!=end; s++)
|
||||
*VERA_DATA0 = *s;
|
||||
}
|
||||
|
@ -54,9 +54,9 @@ void irq_line() {
|
||||
*VERA_CTRL &= ~VERA_DCSEL;
|
||||
for(char l=0;l!=230;l++) {
|
||||
*VERA_DC_BORDER = BARS[l];
|
||||
for(char i=0;i<24;i++) ; // Wait exactly long enought to go to the next raster line
|
||||
for(char i=0;i<24;i++) ; // Wait exactly long enough to go to the next raster line
|
||||
*VERA_DC_BORDER = 0;
|
||||
for(char i=0;i<23;i++) ; // Wait exactly long enought to go to the next raster line
|
||||
for(char i=0;i<23;i++) ; // Wait exactly long enough to go to the next raster line
|
||||
asm { nop nop }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user