mirror of
https://github.com/dingusdev/dingusppc.git
synced 2026-04-20 18:17:02 +00:00
Header updates + NVRAM Fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
+2
-2
@@ -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. */
|
||||
|
||||
|
||||
+2
-2
@@ -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 (:
|
||||
|
||||
+4
-4
@@ -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
|
||||
|
||||
|
||||
+12
-1
@@ -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;
|
||||
|
||||
+3
-3
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user