AVRsimu is a simulator for Atmel AVR microcontrollers. It has a command line interface. AVRsimu aims to be small and portable.