Write an 80x86 assembly language program to do the following
Write an 80x86 assembly language program to do the following tasks:
1. a. Display the original unsorted contents of the data file NUTS.DAT on the screen. One entry per line.
b. Sort the list in alphabetical order.
c. Display the results on the screen using the same format in (a).
2. The included word list is organized as a singly-linked list. Each entry contains two fields:
a. A pointer to the next element. The data type is WORD (16-bit).
b. Text field which contains a word, which is terminated by 2 spaces. The data type is BYTE.
I did the first part but the bubble sorting didn\'t work. HELP!!
The NUTS.DAT file is
; Each entry contains TWO sets of field :
 ; a. A pointer to the next element. The data type is WORD.
 ; b. Text field which contains description of each nuts,
 ; which is terminated by 2 spaces. The data type is BYTE.
 NUTS MACRO
 LIST_ORG DW PIS
 PIS DW HAZ
 DB \'Pistachios : A native of Syria \'
 HAZ DW PEC
 DB \'Hazels : A native of Europe and south west Asia \'
 PEC DW MAC
 DB \'Pecans : A native of North America \'
 MAC DW PEA
 DB \'Macadamia Nuts : A native of North East Australia \'
 PEA DW CAS
 DB \'Peanuts : A native of South America \'
 CAS DW PIN
 DB \'Cashews : A native of South and Central America \'
 PIN DW ALM
 DB \'Pine Nuts : A native of the eastern Mediterranean region \'
 ALM DW 0
 DB \'Almonds : A native of the eastern Mediterranean region \'
 ENDM
Solution
; Each entry contains TWO sets of field : ; a. A pointer to the next element. The data type is WORD. ; b. Text field which contains description of each nuts, ; which is terminated by 2 spaces. The data type is BYTE. NUTS MACRO LIST_ORG DW PIS PIS DW HAZ DB \'Pistachios : A native of Syria \' HAZ DW PEC DB \'Hazels : A native of Europe and south west Asia \' PEC DW MAC DB \'Pecans : A native of North America \' MAC DW PEA DB \'Macadamia Nuts : A native of North East Australia \' PEA DW CAS DB \'Peanuts : A native of South America \' CAS DW PIN DB \'Cashews : A native of South and Central America \' PIN DW ALM DB \'Pine Nuts : A native of the eastern Mediterranean region \' ALM DW 0 DB \'Almonds : A native of the eastern Mediterranean region \' ENDM
