nesemu/debugger/program_view.h

33 lines
675 B
C
Raw Normal View History

2024-01-11 16:02:53 -05:00
//
// Created by william on 10/01/24.
//
2024-01-14 21:59:13 -05:00
#ifndef NESEMULATOR_PROGRAM_VIEW_H
#define NESEMULATOR_PROGRAM_VIEW_H
2024-01-11 16:02:53 -05:00
#include <panel.h>
#include "../include/types.h"
#include "../cpu/decoding.h"
2024-01-14 21:59:13 -05:00
#include "cursor.h"
#include "window.h"
2024-01-11 16:02:53 -05:00
#define PROGRAM_VIEW_HEIGHT 19
#define PROGRAM_VIEW_WIDTH 42
typedef struct program_view {
2024-01-14 21:59:13 -05:00
InteractWindow *window;
2024-01-11 16:02:53 -05:00
byte *ram;
address base_address;
} ProgramView;
typedef struct debug_operand {
2024-01-14 21:59:13 -05:00
address addr;
2024-01-11 16:02:53 -05:00
byte op_code;
AddressingMode addr_mode;
2024-01-14 21:59:13 -05:00
enum OperandType type;
word value;
2024-01-11 16:02:53 -05:00
} DebugOperand;
2024-01-14 21:59:13 -05:00
void program_view_init(InteractWindow *interact, ram ram, int x, int y);
2024-01-11 16:02:53 -05:00
#endif //NESEMULATOR_PROGRAM_VIEW_H