X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=megadrive.git;a=blobdiff_plain;f=testpico%2Fasmtools.S;fp=testpico%2Fasmtools.S;h=6be859ae1b0da67343c2ea5bc4ef54028f01efe8;hp=807ac9a99ed0b01584450590f047bdcd4c7c1636;hb=438648dc884712056ad7cb0c02279c74f55f3c51;hpb=e71680d5d5a8c60880f646c8b335ab67b709b4e1 diff --git a/testpico/asmtools.S b/testpico/asmtools.S index 807ac9a..6be859a 100644 --- a/testpico/asmtools.S +++ b/testpico/asmtools.S @@ -498,9 +498,16 @@ test_ym_ab_sync: beq 0b /* 10|8 */ 0: move.b #0x3f, (a1) /* 12 start a, clear */ - moveq.l #3, d1 /* 12 cycles for old flag to clear itself */ - nop - nop + move.w #(1800/10-1), d0 /* waste cycles */ +0: + dbra d0, 0b + + ymwrite a0, a1, #0x24, #0x00 /* 30 show that rewriting count */ + ymwrite a0, a1, #0x25, #0x00 /* 30 does nothing */ + ymwrite a0, a1, #0x26, #0x00 /* 30 */ + ymwrite a0, a1, #0x27, #0x0f /* 30 setting already set bits too */ + moveq.l #0, d0 + moveq.l #3, d1 0: move.b (a0), d0 and.b d1, d0