view emulator/emu.c @ 9:ad2121f39b91

re-scratched the scratch code
author james <jb302@eecs.qmul.ac.uk>
date Sun, 08 Dec 2013 18:27:37 +0000
parents 3c8b4a4a1787
children e9dc055a0f8b
line wrap: on
line source
// emu.c
#include <stdio.h>
#include "mem.h"

void 
load_program(void) {
}

void 
main(void) {
    write_mem(0x0000, 0x01);
    BYTE op = read_mem(0x0000);
    printf("%c" , op);

}