Skip to content

Instantly share code, notes, and snippets.

View nonarkitten's full-sized avatar

Renee Cousins nonarkitten

View GitHub Profile
#include <stdint.h>
typedef struct {
uint16_t *bitplane[6];
uint16_t *palette;
uint16_t modulo;
} amiga_t;
static const int width = 320;
static const int height = 200;
@nonarkitten
nonarkitten / amiga_gcc_tips.md
Last active April 25, 2023 06:38
Amiga GCC Tips

This is a work-in-progress note pad of all the things I've found about gcc to make the best code possible.

Do not use ixemul

Ever.

Generally, most other PC libraries are okay, including SDL and OpenGL, but ixemul will take awesome performing code and make it run like it's walking through a tar pit -- especially on any stdio file operations. When porting "small and dirty" POSIX applications where performance does not matter, then who cares, use ixemul. For everything else, don't. Don't even use libnix. Try as much as possible to use AmigaOS native functions like AllocVec over C standard functions like malloc.

Using register parameters

@nonarkitten
nonarkitten / Amiga-ISO-60.kbd.json
Last active December 24, 2019 08:41
Amiga ISO 60
[
{
"name": "Amiga ISO 60"
},
[
{
"c": "#96938e"
},
"Esc",
{