Code Monkey home page Code Monkey logo

chip8go's Introduction

chip8go's People

Contributors

jamesmcm 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

Watchers

 avatar  avatar  avatar

Forkers

simrit1

chip8go's Issues

Screen wrapping

Hey! Found your emulator on reddit. You've done some great research here to be accurate!

But you implement screen wrapping, and say this:

X-wrapping should be enabled, that is part of a sprite that exceeds the screen width should wrap around, and a draw instruction to draw off-screen should normally also wrap around the screen horizontally.

However, I don't think that's the case. I'm not aware of any original CHIP-8 interpreters that wrapped sprites that exceeded the screen width.

As you say, sprites should wrap when the starting coordinate is outside the screen โ€“ in other words, the starting X and Y coordinates for DXYN should be the values in VX and VY modulo (or just AND) 64 and 32, respectively, like the 1979 Breakout depends on.

On the other hand, if the sprite hits the edge of the screen while it's being drawn, however, it should be clipped, and should not wrap around (ie. the exact same way you implement Y wrapping now). As far as I know that is how it has always worked. You can see it in the disassembly of the COSMAC VIP interpreter here: http://laurencescotford.co.uk/?p=304

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.