This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "nes/cpu.h" | |
/* ------------------------------------------------------------------------- */ | |
/* -- MOS-6502 emulation and specifics ------------------------------------- */ | |
namespace mos6502 | |
{ | |
// The MOS-6502 instruction set, as an X-Macro. This encodes the | |
// opcode, instruction name, address mode, cycle count, length, and | |
// page-crossing penalties of every valid 6502 instruction. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install ARCH Linux with encrypted file-system and UEFI | |
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
# Download the archiso image from https://www.archlinux.org/ | |
# Copy to a usb-drive | |
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
# Set swedish keymap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
public class ColorNameLookup { | |
public class ColorName { | |
public int r,g,b; | |
public String name; | |
public ColorName(String name, int r, int g, int b) { | |
this.r = r; | |
this.g = g; |