ctr_mcu/snake_branches/3.41_jane/get_ei.asm
N2925 1b53f8e5a3 フォルダ名を 3.40 から 3.41 にリネーム
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@626 013db118-44a6-b54f-8bf7-843cb86687b1
2017-01-10 23:59:46 +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