Skip to content

Instantly share code, notes, and snippets.

@jondlove
jondlove / x86_boot.asm
Created February 9, 2022 13:09
A simple bootloader for booting on non-EFI x86 systems
[bits 16]
; X86_BOOT.ASM
;
; Written by Jonathan Love, 2017
; In my third/fourth/more attempt at actually getting to Protected Mode
;
; Bootloader for x86 MBR booting
;
; For interrupt codes, refer http://www.ctyme.com/intr/int.htm
; For data ports, refer to Intel's PCH Documentation
@jondlove
jondlove / swizzle_array.js
Last active May 13, 2020 19:41
Swizzle array function for Google Sheets
////
// Return an array of cells that match a reference string in the input_cell
// Example:
// W | 5
// X | 3
// Y | 6
// Z | 5
//
//
// SWIZZLE_ARRAY("WXX", A1:D2) will return [A2,B2,B2]