Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

k = j + l; If (k == 4) L = 16; else j = j - 2; Conversion: Part 2: In a written

ID: 3589325 • Letter: K

Question

k = j + l;
If (k == 4)
L = 16;
else
j = j - 2;
Conversion:

Part 2: In a written document, address the following topics in relationship to the code you just converted:
How are the instructions represented at both the machine level and in context of a symbolic assembler? Explain the different instruction formats in terms of fixed and variable length. How are these instructions executed in a classical von Neumann machine? Part 2: In a written document, address the following topics in relationship to the code you just converted:
How are the instructions represented at both the machine level and in context of a symbolic assembler? Explain the different instruction formats in terms of fixed and variable length. How are these instructions executed in a classical von Neumann machine? .main . var .end-var iload j iload L iadd iload 1k IF1 CMPEQ Loop! - iload j ipush 2 isub istore j goto Loop2 Loop1: push 16 istore L Loop2: halt end-main

Explanation / Answer

Answer:

1) The instructions are represented in machine level as binary code. Machine language is the actual bits used to control the processor in the computer

In the context of a symbolic assembler, the instructions (binary code) are represented as letters. The binary code represented as letter can be readable by humans. Assembly language is a more human readable view of machine language.

2) Fixed length instruction : They have a byte for each instruction.

Variable length instructions: They have variable byte size for each instruction.

3) In the Von Neumann [VN] architecture, the program and data are stored in the same memory system in the same way. This allows programs to load other programs, programs to create other programs (like compilers) and self-modifying code. Instruction work one at a time and are executed by itself.