24 lines
531 B
C
24 lines
531 B
C
//
|
|
// 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
|