Skip to content

Adityan-compile/virtual-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple CPU Emulator

A Simple CPU Emulator Built Using C++.

Instruction Set:

    LDA     [Load Accumlator AX]
    LDB     [Load Register BX]
    MOV     [Move to Register]
    CLR_A   [Clear Register AX]
    CLR_B   [Clear Register BX]
    CLR_F   [Clear Flags]
    CLR     [Clear all Registers]
    INC_AX  [Increment value in AX]
    DEC_AX  [Decrement value in AX]
    INC_BX  [Increment value in BX]
    DEC_BX  [Decrement value in BX]
    P_AX    [Print AX Register]
    P_BX    [Print BX Register]

    ADD  [Add AX & BX]
    SUB  [Subtract BX from AX]
    MUL  [Multiply AX & BX]
    DIV  [Divide  AX by BX]
    AVG  [Store Average of AX AND BX in AX]

    AND   [Perform Logical AND on AX AND BX]
    OR    [Perform Logical OR on AX AND BX]
    NOT_A [Perform Logical NOT on AX]
    NOT_B [Perform Logical NOT on BX]


    NOP,  [Do Nothing]
    JMP,  [Set Program Counter to Specified Value]
    HLT,  [Stop Program]

    ;  [Comment]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors