This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
// munged from https://github.com/simontime/Resead | |
namespace sead | |
{ | |
class Random | |
{ |
const replace = require('@rollup/plugin-replace'); | |
const envKeys = () => { | |
const envRaw = require('dotenv').config().parsed || {}; | |
return Object.keys(envRaw).reduce( | |
(envValues, envValue) => ({ ...envValues, [`process.env.${envValue}`]: JSON.stringify(envRaw[envValue]) }), | |
{} | |
); | |
}; |
//Special Tee Shot - SFC Conversion Patch | |
//Patches header and SRAM access | |
// | |
//by LuigiBlood | |
//Uses ARM9 bass fork | |
//On SNES Mini, use Preset ID 0x1058 (Kirby's Dream Course preset) | |
//Doc: |
#!/usr/bin/env node | |
/* | |
Classic Road II music ripper | |
by tcdw | |
Usage: | |
1. Get the Classic Road II ROM | |
2. Get your template SPC file: | |
2.1. Dump a SPC via your SNES emulator from the game, and hex edit x1F4 to 0x00 |
* Format is : 2-byte length word followed by compressed stream | |
MX %00 | |
*------------------------------------------------------------------------------- | |
LZ4_Unpack STY LZ4_DestOffset+1 ; Y = Destination offset | |
STX LZ4_HeaderLenByte+1 ; X = Src offset (with 2 byte len header) | |
STX LZ4_HeaderAddr+1 ; and the address of the offset | |
STA LZ4_Literal_3+1 ; Uncompress a LZ4 Packed Data buffer (64 KB max) | |
SEP #$20 ; A = Bank Src,Bank Dst | |
STA LZ4_Match_5+1 ; X = SRC Byte offset |