LCOV - code coverage report
Current view: top level - src/util - video_mmio.c (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 17 0
Test Date: 2025-08-24 13:31:38 Functions: 0.0 % 2 0

            Line data    Source code
       1              : #include "video_mmio.h"
       2              : 
       3            0 : void print(const uint16_t color, const uint16_t x, const uint16_t y, const char* string)
       4              : {
       5            0 :   volatile char* vMem = (volatile char*)VIDEO_MEMORY;
       6              : 
       7            0 :   for(uint16_t i = 0; i < x; i++) {
       8            0 :     for(uint16_t j = 0; j < y; j++) {
       9            0 :       *vMem++;         // ASCII code byte: we just skip it!
      10            0 :       *vMem++;         // Attribute byte: we just skip it!
      11              :     }
      12              :   }
      13              : 
      14            0 :   while(*string != 0) {
      15            0 :     *vMem++ = *string++;
      16            0 :     *vMem++ = color;
      17              :   }
      18            0 : }
      19              : 
      20            0 : void clearScreen(const uint16_t color)
      21              : {
      22            0 :   volatile char* vMem = (volatile char*)VIDEO_MEMORY;
      23              :  
      24            0 :   for(uint16_t i = 0; i < SCREEN_WIDTH; i++) {
      25            0 :     for(uint16_t j = 0; j < SCREEN_HEIGHT; j++) {
      26            0 :       *vMem++ = ' ';   // ASCII code byte: we just skip it!
      27            0 :       *vMem++ = color; // Attribute byte
      28              :     }
      29              :   }
      30            0 : }
        

Generated by: LCOV version 2.0-1