Thursday, 2 July 2015

Write Some Code To Read Character Until A New Line Is Read In Assembly Language Solution.

/*Write some code to read character until a new line is read in assembly language solution.*/

/*
    *
    * Prosen Ghosh
    * American International University - Bangladesh (AIUB)
    *
*/

Solution:

.MODEL SMALL
.STACK 100H

.CODE
MAIN PROC
 
    MOV AH,1
    TOP:
        INT 21H
        CMP AL,0DH
        JE END_:
        JMP TOP
    END_:
    MAIN ENDP
END MAIN

No comments:

Post a Comment