Coder Social home page Coder Social logo

nesdev's Introduction

nesdev

I’m just playing around, not meant to be useful for anyone but me :)

Getting started

Install cc65 (a freeware C compiler for 6502 based systems)

brew install cc65

Add Vim syntax highlighting for the ca65 assembler using Vundle

Plugin 'maxbane/vim-asm_ca65'

" ASM ca65
au BufRead,BufNewFile *.s set filetype=asm_ca65

Emulators (running under OS X)

I’ve also been using a few different NES emulators written in Go:

and then

NES C Programming Examples

Makefile for the CC65 NES examples

compile = \
	ca65 crt0.s;                                           \
	cc65 -Oi $(1).c --add-source;                          \
	ca65 $(1).s;                                           \
	ld65 -C $(2).cfg -o $(1).nes crt0.o $(1).o runtime.lib \

all: 1 2 3 4 5 6 7 8 9

1:
	$(call compile,example1,nrom_128_horz)

2:
	$(call compile,example2,nrom_128_horz)

3:
	$(call compile,example3,nrom_128_horz)

4:
	$(call compile,example4,nrom_128_horz)

5:
	$(call compile,example5,nrom_128_horz)

6:
	$(call compile,example6,nrom_128_horz)

7:
	$(call compile,example7,nrom_128_horz)

8:
	$(call compile,example8,nrom_128_horz)

9:
	$(call compile,example9,nrom_128_horz)

clean:
	rm *.o *.nes

With this makefile you should be able to compile all of the examples under OS X.

2C03 and 2C05

Links

nesdev's People

Contributors

peterhellberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

manlycode

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.