1.1 --- a/display.c Sun May 28 19:03:58 2017 +0200
1.2 +++ b/display.c Sun May 28 19:08:49 2017 +0200
1.3 @@ -21,6 +21,22 @@
1.4 #include "mips.h"
1.5 #include "vga.h"
1.6
1.7 +void init_framebuffer(uint32_t *data)
1.8 +{
1.9 + uint32_t *addr = (uint32_t *) KSEG1_BASE;
1.10 + uint16_t x, y;
1.11 +
1.12 + for (y = 0; y < LINE_COUNT; y++)
1.13 + {
1.14 + for (x = 0; x < LINE_LENGTH; x += 4)
1.15 + {
1.16 + *addr = *data;
1.17 + addr++;
1.18 + data++;
1.19 + }
1.20 + }
1.21 +}
1.22 +
1.23 void init_framebuffer_with_pattern()
1.24 {
1.25 uint32_t *addr = (uint32_t *) KSEG1_BASE;