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
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