Fix CC and add (fake) HALT support