Linux LS command implementation in Assembly and C