Da das Programm so definitiv stimmt,
mach vor do..loop
einen "enable interrupts", nutzt's nix, schad's nix.
Offenbar bleibt er bei jedem Wait hängen.