mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-06-27 05:29:32 +00:00
Header updates + NVRAM Fix
This commit is contained in:
parent
b5074e4ce1
commit
b92fe60fad
|
@ -1,3 +1,10 @@
|
|||
//DingusPPC
|
||||
//Written by divingkatae and maximum
|
||||
//(c)2018-20 (theweirdo) spatium
|
||||
//Please ask for permission
|
||||
//if you want to distribute this.
|
||||
//(divingkatae#1017 or powermax#2286 on Discord)
|
||||
|
||||
#include <unordered_map>
|
||||
#include <chrono>
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
//DingusPPC - Prototype 5bf2
|
||||
//Written by divingkatae
|
||||
//(c)2018-20 (theweirdo)
|
||||
//DingusPPC
|
||||
//Written by divingkatae and maximum
|
||||
//(c)2018-20 (theweirdo) spatium
|
||||
//Please ask for permission
|
||||
//if you want to distribute this.
|
||||
//(divingkatae#1017 on Discord)
|
||||
//(divingkatae#1017 or powermax#2286 on Discord)
|
||||
|
||||
// The opcodes for the processor - ppcopcodes.cpp
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
//DingusPPC - Prototype 5bf2
|
||||
//Written by divingkatae
|
||||
//(c)2018-20 (theweirdo)
|
||||
//DingusPPC
|
||||
//Written by divingkatae and maximum
|
||||
//(c)2018-20 (theweirdo) spatium
|
||||
//Please ask for permission
|
||||
//if you want to distribute this.
|
||||
//(divingkatae#1017 on Discord)
|
||||
//(divingkatae#1017 or powermax#2286 on Discord)
|
||||
|
||||
// The uniquely Gekko opcodes for the processor - ppcgekkoopcodes.cpp
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
//DingusPPC - Prototype 5bf2
|
||||
//DingusPPC
|
||||
//Written by divingkatae and maximum
|
||||
//(c)2018-20 (theweirdo) spatium
|
||||
//Please ask for permission
|
||||
//if you want to distribute this.
|
||||
//(divingkatae#1017 on Discord)
|
||||
//(divingkatae#1017 or powermax#2286 on Discord)
|
||||
|
||||
/** @file PowerPC Memory management unit emulation. */
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
//DingusPPC - Prototype 5bf2
|
||||
//DingusPPC
|
||||
//Written by divingkatae and maximum
|
||||
//(c)2018-20 (theweirdo) spatium
|
||||
//Please ask for permission
|
||||
//if you want to distribute this.
|
||||
//(divingkatae#1017 on Discord)
|
||||
//(divingkatae#1017 or powermax#2286 on Discord)
|
||||
|
||||
// The opcodes for the processor - ppcopcodes.cpp
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
//DingusPPC - Prototype 5bf2
|
||||
//DingusPPC
|
||||
//Written by divingkatae and maximum
|
||||
//(c)2018-20 (theweirdo) spatium
|
||||
//Please ask for permission
|
||||
//if you want to distribute this.
|
||||
//(divingkatae#1017 on Discord)
|
||||
//(divingkatae#1017 or powermax#2286 on Discord)
|
||||
|
||||
// General opcodes for the processor - ppcopcodes.cpp
|
||||
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
//DingusPPC
|
||||
//Written by divingkatae and maximum
|
||||
//(c)2018-20 (theweirdo) spatium
|
||||
//Please ask for permission
|
||||
//if you want to distribute this.
|
||||
//(divingkatae#1017 or powermax#2286 on Discord)
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
//DingusPPC
|
||||
//Written by divingkatae and maximum
|
||||
//(c)2018-20 (theweirdo) spatium
|
||||
//Please ask for permission
|
||||
//if you want to distribute this.
|
||||
//(divingkatae#1017 or powermax#2286 on Discord)
|
||||
|
||||
#include <cinttypes>
|
||||
#include <iostream>
|
||||
#include <cassert>
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
//DingusPPC
|
||||
//Written by divingkatae and maximum
|
||||
//(c)2018-20 (theweirdo) spatium
|
||||
//Please ask for permission
|
||||
//if you want to distribute this.
|
||||
//(divingkatae#1017 or powermax#2286 on Discord)
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <algorithm> // to shut up MSVC errors (:
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
//DingusPPC - Prototype 5bf2
|
||||
//Written by divingkatae
|
||||
//(c)2018-20 (theweirdo)
|
||||
//DingusPPC
|
||||
//Written by divingkatae and maximum
|
||||
//(c)2018-20 (theweirdo) spatium
|
||||
//Please ask for permission
|
||||
//if you want to distribute this.
|
||||
//(divingkatae#1017 on Discord)
|
||||
//(divingkatae#1017 or powermax#2286 on Discord)
|
||||
|
||||
/** MPC106 (Grackle) emulation
|
||||
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
//DingusPPC
|
||||
//Written by divingkatae and maximum
|
||||
//(c)2018-20 (theweirdo) spatium
|
||||
//Please ask for permission
|
||||
//if you want to distribute this.
|
||||
//(divingkatae#1017 or powermax#2286 on Discord)
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <cinttypes>
|
||||
|
@ -45,7 +52,11 @@ void NVram::nvram_init() {
|
|||
}
|
||||
|
||||
void NVram::nvram_save() {
|
||||
NVram::nvram_file.write((char*)nvram_storage, 8192);
|
||||
std::ofstream outfile("nvram.bin");
|
||||
|
||||
outfile.write((char*)nvram_storage, 8192);
|
||||
|
||||
outfile.close();
|
||||
}
|
||||
|
||||
uint8_t NVram::nvram_read(uint32_t nvram_offset){
|
||||
|
|
|
@ -16,6 +16,7 @@ public:
|
|||
|
||||
private:
|
||||
std::fstream nvram_file; //NVRAM file for storing and reading values
|
||||
std::ofstream nvram_savefile; //Save file when closing out DingusPPC
|
||||
|
||||
/* NVRAM state. */
|
||||
uint32_t nvram_offset;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//DingusPPC - Prototype 5bf2
|
||||
//Written by divingkatae
|
||||
//(c)2018-20 (theweirdo)
|
||||
//DingusPPC
|
||||
//Written by divingkatae and maximum
|
||||
//(c)2018-20 (theweirdo) spatium
|
||||
//Please ask for permission
|
||||
//if you want to distribute this.
|
||||
//(divingkatae#1017 on Discord)
|
||||
|
|
4
main.cpp
4
main.cpp
|
@ -1,9 +1,9 @@
|
|||
//DingusPPC - Prototype 5bf2
|
||||
//DingusPPC
|
||||
//Written by divingkatae and maximum
|
||||
//(c)2018-20 (theweirdo) spatium
|
||||
//Please ask for permission
|
||||
//if you want to distribute this.
|
||||
//(divingkatae#1017 on Discord)
|
||||
//(divingkatae#1017 or powermax#2286 on Discord)
|
||||
|
||||
//The main runfile - main.cpp
|
||||
//This is where the magic begins
|
||||
|
|
Loading…
Reference in New Issue
Block a user