Skip to content

Instantly share code, notes, and snippets.

@awmc000
awmc000 / plotpixel.gvasm
Last active February 28, 2025 21:48
Plotting a pixel on the GameBoy Advance with the GVASM assembler for ARM
// ==================================================================
// ============== Pixel Plotting on GBA with GVASM ==================
// ==================================================================
.stdlib
.def MODE_3 = 0x3
.def BG2_ENABLE = 0x400
.def VRAM = 0x06000000
.def COLOUR = rgb(0, 15, 31)
@awmc000
awmc000 / mergesort.c
Created December 19, 2024 22:04
Merge sort command line demo
/*
* Merge sort implementation for study purposes
*
* Dec 19, 2024
*
* Alex McColm
* [email protected]
*/
#include <stdio.h>
#include <stdlib.h>
# float_conversion.py
import sys
import random
from binary_fractions import Binary
options = '''
Enter an option:
a........ Practice: binary16 floats --> real numbers
b........ [Some issues] Practice: real numbers --> binary16 floats
c........ [Not implemented] Step by Step Practice: real number -> binary16 float