Great opportunity!
Sukkur IBA CS Resources
This page is only for education purpose
Students from any class who need help regarding any course related to computer can come to PRC( Programming Resource Centre) on any day(as per PRC Schedule).
To facilitate the students of Foundation semester and THP (Thursday 9-12 timing English Lab) is dedicated, but students can come at any given time as per PRC schedule.
BSCS I can check programming folder for VIVA Questions
BSCS II can check OOP and Electronics folders for Viva Questions
BSCS III can check DSA , DLD and OOAD folders for VivaQuestions
BSCS IV can check DBMS and OS folders for vivaQuestions.
Here is Assembly Code for 8-bit unsigned Division. I fixed the bug. Hope you will find it helpful in you project.
MODEL SMALL
STACK 100H
DATA
QUOTIENT DB ?
REMAINDER DB ?
CODE
MAIN PROC
;INITIALIZE DATA SEGMENT
MOV AX,
MOV DS, AX
; TAKE DIVIDEND
MOV AH, 01
INT 21H
SUB AL, 30H
MOV BL, AL
CALL LFCR
; TAKE DIVISOR
MOV AH, 01
INT 21H
SUB AL, 30H
MOV CL, AL
CALL LFCR
; divide
XOR AH, AH ; prepare dividend
MOV AL, BL
DIV CL
ADD AL, 30H
MOV QUOTIENT, AL
ADD AH, 30H
MOV REMAINDER, AH
; PRINT QUOTIENT
MOV DL, QUOTIENT
MOV AH, 02H
INT 21h
CALL LFCR
; PRINT REMAINDER
MOV DL, REMAINDER
MOV AH, 02H
INT 21h
;CONTROL RETURN
EXIT:
MOV AH, 4CH
INT 21H
MAIN ENDP
LFCR PROC NEAR
PUSH AX
PUSH DX
MOV AH, 02
MOV DL, 0DH
INT 21H
MOV DL, 0AH
INT 21H
POP DX
POP AX
RET
LFCR ENDP
END MAIN
A good news for all. Soon you will get possible viva questions may asked by the external.
01/05/2018
Need The Most Efficient Code for This Output.
Click here to claim your Sponsored Listing.
Location
Category
Address
Sukkur IBA University
Sukkur
65200