Posts

PKK

Printing String …………………….. .MODEL SMALL .STACK 100H .DATA STRING DB 'My name is Md. Mehedi', '$' .CODE MAIN PROC FAR MOV AX,@DATA MOV DS,AX ; load address of the string LEA DX,STRING ;output the string ;loaded in dx MOV AH,09H INT 21H ;interrupt to exit MOV AH,4CH INT 21H MAIN ENDP END MAIN Upper to Lower Case ……………………………….. .MODEL SMALL .STACK 100H  .CODE MAIN PROC            MOV AH,1     ;INPUT     INT 21H                       MOV BL,AL              ADD BL,20H   ;Upper to Lower               MOV AH,2     MOV DL,BL     INT 21H                EXIT:     MOV AH,4CH     INT 21H     MAIN ENDP END MAIN Bisection ORG 100H .MODEL SMALL .STACK 100H .DATA R DB 'ENTER RANGE: $' F DB 0 S DB 1 SUM DB ? N DW ? FAB DB 13 , 10 , 13 , 10 , '**FIBONACCI SERIES**$' .CODE MAIN PROC         MOV DX , OFFSET R     MOV AH , 9     INT 21H         MOV N, 0     MOV BL , 10     INPUT:     MOV AH , 1     INT 21H     CMP AL , 13     JE NEXT