call¶
call D¶
指令格式¶
call D
影响标志¶
无
伪指令¶
1 | D() |
指令描述¶
调用地址D处的子程序;
范例¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | cseg f_bit_count_A: clr R0 //R0 = 0 clr R1 //R1 = 0 bset R1, 3 //R1 = 8 snz A //if A != 0 then skip next instruction end ret //return sbz A, 0 //if A[0] == 0 then skip next instruction end inc R0 //R0 = R0 + 1 rsh A //A = A >> 1 jmp $ - 5 cseg mov A, 0x55 //A = 0x55 call f_bit_count_A //R0 = 4 mov A, R0 //A = 4 ... |