108 micro sec...??

The Gateway to Computer Science Excellence

0 votes

Consider the following program segment used to execute on a hypothetical processor. Consider all the registers are of 16 bit size

I1 MOV CX,0005 ; CX ← 0005

I2 MOV BX,OFF7H ; BX ← OFF7H

I3 MOV AX,OBCAH ; AX ← OBCAH

I4 OR BX,AX ; BX ← BX (OR) AX

I5 AND DX,AX ; DX ← DX (AND) AX

I6 LOOP I3 ; LOOP till CX = 0

Processor clock frequency is 1 MHz. In which data transfer operations takes 6 cycles, data manipulation operations takes 4 cycles and transfer of control operations takes 2 cycles to execute. How much time is required to execute the program on a above CPU?

I1 MOV CX,0005 ; CX ← 0005

I2 MOV BX,OFF7H ; BX ← OFF7H

I3 MOV AX,OBCAH ; AX ← OBCAH

I4 OR BX,AX ; BX ← BX (OR) AX

I5 AND DX,AX ; DX ← DX (AND) AX

I6 LOOP I3 ; LOOP till CX = 0

Processor clock frequency is 1 MHz. In which data transfer operations takes 6 cycles, data manipulation operations takes 4 cycles and transfer of control operations takes 2 cycles to execute. How much time is required to execute the program on a above CPU?

- All categories
- General Aptitude 1.9k
- Engineering Mathematics 7.6k
- Digital Logic 2.9k
- Programming and DS 4.9k
- Algorithms 4.4k
- Theory of Computation 6.2k
- Compiler Design 2.1k
- Databases 4.1k
- CO and Architecture 3.4k
- Computer Networks 4.2k
- Non GATE 1.4k
- Others 1.5k
- Admissions 595
- Exam Queries 573
- Tier 1 Placement Questions 23
- Job Queries 72
- Projects 18

50,833 questions

57,744 answers

199,469 comments

108,058 users