Skip to content

Instantly share code, notes, and snippets.

@bog-dan-ro
bog-dan-ro / zx_meta.proto
Last active June 19, 2016 07:22
ZX Meta info proposal
//DEPRECATED, Moved flatbuffers here https://gist.github.com/bog-dan-ro/910cc13f6a5ff2f2649788328717db16
// ZX Spectrum metadata file
package ZX.Meta;
message Entry {
enum MachineType {
@bog-dan-ro
bog-dan-ro / zx_base.fbs
Created June 19, 2016 07:20
ZX Base flatbuffers file
// Flat Buffers ZX tables & enums
namespace ZX;
enum MachineTypes : uint (bit_flags) {
Spectrum_16K, // Spectrum 16K
Spectrum_48K, // Spectrum 48K
Spectrum_48K_NTSC, // Spectrum 48K (NTSC)
Timex_TC2048, // Timex TC2048
Timex_TC2068, // Timex TC2068
Timex_TS2068, // Timex TS2068
@bog-dan-ro
bog-dan-ro / zx_db.fbs
Last active June 19, 2016 07:26
ZX Database flatbuffers file, it is used to communicate between server services & the emulators
// Flat Buffers ZX database tables
include "zx_base.fbs";
namespace ZX.DB;
table Entry {
displayInfo: DisplayInfo;
zxFiles: [ZX.File];
scans: [ZX.Scan];
@bog-dan-ro
bog-dan-ro / zx.fbs
Created June 19, 2016 07:25
ZX emulators flatbuffers file
// Flat Buffers ZX file format
include "zx_base.fbs";
namespace ZX.FB;
enum SnapshotType : byte {
SNA,
Z80,
PLUSD,
SP,
@bog-dan-ro
bog-dan-ro / NetScript.java
Created October 17, 2023 10:49
Ghidra script to fix broken refs
import java.util.ArrayList;
import java.util.List;
import ghidra.app.script.GhidraScript;
import ghidra.program.model.address.*;
import ghidra.program.model.symbol.*;
import ghidra.program.model.listing.*;
import ghidra.program.model.lang.*;
import java.math.BigInteger;