0% found this document useful (0 votes)
37 views

Ds Syll

The document discusses modifying a machine according to a new instruction format and creating new microinstructions. Specifically: 1) The new instruction format contains a 3-bit opcode, 1-bit addressing mode, and 12-bit address. There are two addressing modes: direct (I=0) and indirect (I=1). 2) A new 1-bit register I is created. 3) Two new microinstructions are created: one to check the opcode and jump to the correct instruction type, and another to check the I bit and jump to the correct addressing mode.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

Ds Syll

The document discusses modifying a machine according to a new instruction format and creating new microinstructions. Specifically: 1) The new instruction format contains a 3-bit opcode, 1-bit addressing mode, and 12-bit address. There are two addressing modes: direct (I=0) and indirect (I=1). 2) A new 1-bit register I is created. 3) Two new microinstructions are created: one to check the opcode and jump to the correct instruction type, and another to check the I bit and jump to the correct addressing mode.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

5.

Simulate the machine for the following memory-reference instructions with I= 0 and
address part = 082. The instruction to be stored at address 022 in RAM. Initialize the
memory word at address 082 with the operand B8F2 and AC with A937. Determine the
contents of AC, DR, PC, AR and IR in hexadecimal after the execution.
a. ADD f. BSA
b. AND g. ISZ
c. LDA
d. STA
e. BUN

6. Simulate the machine for the memory-reference instructions referred in above question with I=
1 and address part = 082. The instruction to be stored at address 026 in RAM. Initialize the
memory word at address 082 with the value 298. Initialize the memory word at address 298
with operand B8F2 and AC with A937. Determine the contents of AC, DR, PC, AR and IR in
hexadecimal after the execution.
7. Modify the machine created in Practical 1 according to the following instruction format:

Instruction format
0 2 3 4 15
Opcode I Address

a. The instruction format contains a 3-bit opcode, a 1-bit addressing mode and a 12-
bit address. There are only two addressing modes, I = 0 (direct addressing) and I =
1 (indirect addressing).
b. Create a new register I of 1 bit.
c. Create two new microinstructions as follows :
i. Check the opcode of instruction to determine type of instruction (Memory
Reference/Register Reference/Input-Output) and then jump accordingly.
ii. Check the I bit to determine the addressing mode and then jump
accordingly.

CMSACOR03T: Programming in Java Theory: 60 Lectures

1. Introduction to Java (4 Lectures)


Java Architecture and Features, Understanding the semantic and syntax differences between
C++ and Java, Compiling and Executing a Java Program, Variables, Constants, Keywords Data
Types, Operators (Arithmetic, Logical and Bitwise) and Expressions, Comments, Doing Basic
Program Output, Decision Making Constructs (conditional statements and loops) and Nesting,
Java Methods (Defining, Scope, Passing and Returning Arguments, Type Conversion and Type
and Checking, Built-in Java Class Methods),

2. Arrays, Strings and I/O (8 Lectures)


Creating & Using Arrays (One Dimension and Multi-dimensional), Referencing Arrays
Dynamically, Java Strings: The Java String class, Creating & Using String Objects,

Manipulating Strings, String Immutability & Equality, Passing Strings To & From Methods,
String Buffer Classes. Simple I/O using System.out and the Scanner class, Byte and Character
streams, Reading/Writing from console and files.

You might also like