78F9222マイコン・構造化アセンブラ・2
構造化アセンブラによる メモリ定義方法
便利な擬似命令。
DSEG SADDRP ;saddr領域に配置
M_SADRS: ds 1 ;1バイト分確保
メモリ値による条件判断文
if (M_SADRS == #0h)
M_SADRS = #01h
else
M_SADRS ++
endif
負論理を判断する場合は ! を付けます。
if (M_SADRS != #0h)
M_SADRS = #0fh
else
M_SADRS --
endif
関連記事