This is a sentence of a native English teacher, who tells about his experience on how to manage the classroom especially when students are noisy. He says what he did in the beginning of his career:
When they didn't do as I asked, I shouted at them.
Normally, in a classroom, the teacher asks students to do something, and somethimes they don't do what the teacher asked. So, the teacher wants to describe this situation.
But, I wonder why he said "...as I asked" instead of "....what I asked".
"As" means "while" or "when", but none of them sits well here, because "They did not do while I asked" means something like "They did not do while the teacher was talking", which don't make sense, because something sounds like missing, What is it that they didn't do while the teacher was talking
So, I want to ask whether the teacher should have used "what" instead of "as" in that sentence?