-->

Some Lab assignments on 8086 programming I

Some Lab assignments on 8086 programming I
    Question : Write a program to display a string "Programming is Fun" in the screen using string displaying function
    Solution:
    TITLE DISPLAY(EXE) STRING USING 09 FUNCTION
    .MODEL SMALL
    .STACK 64
    .DATA
    STRING DB 'PROGRAMMING IS FUN$'
    .CODE
    MAIN PROC FAR
    MOV AX,@DATA
    MOV DS,AX
    CALL DISPLAY
    MOV AX,4C00H
    INT 21H
    MAIN ENDP

    DISPLAY PROC NEAR
    LEA DX,STRING
    MOV AH,09H
    INT 21H
    RET
    DISPLAY ENDP
    END MAIN

    Question: Write a program to display the same string using character reading function (use current address operator $ to count the no of characters)
    Read more »
    fardi zayden
    @مرسلة بواسطة
    كاتب ومحرر اخبار اعمل في موقع دراسات تقنية .

    إرسال تعليق