Something is almost working

This commit is contained in:
2025-02-08 23:23:21 +01:00
parent aaf3dfb40c
commit 45653b6372
15 changed files with 969 additions and 326 deletions

23
util/cpustatusui.h Normal file
View File

@@ -0,0 +1,23 @@
//
// Created by bruno on 8.2.2025.
//
#ifndef RISCB_CPUSTATUSUI_H
#define RISCB_CPUSTATUSUI_H
#include "font.h"
#include "../cpu/core.h"
typedef struct {
char name[4];
uint32_t value;
} CPUStatusPart;
SDL_Texture *renderVals(CPU *cpu, BitmapFont *titleFont, BitmapFont *valueFont,
SDL_Renderer *renderer);
SDL_Texture *renderState(CPU *cpu, BitmapFont *titleFont, SDL_Renderer *renderer);
void getStats(CPU *cpu, CPUStatusPart **cpuStatus, int *cpuStatusCount);
#endif //RISCB_CPUSTATUSUI_H