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
Get step-by-step solutions from verified subject matter experts
