title: Assembly bubble sort for z80
body: <p>I have an assignment for my university. I need to make a program in assembly for the z80 processor. The program should do the following.</p>
  
  <p>There are 20 numbers stored in 20 continuous memory addresses starting from 0201H.
  The program should check the number stored in 0200H first. If the value is 0 the program should sort the number in ascending order, otherwise descending. Finally after the sorting is over the program should calculate the average of these 20 numbers.</p>
  
  <p>I know that this question is not formed according to the rules of the site but I really need help. </p>