6#define MVMVA_T(mx, v, cv) \
10 cop2_put(10, 0x200); \
11 cop2_put(11, 0x300); \
14 cop2_cmd(COP2_MVMVA(1, mx, v, cv, 0)); \
17#define MVMVA_MX3_V(v) \
21 cop2_put(10, 0x500); \
22 cop2_put(11, 0x600); \
25 cop2_cmd(COP2_MVMVA(1, 3, v, 3, 0)); \
26 int32_t _m1, _m2, _m3; \
30 ramsyscall_printf("MVMVA mx=3 v=%d: MAC=(%d,%d,%d)\n", v, _m1, _m2, _m3); \
33#define MVMVA_CV2_MX(mx) \
36 cop2_put(10, 0x200); \
37 cop2_put(11, 0x300); \
39 cop2_cmd(COP2_MVMVA(1, mx, 0, 2, 0)); \
40 int32_t _m1, _m2, _m3; \
45 _fl = gte_read_flag(); \
46 ramsyscall_printf("MVMVA mx=%d cv=2: MAC=(%d,%d,%d) FLAG=0x%08x\n", mx, _m1, _m2, _m3, _fl); \
CESTER_TEST(cddaLevelHalf, test_instances, static const uint8_t atv[4]={0x40, 0x00, 0x40, 0x00};unsigned changes=0;int peak=cddaPeak(atv, 1, &changes);ramsyscall_printf("CD-DA level at half ATV: peak %i, %u sign changes\n", peak, changes);cester_assert_int_ge(peak, 11300);cester_assert_int_le(peak, 11800);cester_assert_uint_ge(changes, 4);) CESTER_TEST(cddaLevelClipped
cester_assert_uint_eq(5, cause1)
#define COP2_FN_GPF
Definition cop2.h:105
#define COP2_OP_CP(sf, lm)
Definition cop2.h:136
#define cop2_cmd(op)
Definition cop2.h:175
#define cop2_put(reg, val)
Definition cop2.h:191
#define COP2_SQR(sf, lm)
Definition cop2.h:161
#define COP2_GPF(sf, lm)
Definition cop2.h:168
#define cop2_putc(reg, val)
Definition cop2.h:205
#define COP2_RTPS(sf, lm)
Definition cop2.h:129
#define COP2_AVSZ3
Definition cop2.h:164
#define COP2_FN_RTPS
Definition cop2.h:86
#define cop2_get(reg, dest)
Definition cop2.h:198
#define COP2_FN_NCLIP
Definition cop2.h:87
#define COP2_OP(fake, sf, mx, v, cv, lm, fn)
Definition cop2.h:116
#define COP2_FN_AVSZ3
Definition cop2.h:102
gte_set_far_color(0xff00, 0xff00, 0xff00)
gte_tests
Definition gte-depthcue.c:31
gte_set_identity_rotation()
gte_set_translation(0, 0, 0)
#define MVMVA_T(mx, v, cv)
Definition gte-encoding.c:6
#define MVMVA_CV2_MX(mx)
Definition gte-encoding.c:33
#define MVMVA_MX3_V(v)
Definition gte-encoding.c:17
gte_set_white_light_color()
cester_assert_int_eq(3, xaCommand(CDL_SETMODE, &mode, 1, NULL, NULL))