Skip to content

Instantly share code, notes, and snippets.

View gerph's full-sized avatar

Charles Ferguson gerph

View GitHub Profile
@gerph
gerph / Progress-1.svg
Last active November 2, 2025 16:10
Current progress of RISC OS 64 development
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gerph
gerph / DynamicAreasAsMLD.bas
Created February 11, 2024 19:08
Memory layout for RISC OS Pyromaniac and RISC OS Select, from live system
REM List dynamic areas
ON ERROR ERROR EXT ERR, REPORT$ + " at line " + STR$ERL
PRINT "%YAML 1.1"
PRINT "---"
PRINT "defaults:"
PRINT " # Layout options"
PRINT " unit_size: 0x4000"
PRINT " unit_height: 0.325"
PRINT " min_height: 0.675"
@gerph
gerph / git-on-macos-script.md
Created January 8, 2023 18:38
Script for using git on macOS

Script for using Git on macOS

Setup

  • Prepare RPCEmu:
    • Use 0.9.x, as 0.8.x appears to record as a black screen and you'll be very disappointed after everything going so well that you got an empty screen.
    • The version of RPCEmu I use lives at "~/Library/Applications Support/hostfs".
    • Clear the home directory on HostFS, to make it easier to see what we're doing.
  • Start the emulator, enter the desktop.
@gerph
gerph / mmio.py
Created July 12, 2019 21:03
Evil hack for memory mapped I/O in unicorn
"""
Memory Mapped I/O regions.
The regions are implemented by Evil. We cannot register regions with callbacks which will
give us a callback when they are accessed directly in the unicorn code at the present time.
However, we can trace the code that's being executed, we can trap accesses to pages that
are not available, and we can map pages in and out.
We /could/ implement an abort handler - use the unmapped hook to emulate the instruction
being executed to perform the read or write, and then increment the program counter over