Need help reading a schematic.

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • stj
    replied
    Re: Need help reading a schematic.

    http://6502.org/

    Leave a comment:


  • stj
    replied
    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!!

    Leave a comment:


  • Spork Schivago
    replied
    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?

    Leave a comment:


  • stj
    replied
    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.

    Leave a comment:


  • Spork Schivago
    replied
    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...

    Leave a comment:


  • stj
    replied
    Re: Need help reading a schematic.

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

    Leave a comment:


  • stj
    replied
    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.

    Leave a comment:


  • Spork Schivago
    replied
    Re: Need help reading a schematic.

    Originally posted by keeney123
    is that a Rockwell processor?
    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.

    Leave a comment:


  • Spork Schivago
    replied
    Re: Need help reading a schematic.

    Originally posted by stj
    yes, it would.

    btw, i can write 6502 assembly.
    Yeah, turns out other people have already made some multi-carts for the NES. It looks like it'd be a huge project, software wise at least. I'd need to write the mappers and I don't really want to do that.

    On a side note, when you say you can writ 6502 assembly, can you write code that the NES understands or code that an NES emulator understands? The code is a little bit different from the code for a pure 6502 (not Nintendo's modified 6502). I write some code once for an NES emulator. All it did was display a dot on the screen and if you pressed the over button, it'd move over. If you pressed up or down, it'd move up or down. My friend was supposed to work on the graphics but he never did. I struggled a lot with the graphics part of it. I didn't research it much because he was supposed to but the sprite editing program I found was a bit confusing. If you can write code for the NES, what do you use for drawing the sprites?

    Leave a comment:


  • stj
    replied
    Re: Need help reading a schematic.

    originally.

    Leave a comment:


  • keeney123
    replied
    Re: Need help reading a schematic.

    Originally posted by stj
    yes, it would.

    btw, i can write 6502 assembly.
    is that a Rockwell processor?

    Leave a comment:


  • stj
    replied
    Re: Need help reading a schematic.

    yes, it would.

    btw, i can write 6502 assembly.

    Leave a comment:


  • Spork Schivago
    replied
    Re: Need help reading a schematic.

    Here's a little info on one of the NES mappers and how it works in regard to banking. Would that make the NES ROMs banking ROMs?

    http://wiki.nesdev.com/w/index.php/MMC1#Banks

    Leave a comment:


  • Spork Schivago
    replied
    Re: Need help reading a schematic.

    Originally posted by stj
    the way he did it is interesting.
    it could theoretically be ported to any 8bit system with games that arent banked.
    you would need to re-write the selector-menu for the host system.

    i think master system may be a problem, i think the roms are banked - i know nothing about snes - isnt it a 16bit version of a 6502?
    I believe the SNES uses a 5A22 CPU based off of the 65c816 core which is an enhanced version of the WDC 65C02 8-bit MPU. The WDC 65C02 8-bit MPU is actually a CMOS enhancement of the 6502 NMOS MPU. So yeah, it is. THe selector-menu might not be that hard. I used to be a system programmer before my brain broke. Anyway, I just need a refresher for C. Learning new languages usually isn't that difficult. The only reason I struggled I think with the NES assembly for the 6502 was because I couldn't find any books on it. The NES used a modified instruction set I believe but it was really hard finding good documentation on how to write an NES game. I found plenty of examples, but I couldn't really find any that actually explained what the code did. Mostly, okay, make sure your code contains this at the beginning: <blah>.

    I still don't have a Master System so I'm not too interested in that right now. The NES would be the main one. Maybe you'd like to try and tackle it with me sometime? You work on modifying the hardware, I'd work on writing the code. I'd pay for the supplies if it didn't turn out to be too expensive. Maybe we could sell them and split the profits or something or just release it open hardware for others to use?

    One last thing. What do you mean by banked games? Do you mean pages that can be remapped to different internal ROM banks?

    Leave a comment:


  • stj
    replied
    Re: Need help reading a schematic.

    Originally posted by Spork Schivago
    Hey STJ, do you think you could design something like that for the NES and the SNES or no?
    the way he did it is interesting.
    it could theoretically be ported to any 8bit system with games that arent banked.
    you would need to re-write the selector-menu for the host system.

    i think master system may be a problem, i think the roms are banked - i know nothing about snes - isnt it a 16bit version of a 6502?

    Leave a comment:


  • Spork Schivago
    replied
    Re: Need help reading a schematic.

    Originally posted by keeney123
    Yes, it is a good way to proto-type a board as it is easy to unscrew the wire wraps to change the circuit connection. Only problem is that it is only good for about 2 years as the connection start to oxidize. With a wire wrap gun many connections can be made quickly. With soldering every time one un-solders and re-solders a joint it weakens that joint. Wire wrapping the wire actually cuts into the post.
    Wow, so people still wire wrap? That's cool to know. I got a bunch of bread boards left from when I took Digital Logic back in college. I still use them for projects when I'm trying to learn how to make circuit boards. What's nice about the bread board is I can easily modify a circuit. You know, make changes and then see how the changes affect the circuit. I bet I could do that with wire wraps as well. I was thinking about it last night, and perhaps wire wrapping might make it a little easier for me to follow how the electricity moves through the circuit. I still struggle with that a bit when it comes to parallel circuits.

    Leave a comment:


  • keeney123
    replied
    Re: Need help reading a schematic.

    Originally posted by Spork Schivago
    Are you talking about stuff like this?

    https://upload.wikimedia.org/wikiped...ormat_1977.jpg

    That's freaking old school! Wow. Do people still do that stuff? I got an old tube amp I'm supposed to fix for my buddy that's wired that way.
    Yes, it is a good way to proto-type a board as it is easy to unscrew the wire wraps to change the circuit connection. Only problem is that it is only good for about 2 years as the connection start to oxidize. With a wire wrap gun many connections can be made quickly. With soldering every time one un-solders and re-solders a joint it weakens that joint. Wire wrapping the wire actually cuts into the post.

    Leave a comment:


  • Spork Schivago
    replied
    Re: Need help reading a schematic.

    Originally posted by stj
    someone elses.
    i do have one in storage,
    may have to dig it out because i just found this:
    http://spritesmods.com/?art=veccart&page=1
    Hey STJ, do you think you could design something like that for the NES and the SNES or no? You seem to be a lot more knowledgeable than I am at this stuff. The original NES is my all time favourite console. The Sega Master System is pretty darn good too though. SNES had nice graphics. I can't play the newer game consoles, they give me seizures for some reason. Even watching for a few minutes, I get really sick. But I can still play the old ones!

    Also, with the design that the guy created on the site you linked too...I see he decided to go with assembly for the firmware because he said it gave him finer control of the functions he was executing. I'm fairly good with C. Not so much with assembly but I'm sure it wouldn't take too long to improve my Assembly knowledge. The assembly he's using is for the microcontroller, not the Vectrex, right? I had trouble learning assembly for the 8502 that the NES uses.

    Leave a comment:


  • stj
    replied
    Re: Need help reading a schematic.

    Originally posted by Spork Schivago
    Do you get to keep it or is it someone elses?
    someone elses.
    i do have one in storage,
    may have to dig it out because i just found this:
    http://spritesmods.com/?art=veccart&page=1

    Leave a comment:


  • Spork Schivago
    replied
    Re: Need help reading a schematic.

    Originally posted by stj
    just put the tv news on for 10min's that will get you angry for a week!
    dont overdose!!!
    LOL! Yeah, we actually try not to watch the news. It just seems in this country at least, violence sells. We never see anything happy on the news. Always the worst of the worst or mud slinging when election time comes around.

    Leave a 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...