Chapter 6 Applied Instructions 
 
6-149 
API 
Instruction code  Operand  Function 
0502    IMASK   
S 
Controlling the interrupt 
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#
“$”  DF 
  Pulse instruction
16-bit instruction (3 steps)
32-bit instruction
 
AH500 
Symbol: 
S 
:
Data source  Word 
Explanation: 
1.  The values of the bits in S~S+15 determine whether the interrupts are enabled or disabled. 
When the value of the bit is 1 and the instruction EI is executed, the corresponding interrupt is 
executed. When the value of the bit is 0, the corresponding interrupt can not be executed. 
2.  When the instruction is executed, the values in S~S+15 are transferred to SR623~SR638. 
3.  When the instruction is not executed, the values of the bits in SR623~SR638 determine 
whether the interrupts are enabled or disabled.
 
I0
I1
I2
I3
I4
I5
I6
I7
I8
I9
I10
I11
I12
I13
I14
I15
I16
I17
I18
I19
I20
I21
I22
I23
I24
I25
I26
I27
I28
I29
I30
I31
I32
I33
I34
I35
I36
I37
I38
I39
I40
I41
I42
I43
I44
I45
I46
I47
I48
I49
I50
I51
I52
I53
I54
I55
I56
I57
I58
I59
I60
I61
I62
I63
I64
I65
I66
I67
I68
I69
I70
I71
I72
I73
I74
I75
I76
I77
I78
I79
I80
I81
I82
I83
I84
I85
I87
I88
I89
I90
I91
I92
I93
I94
I95
I86
I96
I97
I98
I99
I100
I101
I103
I104
I105
I106
I107
I108
I109
I11 0
I111
I102
I96
I97
I98
I99
I100
I101
I103
I104
I105
I106
I107
I108
I109
I11 0
I111
I11 4
I11 5
I11 6
I11 7
I11 9
I120
I121
I122
I123
I124
I125
I126
I127
I11 8
I11 2
I11 3
I130
I131
I132
I133
I135
I136
I137
I138
I139
I140
I141
I142
I143
I134
I128
I129
I146
I147
I148
I149
I151
I152
I153
I154
I155
I156
I157
I158
I159
I150
I144
I145
I162
I163
I164
I165
I167
I168
I169
I170
I172
I173
I174
I175
I166
I160
I161
I179
I180
I181
I182
I184
I185
I186
I187
I188
I189
I190
I191
I183
I176
I178
I195
I196
I197
I198
I200
I201
I202
I203
I204
I205
I206
I207
I199
I192
I194
I211
I212
I213
I214
I216
I217
I218
I219
I220
I221
I222
I223
I215
I209
I210
I227
I228
I229
I230
I232
I233
I234
I235
I236
I237
I238
I239
I231
I225
I226
I243
I244
I245
I246
I248
I249
I250
I251
I252
I253
I254
I255
I247
I241
I242
S +15
I171
I177
I193
I208
I224
I240
S +14
S +13
S +12
S +11
S +10
S +9
S +8
S +7
S +6
S +5
S +4
S +3
S +2
S +1
S