Giter Site home page Giter Site logo

arm_assembly_simulator's Introduction

How to run: 1.Type the arm program in input.txt 2.g++ assignment3.cpp 3. ./a.out 4.If no error shows up check output.txt

Working instruction set implemented : ADD SUB MUL CMP MOV
LDR STR B BNE BL BGE swi 0x11 .end Instruction format : LDR and STR
op(type) Rt,[Rn {, #offset}]
op(type) Rt,[Rn , #offset] op(type) Rt,[Rn], #offset

ADD and SUB op(type) {Rd},Rn,Operand2 op(type) {Rd},[Rn],#imm12

CMP CMP Rn,Rm CMP Rn,#value

MUL MUL {Rd},Rn,Rm

BRANCH op1 LABEL

MOV mov Rd,Operand2 mov Rd,#imm16

Error will be reported if two different loop have same LABEL_NAME Regular expression for LABEL_NAME [a-zA-Z][a-zA-Z0-9]* Base Address for Program counter is 4000 ALL Instruction after .end are ignored REGISTER value and MEMORY value are printed after each instruction MEMORY SIZE is 100 words i.e int array of size of 100

LIMITATION : STR, LDR with condition is not implemented. No swi instruction except swi 0x11 is implemented. Whenever 1 error is reported , file reading will be stopped. All Output before error will be sent to the Output file. constant Operand in hexadecimal format is not allowed. Instruction set should not contain (.data) , (.Text) ,(space) or any similar instruction Value Stack Pointer is not updated in any instruction.

arm_assembly_simulator's People

Stargazers

Kunal Parihar avatar

Watchers

James Cloos avatar

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.