- pyNES versions 0.1.x is released as a Proof of concept.
Clone this repo into your computer, then:
cd pyNES
sudo python setup.py install
Inside pynes/examples
you'll find a set of examples. Compile them with:
pynes py pynes/examples/helloworld.py -o helloworld.nes
Now you can open helloworld.nes
[1] Read "That's not all" at the end
** pyNES 0.1.x **
Despite all my efforts, the pyNES version 0.1.x had several limitations as it should as a proof of concept.
- Tricky limitations:
- Sprite collision
- Scrolling Screen
- Sprite animation
- Better joystick support
- Hard to extend
Being Hard to extend
- Mantras:
- No more templating.
- Less gaps between what you are writing and what the compiler is doing.
- Easier to extend
Hi Level Functions are not templated anymore. However, th
Example of waitvblank function:
@asm_function
def waitvblank():
BIT('$2002')
BPL(waitvblank)
RTS()
That must be translated to:
waitvblank:
BIT $2002
BPL waitvblank
RTS