cs paper i and ii question for oral



paper I

  1. advantages of c++
  2. give c++ data types
  3. give operaters in c++
  4. what is insertion operator
  5. what is extraction operator
  6. what is scope resolution
  7. what is swith statement in c++
  8. what is pointer in c++
  9. what is oop
  10. what is objects in c++
  11. what is classees in c++
  12. what is inhertance
  13. what is polymorphism
  14. what is consturctor in c++
  15. ewhat is inhertiance
  16. <img> tag
  17. <tr>
  18. <th>


paper ii

1.    Data Transfer Group
a.   MOV r1, r2
           (Move Data; Move the content of the one register to another).
            [r1] ß [r2].
        
     b. MOV r, m (Move the content of memory register). r ß [M]

     c. MOV M, r. (Move the content of register to memory). M ß [r]

     d. MVI r, data. (Move immediate data to register). [r] ß data.

     e. MVI M, data. (Move immediate data to memory). M ß data.

     f. LXI rp, data 16. (Load register pair immediate). [rp] ß data 16  
        bits,    [rh] ß 8 LSBs of data.

     g. LDA addr. (Load Accumulator direct). [A] ß [addr].

     h. STA addr. (Store accumulator direct). [addr] ß [A].

     i.LHLD addr. (Load H-L pair direct). [L] ß [addr], [H] ß [addr+1].

     j. SHLD addr. (Store H-L pair direct) [addr] ß [L], [addr+1] ß [H].

     k. LDAX rp. (LOAD accumulator indirect) [A] ß [[rp]]

     l. STAX rp. (Store accumulator indirect) [[rp]] ß [A].

     m. XCHG. (Exchange the contents of H-L with D-E pair) [H-L] <--> 
          [D-E].

2.    Arithmetic Group

i.              ADD r. (Add register to accumulator) [A] ß [A] + [r].
ii.            ADD M. (Add memory to accumulator) [A] ß [A] + [[H-L]].
iii.           ADC r. (Add register with carry to accumulator). [A] ß [A] + [r] + [CS].
iv.           ADC M. (Add memory with carry to accumulator) [A] ß [A] + [[H-L]] [CS].
v.            ADI data (Add immediate data to accumulator) [A] ß [A] + data.
vi.           ACI data (Add with carry immediate data to accumulator). [A] ß [A] + data + [CS].
vii.         DAD rp. (Add register paid to H-L pair). [H-L] ß [H-L] + [rp].
viii.        SUB r. (Subtract register from accumulator). [A] ß [A] – [r].
ix.           SUB M. (Subtract memory from accumulator). [A] ß [A] – [[H-L]].
x.            SBB r. (Subtract register from accumulator with borrow). [A] ß [A] – [r] – [CS].
xi.           SBB M. (Subtract memory from accumulator with borrow). [A] ß [A] – [[H-L]] – [CS].
xii.         SUI data. (Subtract immediate data from accumulator) [A] ß [A] – data.
xiii.        SBI data. (Subtract immediate data from accumulator with borrow).
[A] ß [A] – data – [CS].
               xiv.      INR r (Increment register content) [r] ß [r] +1.
               xv.       INR M. (Increment memory content) [[H-L]] ß [[H-L]] + 1.
xvi.        DCR r. (Decrement register content). [r] ß [r] – 1.
xvii.      DCR M. (Decrement memory content) [[H-L]] ß [[H-L]] – 1.
xviii.     INX rp. (Increment register pair) [rp] ß [rp] – 1.
xix.        DCX rp (Decrement register pair) [rp] ß [rp] -1.
xx.         DAA (Decimal adjust accumulator) .

3.    Logical Group

i.              ANA r. (AND register with accumulator) [A] ß [A] ^ [r].
ii.            ANA M. (AND memory with accumulator). [A] ß [A] ^ [[H-L]].
iii.           ANI data. (AND immediate data with accumulator) [A] ß [A] ^ data.
iv.           ORA r. (OR register with accumulator) [A] ß [A] v [r].
v.            ORA M. (OR memory with accumulator) [A] ß [A] v [[H-L]]
vi.           ORI data. (OR immediate data with accumulator) [A] ß [A] v data.                                                                                            
vii.         CMP r. (Compare register with accumulator) [A] – [r]
viii.        CMP M. (Compare memory with accumulator) [A] – [[H-L]]


ix.           RAL. (Rotate accumulator left through carry) [An+1] ß [An], [CS] ß [A7], [A0] ß [CS].
x.            RAR. (Rotate accumulator right through carry) [An] ß [An+1], [CS] ß [A0], [A7] ß [CS]


i.              JMP addr (label). (Unconditional jump: jump to the instruction specified by the address). [PC] ß Label.
a.    JZ addr (label). (Jump if the result is zero)
b.    JNZ addr (label) (Jump if the result is not zero)
c.    JC addr (label). (Jump if there is a carry)
d.    JNC addr (label). (Jump if there is no carry)
e.    JP addr (label). (Jump if the result is plus)
f.     JM addr (label). (Jump if the result is minus)
g.    JPE addr (label) (Jump if even parity)
h.    JPO addr (label) (Jump if odd parity)
ii.            CALL addr (label) (Unconditional CALL: call the subroutine identified by the operand)
CALL instruction is used to call a subroutine. Before the control is transferred to the subroutine, the address of the next instruction of the main program is saved in the stack. The content of the stack pointer is decremented by two to indicate the new stack top. Then the program jumps to subroutine starting at address specified by the label.
iii.           RET (Return from subroutine)
iv.           RST n (Restart) Restart is a one-word CALL instruction. The content of the program counter is saved in the stack. The program jumps to the instruction starting at restart location.

5. Stack, I/O and Machine Control Group

i.              IN port-address. (Input to accumulator from I/O port) [A] ß [Port]
ii.            OUT port-address (Output from accumulator to I/O port) [Port] ß [A]
iii.           PUSH rp (Push the content of register pair to stack)
iv.           PUSH PSW (PUSH Processor Status Word)
v.            POP rp (Pop the content of register pair, which was saved, from the stack)
vi.           POP PSW (Pop Processor Status Word)
vii.         HLT (Halt)
viii.        XTHL (Exchange stack-top with H-L)
ix.           SPHL (Move the contents of H-L pair to stack pointer)
x.            EI (Enable Interrupts)
xi.           DI (Disable Interrupts)
xii.         SIM (Set Interrupt Masks)
xiii.        RIM (Read Interrupt Masks)
xiv.        NOP (No Operation)















                      

Comments