Question: Pep 9 Disassembler A dissembler takes the machine code and converts it back to assembly code. For example 18 12 34 --> BREQ 0x1234 6B

Pep 9 Disassembler

A dissembler takes the machine code and converts it back to assembly code. For example 18 12 34 --> BREQ 0x1234 6B 00 17 --> ADDX 0x0023,s OR ADDDX 23,s 50 00 0A --> ADDSP 0x000A,s OR ADDSP 10,s

Write a Pep/9 programs which reads up to 3 hex values from the user and displays the results as their equivalent assembly language opcodes. Your program should support all the addressing modes and valid registers and the following subset of instructions: STOP NOTr BREQ CALL DECI HEXO ADDSP SUBr LDWr STWr It should read the first hex word and determine if it is a unary instruction. If it is not, the program should read the next two hex words. The program should produce an appropriate message if the machine code is illegal.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!