mos-hardware 0.4.0

Hardware register tables and support functions for 8-bit retro computers like the Commodore 64, MEGA65 and others.
Documentation
#include "memory.h"
#include "debug.h"

unsigned char the_char;
void debug_msg(char* m)
{
  // Write debug message to serial monitor
  while (*m) {
    the_char = *m;
    asm volatile("lda the_char\n"
                 "sta $d643\n"
                 "nop" ::: "a");
    m++;
  }
  asm volatile("lda 0x0d\n"
               "sta $d643\n"
               "nop\n"
               "lda 0x0a\n"
               "sta $d643\n"
               "nop" ::: "a");
};