How to, Uncategorized

How to run assembly language programs in TASM

Turbo Assembler (TASM) is a computer assembler (software for program development) developed by Borland which runs on and produces code for 16- or 32-bit x86 MS-DOS or Microsoft Windows. It can be used with Borland's high-level language compilers, such as Turbo Pascal, Turbo Basic, Turbo C and Turbo C++. Download TASM Steps for executing an… Continue reading How to run assembly language programs in TASM

Advertisements
Programs, Uncategorized

assembly program to perform operations on given string compare, concat [TASM]

main.asm create this file contains menu for program .model small .data extrn str4,str5,maxlen1,maxlen2,maxlen3 .code public concat public compare concat proc far CLD LEA SI,maxlen1 LEA DI,maxlen3 inc SI mov CL,[si] mov ch,00h inc si REP MOVSB LEA si,maxlen2 inc SI mov cl,[si] mov ch,00H inc si REP MOVSB mov [di],'$' mov dx,offset maxlen3 mov ah,09H… Continue reading assembly program to perform operations on given string compare, concat [TASM]

Programs, Uncategorized

Assembly Program to conversion of BCD to HEX and HEX to BCD [TASM]

dis macro str mov dx,offset str mov ah,09h int 21h endm .model small .data menu1 db  0AH,0DH, "--------Menu-$" menu2 db 0AH,0DH, "    1.Hex to BCD      2.BCD to Hex$" str1 db 0AH,0DH,"Enter Your Choice$" str2 db 0AH,0DH,"Enter hex no$" str3 db 0AH,0DH,"Enter BCD no$" str4 db 0AH,0DH," BCD form is$" str5 db 0AH,0DH,"hex form is$" INPUTNO… Continue reading Assembly Program to conversion of BCD to HEX and HEX to BCD [TASM]

Programs, Uncategorized

Assembly program to Add given 8 numbers [TASM]

.model small            ;memory model  create 1 code and one stack 16bit .data array dB 6 dup(0) sum db 00H string1 dB "Enter 6 no $" string2 dB "The result is $"    ;$ is end of the string .code Mov AX, @data                    ;gives the starting add Mov DS, AX Mov AH, 09H                  ;09H function of displaying… Continue reading Assembly program to Add given 8 numbers [TASM]