jmp¶
jmp D¶
指令格式¶
jmp D
影响标志¶
无
伪代码描述¶
1 | goto D;  | 
指令描述¶
跳转到地址D处;
范例¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  |         cseg
f_bit_count_A:
        clr     R0      //R0 = 0
        clr     R1      //R1 = 0
        bset    R1, 3   //R1 = 8
loop:   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     loop    //跳转到loop标号
        cseg
        mov     A, 0x55 //A = 0x55
        call    f_bit_count_A   //R0 = 4
        mov     A, R0   //A = 4
        ...
        jmp     $       //跳转到自己
 |