Good day! Can someone check my code for mistakes? And, if there are mistakes, help me to fix it. This procedure should swap bits in R0 and be 'effective'.
//'n' is bit, that procedure should swap with 'm' n equ 1 m equ 4 push R0 call swap swap: pop R0 push A mov 20h, R0 mov C, 20h.n mov 21h.0, C mov C, 20h.m mov 20h.n, C mov C, 21h.0 mov 20h.m, C mov R0, 20h pop A RET