mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-06-18 16:45:33 -04:00

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@409 013db118-44a6-b54f-8bf7-843cb86687b1
27 lines
336 B
NASM
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
|
|
|
|
|