Need help reading a schematic.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stj
    Great Sage 齊天大聖
    • Dec 2009
    • 30963
    • Albion

    #41
    Re: Need help reading a schematic.

    to do the moving dot thing is easy,
    set a couple of variables in memory for X & Y
    write a character to (videoram+X+(Y x line-length))
    start a loop
    read the keyboard interface
    if it wasnt a cursor key, loop
    overwrite the character in (videoram+X+(Y x line-length))
    add / subtract from X or Y
    write the character in (videoram+X+(Y x line-length))
    loop

    obviously a delay in the loop or it will be running in mega-turbo speed!
    Last edited by stj; 11-17-2015, 12:20 AM.

    Comment

    • stj
      Great Sage 齊天大聖
      • Dec 2009
      • 30963
      • Albion

      #42
      Re: Need help reading a schematic.

      obviously you would do some boundary checking on X and Y values so you cant go off-screen.

      Comment

      • Spork Schivago
        Badcaps Legend
        • Mar 2012
        • 4734
        • United States of America

        #43
        Re: Need help reading a schematic.

        Originally posted by stj
        to do the moving dot thing is easy,
        set a couple of variables in memory for X & Y
        write a character to (videoram+X+(Y x line-length))
        start a loop
        read the keyboard interface
        if it wasnt a cursor key, loop
        overwrite the character in (videoram+X+(Y x line-length))
        add / subtract from X or Y
        write the character in (videoram+X+(Y x line-length))
        loop

        obviously a delay in the loop or it will be running in mega-turbo speed!
        Yes, I understand the pseudo code all right. I can write it in C for the PC just fine. My trouble was with the assembly part of it and the whole CHR-ROM / CHR-RAM stuff. The assembly tutorials I found for the 2A03 weren't very complete. I think maybe they're designed for someone who already knows assembly for the 6502. Mainly, I was following the wiki located here:

        http://wiki.nesdev.com/w/index.php/Programming_guide

        If you look at the Programming Basics section, you'll notice a lot of To be writtens...
        -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

        Comment

        • stj
          Great Sage 齊天大聖
          • Dec 2009
          • 30963
          • Albion

          #44
          Re: Need help reading a schematic.

          first and most crucial thing to writing in assembly or hex is a full and accurate memory-map.
          because you arent going to be referencing or linking someone elses library's!

          none of that stdin crap etc.

          Comment

          • Spork Schivago
            Badcaps Legend
            • Mar 2012
            • 4734
            • United States of America

            #45
            Re: Need help reading a schematic.

            Originally posted by stj
            first and most crucial thing to writing in assembly or hex is a full and accurate memory-map.
            because you arent going to be referencing or linking someone elses library's!

            none of that stdin crap etc.
            Okay. That makes sense. Learning the instruction set would be the second most crucial thing to writing in assembly?
            -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

            Comment

            • stj
              Great Sage 齊天大聖
              • Dec 2009
              • 30963
              • Albion

              #46
              Re: Need help reading a schematic.

              yes, very easy on 6502, one accumulator, 2 index registers, both 8bit.
              only about 50 instructions - half of them you wont use.

              just remember that the stack is in low ram - dont write into it!!

              Comment

              • stj
                Great Sage 齊天大聖
                • Dec 2009
                • 30963
                • Albion

                #47
                Re: Need help reading a schematic.

                http://6502.org/

                Comment

                • keeney123
                  Lauren
                  • Sep 2014
                  • 2536
                  • United States

                  #48
                  Re: Need help reading a schematic.

                  Originally posted by Spork Schivago
                  Technically, I think the CPU the NES uses is a Ricoh 2A03. I believe it's just a modified version of the MOS 6502.

                  Originally, MOS developed it then Commadore bought it and sourced it to Rockwell and Synertek. After that though, a few other companies got access to it. I don't know who though. Chuck Peddle's team at MOS developed it.
                  Thanks for that info. I came across this Processor in a plug-in board that an Apple computer used in 1986. I believe at the time the board and the software was consider the driver.

                  Comment

                  • Spork Schivago
                    Badcaps Legend
                    • Mar 2012
                    • 4734
                    • United States of America

                    #49
                    Re: Need help reading a schematic.

                    Originally posted by keeney123
                    Thanks for that info. I came across this Processor in a plug-in board that an Apple computer used in 1986. I believe at the time the board and the software was consider the driver.
                    Here's a little more info. This is what Wikipedia has to say about the 2A03...

                    Ricoh 2A03
                    The Ricoh 2A03 or RP2A03 (NTSC version) / Ricoh 2A07 or RP2A07 (PAL version) is the 8-bit microprocessor in the Nintendo Entertainment System video game console manufactured by Ricoh. It contained a second source MOS Technology 6502 core, lacking the 6502's binary-coded decimal mode, with 22 memory-mapped I/O registers that controlled an APU, rudimentary DMA, and game controller polling.[1] It was also used as a sound chip and secondary CPU by Nintendo's arcade game Punch-Out!!

                    Regional variations
                    European and Australian versions of the NES used the Ricoh 2A07 or RP2A07 processor, which was identical to the 2A03 except for a different clock divider and the 50 Hz vertical refresh rate used in the PAL television standard.
                    -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

                    Comment

                    • stj
                      Great Sage 齊天大聖
                      • Dec 2009
                      • 30963
                      • Albion

                      #50
                      Re: Need help reading a schematic.

                      it's actually used in the nintendo VS arcade system - never trust wakypedia.

                      Comment

                      • Spork Schivago
                        Badcaps Legend
                        • Mar 2012
                        • 4734
                        • United States of America

                        #51
                        Re: Need help reading a schematic.

                        Originally posted by stj
                        it's actually used in the nintendo VS arcade system - never trust wakypedia.
                        Stj, I agree that wikipedia isn't the best source for information. I always try to verify by looking at the source. I think the reason they listed the Punch Out Arcade is because it's special. I believe what they're talking about is that it actually had 2 single channel amps to produce different sounds from the left and right speaker. They used the Ricoh 2A03 for that setup I believe. I believe it had the Zilog Z80 for the main CPU. The 2A03 was just for sound I think. Might be wrong there though, having trouble finding the info on the technical specs.

                        Can you confirm my information on the Punch-Out arcade?
                        Last edited by Spork Schivago; 11-19-2015, 11:39 AM.
                        -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

                        Comment

                        • stj
                          Great Sage 齊天大聖
                          • Dec 2009
                          • 30963
                          • Albion

                          #52
                          Re: Need help reading a schematic.

                          http://www.mamedev.com/downloader.ph.../mame0167s.zip

                          that has everything you could ask for.

                          Comment

                          • Spork Schivago
                            Badcaps Legend
                            • Mar 2012
                            • 4734
                            • United States of America

                            #53
                            Re: Need help reading a schematic.

                            Thanks. I've seen custom built arcade machines that run off of MAME. I always wanted to own an original coin-operated arcade. One where the coin slot still worked. They're always a bit too expensive though, at least the good ones. I wouldn't mind something like Ikari Warriors or some fighting game. At a local comic book, they had a broken arcade, it was four player. It was X-Men I believe and looked like this: http://cdn.pastemagazine.com/www/blo...n%20arcade.jpg

                            I asked the guy if he'd sell it, he said it wasn't his. It was his buddy's and he was just storing it there. I asked if he could ask his buddy if he wanted to sell it and he said other people have asked him and it's always a no. I thought a broken one might not of been that hard to fix, if it was the circuit board, and I might of gotten it fairly cheap. I don't really want one running an emulator or anything. I'd like an original, used in the arcade, type of machines. Also, I'd love to get a pinball machine some time.
                            -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

                            Comment

                            • stj
                              Great Sage 齊天大聖
                              • Dec 2009
                              • 30963
                              • Albion

                              #54
                              Re: Need help reading a schematic.

                              keep your eyes on ebay, loads of arcade machines there.
                              i'm not a fan of mame arcade cabs, they arent acurate.

                              Comment

                              • Spork Schivago
                                Badcaps Legend
                                • Mar 2012
                                • 4734
                                • United States of America

                                #55
                                Re: Need help reading a schematic.

                                Originally posted by stj
                                keep your eyes on ebay, loads of arcade machines there.
                                i'm not a fan of mame arcade cabs, they arent acurate.
                                Agreed. I check e-Bay once in awhile but the good ones are over a grand usually! I saw some TV show, maybe a pawn shop one or a restoration one, and they were selling a guy a Ms. PacMan arcade machine. He came to look at it, to give the guys lots of money, then he realized the cab wasn't even painted. They just used decals for it. I'd be afraid of something like that happening to me.

                                Craigslist has some for like 400$ once in awhile. Might try to pick one up there. There's another machine I've been looking for for years but I can't find the right one. It's a coin pusher / shooter. You use quarters and when you put one in, the quarter goes down on a table. There's a bar that pushes the quarters and when your quarter goes down, if the pusher bar pushes any quarters off, you get to keep the quarters. The one I want has an arm where you put the quarter though. You move the little bar that the quarter rolls down, to where ever you want, and put the quarter in when you're ready (or maybe you put the quarter in, move it around and then pull a trigger when you're ready). The arm that you move is by your waist. I played one like that a few times when I was younger but can only find the newer models. Boy would I love one of those things.
                                -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

                                Comment

                                • stj
                                  Great Sage 齊天大聖
                                  • Dec 2009
                                  • 30963
                                  • Albion

                                  #56
                                  Re: Need help reading a schematic.

                                  pushers are large beasts - and they are rigged.

                                  if you look real close, there is a tiny lip on the edge of the bed so the coins get pushed to the side as they hit the edge.

                                  now if you look over the edge, you will see that coins that drop at the outer-edges of the shelf go to the cashbox, not the collection tray.

                                  if you really want one, keep an eye on fairgrounds and such, they go real cheap when these places upgrade.

                                  Comment

                                  • Spork Schivago
                                    Badcaps Legend
                                    • Mar 2012
                                    • 4734
                                    • United States of America

                                    #57
                                    Re: Need help reading a schematic.

                                    Originally posted by stj
                                    pushers are large beasts - and they are rigged.

                                    if you look real close, there is a tiny lip on the edge of the bed so the coins get pushed to the side as they hit the edge.

                                    now if you look over the edge, you will see that coins that drop at the outer-edges of the shelf go to the cashbox, not the collection tray.

                                    if you really want one, keep an eye on fairgrounds and such, they go real cheap when these places upgrade.
                                    <Gasp> I didn't realize they were rigged! Man, I spent so much money on that game when I was kid. Only played it twice or so, at some fair ground, but I spent like 25$ each time on it in quarters. Maybe I should try to make one some time, one that isn't so rigged, just to give people a better chance of winning. I'd mostly have it just for fun.
                                    -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

                                    Comment

                                    • stj
                                      Great Sage 齊天大聖
                                      • Dec 2009
                                      • 30963
                                      • Albion

                                      #58
                                      Re: Need help reading a schematic.

                                      everything in fairgrounds is "regulated" in one way or another.
                                      if you think that's bad, you should see how the cranes work!!!
                                      i'll give you a hint - they are intelligent and can regulate the chance of winning.
                                      some even network to a remote terminal in groups!

                                      Comment

                                      • Spork Schivago
                                        Badcaps Legend
                                        • Mar 2012
                                        • 4734
                                        • United States of America

                                        #59
                                        Re: Need help reading a schematic.

                                        Originally posted by stj
                                        everything in fairgrounds is "regulated" in one way or another.
                                        if you think that's bad, you should see how the cranes work!!!
                                        i'll give you a hint - they are intelligent and can regulate the chance of winning.
                                        some even network to a remote terminal in groups!
                                        The crane we have around here, down at Wegmans is pretty decent. My wife wins just about every time she plays. She always tries giving the stuffed animals to near by children. I see one machine when I lived a good 100 miles away though, they freaking loosened the screws so it wouldn't grab properly. They got this game called Barber Cut or something like that, that's rigged. Light House is another rigged one.
                                        -- Law of Expanding Memory: Applications Will Also Expand Until RAM Is Full

                                        Comment

                                        • stj
                                          Great Sage 齊天大聖
                                          • Dec 2009
                                          • 30963
                                          • Albion

                                          #60
                                          Re: Need help reading a schematic.

                                          it's not screws.
                                          the grabber uses an electromagnet, the control system regulates win's by varying the current to the magnet.

                                          early systems just had a "power" control.
                                          newer ones monitor wins over time and make it harder as people win, and make it easier over time when people dont win.

                                          the idea is that if people never see a win they wont play, but at the same time you dont want it being emptied.

                                          Comment

                                          Related Topics

                                          Collapse

                                          • waigy
                                            Variable resistor potentiometer has different reading when mounted on the board
                                            by waigy
                                            In my fusion FE-402 car amplifier the gain pot is an RK097G.
                                            I think it is anyway, the RK097G is the closest I've found to the original with the same pin number and dimensions.
                                            The differences are my pot is blue and has B203 on it and the shaft is plastic with a small slot at the very end only.
                                            I measured the resistance and found it went from 0 up to 10k so I ordered a 10k pot.
                                            I then took the pot out the board and it now measured 22k.
                                            I tried putting it back in the board and it goes back to 10k.
                                            Is this normal and if so what pot should I order?
                                            On this...
                                            11-12-2024, 04:44 AM
                                          • DeanWy
                                            WD Sentinel DS5100 (NAS) boot issues
                                            by DeanWy
                                            Hi all,

                                            I have a Western Digital Sentinel DS5100 NAS system which has stopped working. It has dual BIOS. I bought the system second hand with an already broken primary BIOS (it rebooted multiple times until second BIOS was used).

                                            It worked until recently. The system was idle in Windows Server 2012 and a BSOD occurred, I think it was 'critical process died'. Thereafter it didn't boot, it just sat there with no video output and fan speed at 100% (there's a proprietary Windows driver by WD which controls the fan, outside of that it always runs at 100%).

                                            There...
                                            07-30-2024, 04:13 AM
                                          • gjgib
                                            Help reading schematic voltages input/output
                                            by gjgib
                                            Hello, this might be embarassing since I consider it a dumb question but keeps me kinda stuck sometimes in my journey.

                                            I want to know if there is any post in this forum which explains my questions. A) When, where and how do I know when X voltage line is input or output. Example:


                                            I'm battling with this IC to understand it's voltages. It's from non-turning-on Lenovo Ideapad 3 15iil05 - NM-D461.

                                            I see some lines like +5VL / +5VALW / V9B+ / +3VALW being okay and some others like 1.8VALW / +0.6VS / +2.5V_DDR. I just know that some of them are bad or missing,...
                                            05-06-2024, 08:11 PM
                                          • TinkerTron
                                            Schematic vs. Reality: Where Are the Resistors on My Sharp Clock Radio? Model FY-70CH
                                            by TinkerTron
                                            Hey everyone,

                                            I'm currently working on a mid-70s Sharp Electronic Digital Clock Radio, Model FY-70CH. I found the service manual online, printed it out, and have been studying it for a while. My main reasons for tackling this are: (1) I want to learn electronics and figured I'd start with something I had on hand, and (2) I want to fix its issues. Right now, the radio sounds awful, has about 5V DC at the speaker terminals, and the alarm time setting doesn't work. But I'm not asking how to fix these problems.

                                            Instead, here's what's been bugging me so far:
                                            The schematic...
                                            03-06-2025, 02:03 PM
                                          • atunguyd
                                            Acer x163w Monitor PSU schematic
                                            by atunguyd
                                            Ii wonder if anyone can help me. I have a Acer x163w monitor which is not powering up. The PSU main capacitor's one leg had completly come off - I replaced it but the PSU is still not outputting DC. I found the monitor in questions service manual here on manuals lib but the schematic in there is a completely different - the schematic shows no mosfet to drive the transformer while the one I have does use a mosfet - also the schematic shows only one optocoupler but mine has two.
                                            The PSU board is labelled FM-20A02-AAA made by APD as per the image below. I am trying to find a schematic for this...
                                            03-05-2025, 02:08 PM
                                          • Loading...
                                          • No more items.
                                          Working...