starting up assembler function and switch cases