mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-11 20:29:46 +00:00
e091fedb38
- Added a check for NuBus Macs, providing a mirror to the ROM - Very slightly optimized ROM accesses for instructions and reads - Some slight OpenPIC fixes - Removed unused variables and slightly improved code readability - Changed readme + boot-up help to reflect on newly added debugger More changes will be added soon.
43 lines
982 B
C++
43 lines
982 B
C++
//DingusPPC - Prototype 5bf2
|
|
//Written by divingkatae
|
|
//(c)2018-20 (theweirdo)
|
|
//Please ask for permission
|
|
//if you want to distribute this.
|
|
//(divingkatae#1017 on Discord)
|
|
|
|
// The opcodes for the processor - ppcopcodes.cpp
|
|
|
|
#ifndef PPCMEMORY_H
|
|
#define PPCMEMORY_H
|
|
|
|
#include <vector>
|
|
#include <array>
|
|
|
|
extern uint32_t bat_srch;
|
|
extern uint32_t bepi_chk;
|
|
|
|
extern uint32_t msr_ir_test;
|
|
extern uint32_t msr_dr_test;
|
|
extern uint32_t msr_ip_test;
|
|
|
|
extern unsigned char * grab_macmem_ptr;
|
|
|
|
/**
|
|
struct pte {
|
|
uint32_t page_index_no;
|
|
uint32_t entry[];
|
|
pte *next;
|
|
} PTE;
|
|
**/
|
|
|
|
extern void ibat_update();
|
|
extern void dbat_update();
|
|
|
|
extern void msr_status_update();
|
|
|
|
extern void address_quickinsert_translate(uint32_t value_insert, uint32_t address_grab, uint8_t bit_num);
|
|
extern void address_quickgrab_translate(uint32_t address_grab, uint8_t bit_num);
|
|
extern void quickinstruction_translate(uint32_t address_grab);
|
|
|
|
#endif // PPCMEMORY_H
|