STRETCH YOUR IMAGINATION AND SKILL IN THE VIRTUAL WORLD OF PRIMITIVE PROCESSOR !!!This is a simple hypothetical virtual processor built on a small number of instruction set
STRETCH YOUR IMAGINATION AND SKILL IN THE VIRTUAL WORLD OF PRIMITIVE PROCESSOR !!!This is a simple hypothetical virtual processor built on a small number of instruction set.You can write program in assembly like language and run it to test your program.It has 4 general purpose registers A,B,C and D.Instruction pointer(Program Counter) is denoted by PC.It will display the register contents and PC value for each instruction executed.You can check the program output by inspecting the desired regist
er value.Instruction set consists of the following :mov R1,R2 is [R1]<---[R2]mov R1,N is [R1]<---Nadd R1,R2 is [R1]<---[R1]+[R2]add R1,N is [R1]<---[R1]+Nsub R1,R2 is [R1]<---[R1]-[R2]sub R1,N is [R1]<---[R1]-Nmul R1,R2 is [R1]<---[R1]*[R2]mul R1,N is [R1]<---[R1]*Ndiv R1,R2 is [R1]<---[R1]/[R2]div R1,N is [R1]<---[R1]/Njmp L is jump to location L jzona L is jump to location L if [A]=0 jnzona is jump to location L if [A]!=0 jzonb is jump to location L if [B]=0 jnzonb is jump to location L if [B]!=0jzonc is jump to location L if [C]=0 jnzonc is jump to location L if [C]!=0 jzond is jump to location L if [D]=0 jnzond is jump to location L if [D]!=0 hlt is stopwhere R,R1,R2 are the any registers a,b,c or dN is any number integer or floating pointL is the label[R] means content of register RYou can write your own code and test it by running it.You can stretch your imagination and extend your assembly programming logic in a constrained environment like this.All these are *ABSOLUTELY FREE* ,*NO INAPP PURCHASES* and * NO ADS*.This is very helpful for education purpose.*** note : If there is any bug please report the bug to me through email.
... moreless ...