Articles & News Stories

class notes.docx

Description
Description:
Published
of 8
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Related Documents
Share
Transcript
  Sahil Gami 17BCE0939 Part A TRANSPOSE OF THE MATRIX DATA SEGMENT M1 DB 'ENTER THE ORDER OF THE MATRIX:','$' M2 DB 0AH,0DH,0AH,'ENTER THE CONTENT OF THE MATRIX:','$' M3 DB 0AH,0DH,0AH,'TRANSPOSE MATRIX:',0AH,0DH,'$' MAT1 DB 10 DUP(0) MAT2 DB 10 DUP(0) ROW DB 00H COL DB 00H DATA ENDS MESSAGE MACRO MESS LEA DX,MESS MOV AH,09H INT 21H ENDM BSPCE MACRO ASC MOV DL,ASC MOV AH,06H INT 21H ENDM CODE SEGMENT ASSUME CS:CODE,DS:DATA START:MOV AX,DATA MOV DS,AX MESSAGE M1 CALL READO MOV BX,DX MOV ROW,DH MOV COL,DL MESSAGE M2  Sahil Gami 17BCE0939 LEA SI,MAT1 CALL READ1 LEA DI,MAT1 LEA SI,MAT2 MOV DH,00H MOV DL,COL MOV AH,COL L3:MOV AL,ROW MOV BX,DI L1:MOV CL,[BX] MOV [SI],CL ADD BX,DX INC SI DEC AL JNZ L1 INC DI DEC AH JNZ L3 LEA SI,MAT2 CALL DISP MOV AH,4CH INT 21H READO PROC NEAR MOV AH,01H INT 21H MOV DH,AL SUB DH,30H BSPCE ' ' MOV AH,01H INT 21H MOV DL,AL  Sahil Gami 17BCE0939 SUB DL,30H RET READO ENDP READ1 PROC NEAR BSPCE 0AH MOV CH,ROW N2:MOV BH,COL N1:CALL READ MOV [SI],DL INC SI BSPCE ' ' DEC BH JNZ N1 DEC CH JZ N3 BSPCE 0AH BSPCE 0DH JMP N2 N3:RET READ1 ENDP READ PROC NEAR MOV AH,01H INT 21H MOV CL,04H MOV DL,AL SUB DL,30H CMP DL,0AH JC R1 SUB DL,07H AND DL,0FH R1:SHL DL,CL  Sahil Gami 17BCE0939 MOV AH,01H INT 21H SUB AL,30H CMP AL, 0AH JC R2 SUB AL,07H AND AL,0FH R2:OR DL,AL RET READ ENDP DISP PROC NEAR MESSAGE M3 BSPCE 0AH MOV DH,COL D4:MOV BH,ROW LOP:MOV CL,04H MOV DL,[SI] SHR DL,CL CMP DL,0AH JC D1 ADD DL,07H D1: ADD DL,30H MOV AH,06H INT 21H MOV DL,[SI] AND DL,0FH CMP DL,0AH JC D2 ADD DL,07H D2: ADD DL,30H MOV AH,06H
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks