First working VERA driver
This commit is contained in:
parent
70cb1fe10d
commit
ec0577f2a2
|
@ -81,6 +81,7 @@ void vera_init(void) {
|
|||
|
||||
vera_mem_write(VERA_PALETTE_BASE, &vera_palette, 0x200);
|
||||
vera_mem_write(TEXT_CONSOLE_TILES, &vera_font_0, 0x1000);
|
||||
vera_mem_set(TEXT_CONSOLE0_VRAM, 0x00, 0x4000);
|
||||
|
||||
vera_dc_hscale_write(0x80);
|
||||
vera_dc_vscale_write(0x80);
|
||||
|
@ -101,6 +102,4 @@ void vera_init(void) {
|
|||
vera_ien_write(0b00000000);
|
||||
vera_isr_write(0b00000111);
|
||||
vera_dc_video_write(0b00010001);
|
||||
|
||||
vera_mem_write(TEXT_CONSOLE0_VRAM, (void*)(0xC00000), 0x4000);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue