I have to code some assignments in pep/8 assembly. Does anyone here know pep/8 or assembly in general. I am having some trouble starting off on some of the assignments and I could really use some help.
For example, here is one of the questions.
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.
Now I am a bit confused when I shift the accumulator to the left, I would use ASLA, but I then need to somehow store the value in the accumulator, so as the trap returns it won't revert back to the value that it had before the trap was called?