If you give me an idea of which part you can't do, I think I can help you. I have a semi working version of the whole program, if i type my input as B7 I get MOV 23 and not MOV AL,[23]. So in effect my program gives the right answers but does not add in all the extra formatting.
To add the formatting is difficult for the following reason
PUSH 23 should be formatted as PUSH [23]
POP 23 should be formatted as POP 23
ADD 23 should be formatted as ADD AL,[23]
SUB 23 should be formatted as SUB AL,[23]
JMP 23 should be formatted as JMP 23
MOV 23 should be formatted as MOV AL,[23]
JE 23 should be formatted as JE 23
RET (No matter what number) should be formatted as just RET
So depending on the instruction the output needs to be formatted differently.