ctr_mcu/branches/2.1E_spfl_dp2(sdk_3)/get_ei.asm
n2232 49f95cf7a6 バージョン変更でディレクトリ名を修正
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@447 013db118-44a6-b54f-8bf7-843cb86687b1
2012-01-26 08:15:10 +00:00

27 lines
336 B
NASM

$PROCESSOR ( 9F0104 )
PUBLIC _get_ei
;
; PSWのEIを読み出します。
;
ROM_CODE CSEG BASE
_get_ei:
set1 CY
and1 CY,PSW.7 ; check IE bit. if 0, all interrupts are disabled.
bnc $ie_dis
mov C,#01h
ret
ie_dis:
mov C,#00h
ret
end