Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions

Question

Question What are the advantages of a written bonus plan?

Answered: 1 week ago