Project: Updated the name of the main memory window and made a small change to make clang happy

This commit is contained in:
(Tim) Efthimis Kritikos 2024-02-23 08:06:03 +00:00
parent 9f987da7a6
commit f6008b603d

4
gui.c
View File

@ -437,7 +437,7 @@ int update_memdump(WINDOW *win,uint32_t address,struct simdata_t *simdata){
int width,height; int width,height;
getmaxyx(win,height,width); getmaxyx(win,height,width);
box(win, 0 , 0); box(win, 0 , 0);
mvwprintw(win,0,width/2-6,"[ MEMDUMP ]"); mvwprintw(win,0,width/2-5,"[ MEMORY ]");
if(simdata->registers==NULL||simdata->RAM==NULL){ if(simdata->registers==NULL||simdata->RAM==NULL){
mvwprintw(win,1,1,"Data not initialised"); mvwprintw(win,1,1,"Data not initialised");
return 0; return 0;
@ -666,10 +666,10 @@ int update_general_terminal_output(struct simdata_t *simdata){
int vfb_width=(width-2)*2; int vfb_width=(width-2)*2;
int vfb_height=(height-2)*4; int vfb_height=(height-2)*4;
float x0,y0,x1,y1;
for(uint64_t i=0;i < simdata->terminal_output_size/4;i++){ for(uint64_t i=0;i < simdata->terminal_output_size/4;i++){
uint32_t c=simdata->terminal_output[i]; uint32_t c=simdata->terminal_output[i];
if(vector){ if(vector){
float x0,y0,x1,y1;
switch(vstate){ switch(vstate){
case 0: /*start of line*/ case 0: /*start of line*/
if(c==0x00000001) if(c==0x00000001)