Question
I have a question regarding the Pep/8 operating system. i am able to figure out how to write this program in the sourse code, but
I have a question regarding the Pep/8 operating system. i am able to figure out how to write this program in the sourse code, but i do not know how to implement this problem into a Pep/8 trap in the operating system. could use an explanation.
Implement a new unary instruction in place of NOP0 called ASL2 that does two left shifts on the accumulator. V should remain unchanged, but N and Z should correlate with the new value in the accumulator, and C should be the carry from the second shift. Write a program that tests all the features of the new instruction.
; Problem 26 ;******* Opcode 0x24 ;The ASL2 instruction. opcode24:LDA 0x0001,i ASLA ASLA
MOVFLGA RET0
this is all i have so far.
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