EEPROM equ $f800 RESET equ $fffe SWITCH equ $1003 MOTORS equ $1004 org EEPROM * tell the assembler to generate code at $f800 start loop ldaa SWITCH * read the digital inputs staa MOTORS * write to the motors bra loop * branch to main loop org RESET * now put the reset vector at $fffe fdb start