Skip to content

Instantly share code, notes, and snippets.

@Ced2911
Ced2911 / Dockerfile
Created March 4, 2021 12:15
Libyaul Dockerfile archlinux:base-devel-20210228.0.16308
FROM archlinux:base-devel-20210228.0.16308
ENV YAUL_INSTALL_ROOT=/opt/tool-chains/sh2eb-elf/
ENV YAUL_PROG_SH_PREFIX=
ENV YAUL_ARCH_SH_PREFIX=sh2eb-elf
ENV YAUL_ARCH_M68K_PREFIX=m68keb-elf
ENV YAUL_BUILD_ROOT=${HOME}/libyaul
ENV YAUL_BUILD=build
ENV YAUL_CDB=1
ENV YAUL_OPTION_DEV_CARTRIDGE=0
/* Copyright 2014 Theo Berkau
This file is part of PseudoSaturn.
PseudoSaturn is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
PseudoSaturn is distributed in the hope that it will be useful,
@Ced2911
Ced2911 / SaturnBios.java
Last active November 19, 2021 18:53
SaturnBios.java
//TODO write a description for this script
//@author
//@category _NEW_
//@keybinding
//@menupath
//@toolbar
import ghidra.app.script.GhidraScript;
import ghidra.program.model.util.*;
import ghidra.program.model.reloc.*;
@Ced2911
Ced2911 / Dockerfile
Last active February 20, 2021 01:17
Docker libyaul
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
ARG BUILD_OPTION_DEV_CARTRIDGE=0
ARG BUILD_OPTION_MALLOC_IMPL="tlsf"
ARG BUILD_OPTION_SPIN_ON_ABORT=1
ARG BUILD_CDB=1
ENV YAUL_INSTALL_ROOT=/opt/tool-chains/sh-elf
@Ced2911
Ced2911 / postinstall.sh
Created October 4, 2017 08:57
snes mini
sed -i -re 's/\/usr\/share\/games\/nes\/kachikachi/\/var\/lib\/hakchi\/rootfs\/usr\/share\/games/g' /var/lib/hakchi/rootfs/etc/preinit.d/b0000_defines
rm /var/lib/hakchi/rootfs/usr/share/games/nes -R
cp /usr/share/games/* /var/lib/hakchi/rootfs/usr/share/games -R
#include <vector>
#include <iostream>
#include <string.h>
#include <string>
#include <stdio.h>
#include <boost/asio.hpp>
#include <boost/thread.hpp>
#include <boost/program_options.hpp>
#define PORT_COM "COM4"
#define N_ADDR_PIN 20
#define N_DATA_PIN 16
typedef unsigned long uint32_t;
typedef unsigned long addr_t;
typedef unsigned short data_t;
typedef struct {
byte addr_pin[N_ADDR_PIN];
byte data_pin[N_DATA_PIN];