CS401 Assignment 3 Spring 2021 – Assignments – Solution VU

CS401 Assignment 3 Spring 2021 – Assignments – Solution VU

solution file cs401 assignment no.3

code file 

[org 0x0100]

                        mov AH, 06h

                        mov AL,00h

                        mov BH,30h

                        mov CH,00h

                        mov CL,00h

                        mov DH,19h

                        mov DL,50h

                        int 10h




                        mov si, vuid

                        mov DH,00h

                        mov BL,17h

                       

npos: mov AH,02h

                        mov BH,00h

                        mov DL,01h

                        int 10h

                        add DH,01h

                       

                        mov AH,09h

                        mov AL,[si]

                        mov BH,00h

                        mov CX,01h

                        int 10h

                        add si,01h




                        cmp BL,17h

                        jne attr2

                        mov BL,47h

                        jmp comp

                       

attr2: cmp BL,47h

                        jne attr3

                        mov BL,20h

                        jmp comp

                       

attr3: cmp BL,20h

                        jne comp

                        mov BL,17h

                       

comp:            cmp DH,[slength]

                        jne npos

                       

                        mov AX,4c00h

                        int 21h

vuid: db 'MC200400317'

slength: dw 11
This topic was modified 9 mins ago by admin

vulms

#CS401 #Assignment #Spring #Assignments #Query

Leave a Reply

Your email address will not be published. Required fields are marked *