28 lines
557 B
C
28 lines
557 B
C
//
|
|
// Created by william on 10/01/24.
|
|
//
|
|
|
|
#include <panel.h>
|
|
#include "../include/types.h"
|
|
#include "../cpu/decoding.h"
|
|
|
|
#ifndef NESEMULATOR_PROGRAM_VIEW_H
|
|
#define NESEMULATOR_PROGRAM_VIEW_H
|
|
|
|
#define PROGRAM_VIEW_HEIGHT 19
|
|
#define PROGRAM_VIEW_WIDTH 42
|
|
|
|
typedef struct program_view {
|
|
PANEL *panel;
|
|
byte *ram;
|
|
address base_address;
|
|
} ProgramView;
|
|
|
|
typedef struct debug_operand {
|
|
byte op_code;
|
|
AddressingMode addr_mode;
|
|
} DebugOperand;
|
|
|
|
void program_view_init(ProgramView *view, ram ram, int x, int y);
|
|
|
|
#endif //NESEMULATOR_PROGRAM_VIEW_H
|