mos-hardware 0.4.0

Hardware register tables and support functions for 8-bit retro computers like the Commodore 64, MEGA65 and others.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
#include "memory.h"
#include "targets.h"

unsigned char detect_target(void)
{
  // We use the different I2C device blocks to identify the various hardware targets

  return lpeek(0xffd3629);

  return TARGET_UNKNOWN;
}