Coder Social home page Coder Social logo

urm-simulator's Introduction

Urm-Simulator

is an easy program that simulate "Unlimited Registers Machine" commands.

URM Commands:

Command Description Code
Successor(Register number increase the value stored in Register n by 1 (RegN=RegN+1) s(1)
Zero(Register number) Reset the value stored in Register n to 0 (RegN=0) z(1)
Transfer(RegN1,RegN2) Takes a Copy of value stored in RegN1 and paste it in RegN2.(Replace the value in Reg N1 with value in RegN2). t(1,2)
Jumb(RegN1,RegN2,LineN) checks if (value in RegisterN1 equal to value in RegisterN2)
IF True:
it jumbs to the lineN and execute it and Continue in Sequence.
IF False:
it ignores the current line of Jumb and Continue the current Sequence of executing .
j(1,2,3)

Note:

Unmanaged Code may lead the program to Hang (it will not Response) because of Infinite loop caused by the
Command 3, in this case you will have to terminate the program from the Task Manager or just stop Running if you run the
Code .
Although i have provided an option for you that you can Expect the maximum number of loops that program can make
so if it exceeds the limits you gave it will break that loop.
So

be careful ! not enough times of loops won't give you any output.


Reference


For more information RTM !

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.