Questions tagged [ijvm]

IJVM is an instruction set architecture created by Andrew Tanenbaum for his MIC-1 architecture. It is used to teach assembly basics in his book Structured Computer Organization.

From the IJVM Wikipedia page:

IJVM is mostly a subset of the JVM assembly language that is used in the Java platform. This instruction set is so simple that it's difficult to write complex programs in it (for example, no shift instructions are provided).

21 questions
0
votes
0 answers

IJVM MIC | returning integer result greater than 9

I have written a code in IJVM which performs multiplication, addition and subtraction on 1 digit numbers. Basically it reads the input char, then checks the arithmetic symbol (+|-|*), reads the second char and performs the corresponding code (based…
SmOg3R
  • 159
  • 14
0
votes
0 answers

How to output a number over 9 in IJVM?

i have searched a lot, but unsuccessful. Maybe you can help me, give some advice or source where i can find the answer. I can not understand how to output a number if it is more than 9 in IJVM architecture with MIC-1 simulator, I have a simple 2…
Ign434
  • 1
  • 1
  • 2
0
votes
1 answer

MIC IJVM simple sum of 2 digits

just a simple question regarding calculations in IJVM as I couldn't find the solution in their documentation. Suppose we need to perform the following calculation: BIPUSH 0x32 // PUSH 2 BIPUSH 0x33 // PUSH 3 IADD // PUSH sum(2,3) OUT // output:…
SmOg3R
  • 159
  • 14
0
votes
1 answer

How to create a IUSHR4 on IJVM?

i need to create an extension of MAL. So, first i had tried to add on mic1sim.mal MAR = SP = SP + 1; rd // read top of the stack H = TOS // H will be a SP MDR = H = H >> 1; wr // SHIFT 1 and write…
Paolo
  • 1
-1
votes
1 answer

How to get on input ONLY numeric characters on IJVM?

I'll do a "SIMPLE program" on IJVM, but it asks: You must get on input ONLY numeric characters ( 0x30 to 0x39). So if I'll insert for example (A or b or g etc.. ) it will stop with "HALT". How can I make a condition that take the value from 0x30…
Paolo
  • 1
-1
votes
1 answer

MIC-1 Simulation how to get started

Not sure how to start this.. For the given high-level code: c = b - a; a = a * 2; complete the tasks: create corresponding ijvm hexcode store into appropriate cells simulate the instructions show changing contents of each data cell using "/",…
1
2