please tell how we write that thing in assembley language
if(a==0 && b==1) { mov p1,#022h } else if(a==1 && b==2) { mov p1,#011h } else { mov p1,#033 } end
Wouldn't it be practical if you can just hand in your school assignement without own time spent?
What work have _you_ done to figure out what instructions the processor has for performing comparisons, and for performing conditional jumps? Any open questions, or why not try these instructions and see what happens?