;-------------------------------------- ; Export Declarations ;-------------------------------------- export __Start ... export _bGetPowerSetting export bGetPowerSetting export __Boot_Start ; append this line export __Boot_Check_Program ; append this line
;----------------------------------------------------------------------------- ; Interrupt Vector Table ;----------------------------------------------------------------------------- ... org 0 ;Reset Interrupt Vector ... jmp __Start ;First instruction executed...この最後の「jmp __Start」を、「ljmp __Boot_Start」に書き換える
;----------------------------------------------------------------------------- ; Start of Execution. ;----------------------------------------------------------------------------- .. org A0h ; append this line __Boot_Check_Program: ; append this line db 0,1,2,3,4,5 ; append this line ;IF (TOOLCHAIN & HITECH) ; comment-out or delete ; AREA PD_startup(CODE, REL, CON) ; comment-out or delete ;ELSE ; comment-out or delete ; org 68h ; comment-out or delete ;ENDIF ; comment-out or delete __Start: ...上記の3行を追加し、それに続く5行をコメントアウト(または削除)する