Electronics > Beginners
Assembly code Help! PIC16F57
KL27x:
Encouraging.
Here, I shuffled around new_byte so I could use the lower 5 bits as another completely separate timer for timeout subroutine.
Timeout should always end after about 2 seconds, now. What other consequences that will have, who knows?
I also made some small tweak to win/counter_higher, just to liberate the unused 3 bits at the top. This shoudn't change anything.... unless I made a human error.
Oh, and I found I was clearing what was formerly known as "new_byte,0" in the wrong spot, which was part of the code used for the max credit_count check.. So I added another bcf in the spot where it shoudl always be executed on insertion of a coin. So I think pattern will always start at the beginning, now.
So fingers crossed and hail to mary. And this might be pretty close
KL27x:
New .asm
I realized that after a coin is put in, maybe sequence continues for a bit. I dunno.
I added another bcf pattern.bit5 (formerly known as mode_byte,0) to the exit of timeout. Timeout turns on sequence, which does the pattern. This should definitely handle the pattern start point thing, without digging into the code any further.
Electrofinn:
--- Quote ---So fingers crossed and hail to mary
--- End quote ---
^^this made me chuckle lol ^^
Well before you posted the newest code I had been bashing this for 2 and half hours straight and not once did the "pattern2" problem arise and I've had tons and tons of wins. so now I will try your newest code. will report back.
Electrofinn:
--- Quote ---New .asm
I realized that after a coin is put in, maybe sequence continues for a bit. I dunno.
I added another bcf pattern.bit5 (formerly known as mode_byte,0) to the exit of timeout. Timeout turns on sequence, which does the pattern. This should definitely handle the pattern start point thing, without digging into the code any further.
--- End quote ---
Ok cool will try this one.
Electrofinn:
something strange is now happening with "pattern" its only running and looping what looks like the first 16 values. shall I try the other one?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version