[ create a new paste ] login | about

Link: http://codepad.org/ApZ4G5l0    [ raw code | fork ]

iamyeasin - Plain Text, pasted on Jan 20:
.MODEL SMALL
.STACK 100H

.DATA
    G1 DB 'ENTER FIRST NUMBER: $'
    G2 DB 10,13,  'ENTER SECOND NUMBER: $'
    G3 DB 10,13,'ADDITION RESULT IS: $'

.CODE
MAIN PROC

    MOV AX,@DATA
    MOV DS,AX
    
    mov ah,9
    lea dx,G1
    int 21h
    
    mov ah,1
    int 21h
    
    mov bl,al
    
    mov ah,9h
    lea dx,G2
    int 21h
    
    mov ah,1
    int 21h
    
    mov cl,al
    
    sub bl,30h
    sub cl,30h
    
    mov ah,9h
    lea dx,g3
    int 21h
    
    add bl,cl
    add bl,30h
    
    mov dl,bl
    mov ah,2
    int 21h
    
    mov ax,4c00h
    int 21h
    
    
    MAIN ENDP
END MAIN


Create a new paste based on this one


Comments: