Header updates + NVRAM Fix

This commit is contained in:
dingusdev 2020-01-05 10:38:32 -07:00
parent b5074e4ce1
commit b92fe60fad
14 changed files with 64 additions and 24 deletions

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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. */

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -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>

View File

@ -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 (:

View File

@ -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

View File

@ -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){

View File

@ -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;

View File

@ -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)

View File

@ -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