; Copyright 2005 Noriaki Mitsunaga list p = 16f877a include __config _HS_OSC & _CP_OFF & _PWRTE_ON & _WDT_OFF & _LVP_OFF define_table macro local a = 0 ; 局所ラベルaの初期化 while a < 3 ; 3回繰り返す entry#v(a) retlw a+2 a += 1 ; aに1を足す endw ; whileの終了 endm ; マクロ定義の終了 org 0x0 call entry0 call entry1 call entry2 goto $ define_table end