Giter Site home page Giter Site logo

nespi's Introduction

NesPi

An NES implementation of the "Pi Spigot" algorithm by Stanley Rabinowitz and Stan Wagon. I cover various aspects of the implementation in the NES Pi video on YouTube.

Building

The project requires ca65 and make and can be built by running make from the project root.

NTSC Note

In order to fit 960 digits, the game uses nametable realestate that's usually clipped when running on an NTSC screen. This means if you run it on actual hardware or in some emulators, the digits on the top and bottom may be cut off.

License

MIT

nespi's People

Contributors

bunder2015 avatar rsandor avatar zorchenhimer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nespi's Issues

Missing directory breaks build

When running make after a fresh clone I see the following error:

Fatal error: Cannot open output file './build/nes-pi.o': No such file or directory

Manually creating a build directory or running make clean solves the problem. My make skills aren't sharp enough to submit a PR which isn't a kludge but I'm sure @rsandor or a fellow Patron can cleanly introduce a dependency which automatically creates that directory using mkdir -p build.

First line cut off on MiSTer

I gave your ROM a test on my MiSTer FPGA setup with the latest core as of this writing. I thought it wasn't working at first, but it is in fact starting the digits off the top of the screen, even on CRT with my underscan setting on.

The core should be fairly accurate, but I am curious on your thoughts on where the fault is.

image

Note that this is designed to run as a PAL region game

Hey! Thanks for the great videos and including this more complex example for all of us to play with.

When I was getting it up and running, I launched the ROM in FCEUX and thought I had broken something once I got to the Pi-calculation screen. It turns out I had FCEUX's region set to NTSC instead of PAL and it was generating the first line of Pi outside the bounds of the NTSC screen.

image

I'm not sure if there's a way to specify the region in an NES rom (that sounds like something Nintendo wouldn't have been worried about back then), but it may help others to add a note to the README saying that the built .nes rom should be run in an emulator set to the PAL region.

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.