| Electronics > Beginners |
| Assembly code Help! PIC16F57 |
| << < (25/32) > >> |
| KL27x:
Oh, at least one of them has dropped by, already, to drop his 2 cents on the pile. But AFAIC, he completely missed the can. The other expert is still doing Edit>Find " " to work out the code flow, after transferring it into a bare bones word editor program. :) ... but --- Quote ---without suggesting I change the pic --- End quote --- Ian.M is one of the most knowledgeable guys alive concerning PIC micros. He answered more than a few questions of mine when I first started learning PIC assembly over on the Microchip forums. Even though it took at least a day or two of reading to understand his 3 sentence answers. >:D |
| Electrofinn:
I'll let them off lol, especially since all I can do is test things like a primitive being would i.e bang the thing against my head a couple times before grunting. :) |
| jpanhalt:
--- Quote from: KL27x on October 07, 2018, 12:05:58 am ---16F57 isn't even a midrange PIC; it's baseline. Pages are only 2 address bytes long, lol. So it's not 2k per page, it's 0.5k. Code is already spanning all 4 pages of program space. This device has no interrupts and a 2 deep stack! --- End quote --- And previously KL27x said: --- Quote from: KL27x on June 05, 2017, 01:27:50 am ---Without even looking at the datasheet, I'm sure 12F509 has at least 2 timers which can generate an interrupt aside from the WDT and some GPIO digital input interrupt available on at least 2 of the pins. I've never seen a PIC without an interrupt. I can't imagine any microcontroller that does not have at least a timer interrupt. --- End quote --- Glad you finally looked at the datasheet. |
| Electrofinn:
Have tried my attempt and still no joy, still sometimes runs only part of the "pattern2" on a win. Sometimes it runs like one frame with one beep, or does something like half of it and half the amount of beeping. Seems to be the only thing left that's wrong with this except... And to open up another can of worms lol..Occasionally when winning a jackpot, it stupidly gives you an option to gamble or collect, where it should be just going straight to payout mode when you get three bars! Now, this is not a new problem and is one forgot existed and looking over the conversation I had with creator way back when, it's a question I didn't get answer to because the conversation had digressed, which was my fault. But looking at the code in the "gamble" section, if you match three reels in general play and it enters gamble mode and you manage to gamble your way upto "- - -", the machine knows to instantly pay out. I was wondering if this part of the code could be simply copied to the payout section or where ever it is in the code that it looks for matching reels such that if you spin the reels and it lands on "- - -" it just goes straight to payout rather going to gamble mode... Then again probably not since when is anything in this code or assembly in general ever that simple! I meen the machine still gives the money if you press collect but it's silly the machine even offers a choice to gamble since pressing gamble would just scroll the reels down to the next prize down which is "A A A" = 50p This "pattern2" issue is bummer though, at least it reads from the correct table, which is an improvement over the source code I guess. This code seems like it's in a right mucking fuddle! Lol |
| Electrofinn:
--- Quote ---It looks like a lock bit to prevent subroutines from resetting certain registers when others are using them. But to begin putting any of that together would take active measures, breaking the code and seeing what happens. So it's your call if this is good enough or if you want to get your hands dirty. --- End quote --- Do you know what, I'm game if you are! but only if you are. the 30 sec delay thing to return to the feature LEDs doesn't bother me, its this partial pattern2 on a win thing that i think really wrecks this. but if the both end up getting fixed as a result then whatever. |
| Navigation |
| Message Index |
| Next page |
| Previous page |