Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Student Homework Assignment

???
02/17/04 06:37
Read: times


 
#64921 - several questions I need answers to!
1. what is the relative offset for the instruction sjmp back?
2. what is the difference between, INC A and INC ACC?
3.assume the PSW contains 0c0h and accumulator A contains 50h just befoe the following instruction executes: RLC A what is the content of accumulator A after this instruction executes?
4. assume the PSW contains 78h and the accumulator contains 81h. what is the content of the accumulator after the following instruction executes: RRC A
5. An 8051 subroutine is shown with:
SUB: Mov R0 #20
Loop: Mov @R0,#0
INC R0
CJNE R0,#80h,LOOP
RET
a) what does this subroutine do?
b) in how many machine cycles does each instruction execute?
c) how many bites long is each instruction?
d) convert the subroutine to machine language.
e) how long does this subroutine take to execute?(assume 12Mhz operation).
6. the instruction : CJNE R7,#'Z',NOTZED
is in code memory at addresses 022Ah through 022CH. what are the machine language bytes for this instruction?

List of 3 messages in thread
TopicAuthorDate
several questions I need answers to!            01/01/70 00:00      
   RE: several questions I need answers to!            01/01/70 00:00      
   RE: several questions I need answers to!            01/01/70 00:00      

Back to Subject List