mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-06-18 16:45:33 -04:00
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
|
|
|
|
|