Logo 
Search:

Assembly Language Articles

Submit Article
Home » Articles » Assembly Language » Homework HelpRSS Feeds

Word Assembly Program

Posted By: Caitlin Brown     Category: Assembly Language     Views: 10305

Write a program of Word Assembly.

Code for Word Assembly Program in Assembly Language

data segment
        first dw 3456h
        second dw 0abcdh
        ans dw 0000h
data ends

code segment
        assume cs:code, ds:data
start :
        mov ax, data
        mov ds, ax

        mov ax, first
        and ax, 00ffh
        shl ax, 08h

        mov bx, second
        and bx, 00ffh
        or ax, bx
        mov ans, ax

        mov ax, 4c00h
        int 21h
code ends
        end start
  
Share: 


Didn't find what you were looking for? Find more on Word Assembly Program Or get search suggestion and latest updates.

Caitlin Brown
Caitlin Brown author of Word Assembly Program is from London, United Kingdom.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
Abinaya Durai from United States Comment on: Oct 08
Write and execute 8086 based an assembly language program to sort the numbers stored in an array in ascending as well as descending order. Assume that the first location in the array hold the number of elements in the array and successive memory location will have actual array elements. Write a separate subroutine to arrange the numbers in ascending and descending order. Accept a key from the keyboard.
a. If 1 entered, Arrange in ascending
b. If 2 entered, Arrange in descending

View All Comments