Skip to content

Instantly share code, notes, and snippets.

View iwereth's full-sized avatar

Deepak Sharma iwereth

View GitHub Profile
@iwereth
iwereth / dis6502.c
Created July 12, 2017 06:04
Disassembler 6502
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
static int Disassemble6502Op(unsigned char *codebuffer, int pc)
{
char opstr[256];
uint8_t *opcodes = &codebuffer[pc];
int count = 1;