-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathop_JFCL.c
52 lines (41 loc) · 811 Bytes
/
op_JFCL.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include "op.h"
INITOP("JFCL",op_JFCL,0)
_SUB int op_JFCL(PCTX *ctx)
{
char any=0;
if (ctx->AC==0) return(OK_EXIT); // Canonical NO-OP
if (ctx->debugthisop) {
printf("Before JFCL: ");
dumppstat(ctx);
}
if (cAC&010)
if (ctx->pstatus & SB_AROV) {
any = 1;
ctx->pstatus &= ~SB_AROV;
}
if (cAC&004)
if (ctx->pstatus & SB_CRY0) {
any = 1;
ctx->pstatus &= ~SB_CRY0;
}
if (cAC&002)
if (ctx->pstatus & SB_CRY1) {
any = 1;
ctx->pstatus &= ~SB_CRY1;
}
if (cAC&001)
if (ctx->pstatus & SB_FOV) {
any = 1;
ctx->pstatus &= ~SB_FOV;
}
ctx->pstatus &= SB_MASK;
if (ctx->debugthisop) {
printf("After JFCL: ");
dumppstat(ctx);
}
if (any) {
cPC = cE;
setPCSET;
}
return(OK_EXIT);
}