Question
Write an Assembly language program for DLW-1 machine to calculate. (N1-N2)*N3+1 where N1, N2 and N3 are integers. In your program: 1- Use the two
Write an Assembly language program for DLW-1 machine to calculate.
(N1-N2)*N3+1 where N1, N2 and N3 are integers. In your program:
1- Use the two types of arithmetic instructions
2- Use three types of memory access instruction
3- Use the Conditional and unconditional jumping
3- Check the nonzero result
4- Write the machine language for every assembly language instruction
Table 1 Table 2
Mnemonic | Opcode |
Add | 000 |
Sub | 001 |
load | 010 |
Store | 011 |
Register | Binary Code |
A | 00 |
B | 01 |
C | 10 |
D | 11 |
Fill your program in the table3
Table 3
Assembly Language Instruction | Machine Language Instruction | PSW | Type |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started