Code Monkey home page Code Monkey logo

nanoproc's Introduction

NanoProc

NanoProc is a Fantasy Computer. It consists of a 32-bit fantasy CPU with a fairly flexible instruction set.

The following is example assembly code to loop through the numbers 0 through 100 then halt the computer:

            MOVE  $ACC,   0  ; Initialize register ACC to 0
loop_begin: CMPGE $ACC, 100  ; Compare if register ACC is greater than or equal
                             ; to 100
            JUMPC loop_end   ; If the previous condition was true jump to the end
                             ; of the loop
            INC   $ACC       ; Increment register ACC by 1
            JUMP  loop_begin ; Jump to beginning of loop
loop_end:   HALT             ; Halt CPU execution

Subprojects

  • NP-EMU - The Emulator for the NanoProc system
    • NP-TERM - A terminal virtual hardware device for the NanoProc system.
  • NP-ASM - The Assembler for generating binaries for the NanoProc system

nanoproc's People

Contributors

drako0812 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

nanoproc's Issues

Finish Assembler

  • Finish the Parser
  • Implement Simple directives (ie. DATA, DATA_BUF, DATA_STR, OFFSET)
  • Implement Complex directives (ie. INCLUDE, MACRO/ENDMACRO, SECTION)

Finish initial round of virtual hardware

  • Implement np-term; a Terminal-only video display for the computer (uses BearLibTerminal for graphics)
  • Implement np-tick; a hardware Clock for performance measurement and future task-switching
  • Implement np-clock; a hardware Clock for retrieving wall-clock times
  • Implement np-disk; a virtual hard disk drive for permanent storage
  • Anything unforseen?

Finish Emulator

Write the emulator.

This won't take to long, I have an uncommitted emulator written, it just needs to be tweaked to work with the newest iteration of this project.

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.