ctr_mcu/snake_branches/2.2F_CLOSER_DP1_Prewrite/get_ei.asm
N2925 635e1ad13e snake_tags/2.2F_CLOSER_DP1 を snake_branches/2.2F_CLOSER_DP1_Prewrite へ移動
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@569 013db118-44a6-b54f-8bf7-843cb86687b1
2013-09-11 06:46:58 +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