A Simple MeanView as PDF
Your computer engineering instructor gave you a simple task:
Write a program to find the integer mean of three 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 mean in assembly.
The first line of input will contain 3 space-separated integers , , .
The integer mean of the three integers.
1 2 4
libc in NASM, the first line of your program should be
; libc. For all others, it should be
; features: libc.
Assembly (ARM) runs under
qemu, it is allocated 0.5s and 4096kb of RAM.