28d8c466df99d528685380520b5429a2248a18e5
3 /* Каркас для фреймов процедур */
4 public static abstract class FRAME
9 /* Длинна строки LEN(s$) */
10 public static int LEN(byte[] x
)
20 public static void COPY(byte[] x
, byte[] v
)
23 int iv
= v
.length
- 1;
26 int len
= (ix
< iv
) ?
(ix
) : (iv
);
35 public static int STRCMP(byte[] a
, byte[] b
)
38 while(a
[i
] != 0 && a
[i
] == b
[i
])
45 public static void HALT(long n
)
50 public static void ASSERT(boolean x
)
55 public static void ASSERT(boolean x
, long n
)
60 public static void TRAP(long n
)
64 throw new RuntimeException("CASE TRAP");
68 throw new RuntimeException("WITH TRAP");
72 throw new RuntimeException("TRAP CODE " + n
);