"dirs=00111111111111 ' port D is input, all others output"
This looks like PICAXE code.