Your computer engineering instructor gave you a simple task:
Write a program to find the mode of a list of \(N\) 8-bit integers.
Since you think this is too easy a task for your programming prowess, you've decided to make life more interesting... by computing this simple mode in assembly. You're guaranteed by your teacher that the mode will be unique.
The first line of input will contain the integer \(N\ (1 \le N\le 100)\).
The second line of input will contain \(N\) space-separated 8-bit integers in the range \([−100,100]\), representing the list.
The mode of the list.
5 2 2 9 0 18
libc in NASM, the first line of your program should be
; libc. For all others, it should be
; features: libc.