From ec2abd03428ae2c282860f0f2adb0c974586ff4b Mon Sep 17 00:00:00 2001 From: Javier Degirolmo Date: Fri, 7 Oct 2011 12:29:10 -0300 Subject: Fixed self-looping timer B --- src-z80/core/main.z80 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src-z80/core/main.z80') diff --git a/src-z80/core/main.z80 b/src-z80/core/main.z80 index 4018a1b..cb0329e 100644 --- a/src-z80/core/main.z80 +++ b/src-z80/core/main.z80 @@ -87,8 +87,8 @@ EntryPoint: ld (ix+0), $25 ld (ix+1), $03 ld (ix+0), $26 - ld (ix+0), $C9 - ld (ix+1), $FF + ld (ix+1), $C9 + ;ld (ix+1), $FF ld (ix+0), $27 ld (ix+1), $3F @@ -159,15 +159,15 @@ DoTick: bit 0, a call nz, UpdatePCM - ld (ix+0), $26 ; Reset timer -.timerset: - ld (ix+1), $C8 +; ld (ix+0), $26 ; Reset timer +;.timerset: +; ld (ix+1), $C8 ld (ix+0), $27 ld (ix+1), $2F - ld a, (.timerset+3) ; $C8 is too fast, $C9 is too slow - xor $01 ; So, we alternate between them to compensate - ld (.timerset+3), a +; ld a, (.timerset+3) ; $C8 is too fast, $C9 is too slow +; xor $01 ; So, we alternate between them to compensate +; ld (.timerset+3), a PollPCM -- cgit v1.2.3