Re: simulator
Posted: Mon Dec 16, 2024 4:46 pm
Nora23169,
Simulators are quite complicated, but also quite rewarding once you get them working. Start simple, with just a few opcodes working, and then add the remaining opcodes a few at a time. You'll also need a way to test that your simulation is working properly, so you will want to write some test programs that only use the instructions your simulator knows at that point. Fortunately, the 6502 has a reasonable number of instructions, so it's very possible to get this working if you keep at it. I'm sure you'll learn a lot along the way.
You use the local copy in your local repository. Git is a bit different from SVN in that you have a local repository. You can change to different branches, pull an older version of a file, and commit your changes all to your local repo with no internet whatsoever. Only when you want others to be able to see your changes on a public server (like github, for example) do you push your changes from your local repository to the remote one. Most of the work happens locally with full version control/history. Once the internet is working again, you'd push your changes to the web based server.
The only time you'd be stuck is if you used one computer and published it to the web, and then wanted to pull to another computer to continue working, but that's a problem you'll have with anything that you store on the interwebs. If you have local access (eg. network or thumb drive) to a machine with a recent copy, you can clone (or fetch changes) from that repository over to the new machine and keep working locally. Overall, I find this generally superior to the way SVN does things. I use both SVN (work) and Git (home) - I prefer the SVN workflow, but Git is not that different.
For those that want to poke around a project, here's the quick method to just get a local copy that you can look at on your own computer without even having git installed:
Click the little arrow next to the "<>Code" button (top right above file/folder list), select Download Zip, enjoy on your computer.
Simulators are quite complicated, but also quite rewarding once you get them working. Start simple, with just a few opcodes working, and then add the remaining opcodes a few at a time. You'll also need a way to test that your simulation is working properly, so you will want to write some test programs that only use the instructions your simulator knows at that point. Fortunately, the 6502 has a reasonable number of instructions, so it's very possible to get this working if you keep at it. I'm sure you'll learn a lot along the way.
BigDumbDinosaur wrote:
BTW, what do GitHub users do when they are in the middle of a programming project, need to check out a file for editing and their Internet service goes on the fritz?
The only time you'd be stuck is if you used one computer and published it to the web, and then wanted to pull to another computer to continue working, but that's a problem you'll have with anything that you store on the interwebs. If you have local access (eg. network or thumb drive) to a machine with a recent copy, you can clone (or fetch changes) from that repository over to the new machine and keep working locally. Overall, I find this generally superior to the way SVN does things. I use both SVN (work) and Git (home) - I prefer the SVN workflow, but Git is not that different.
For those that want to poke around a project, here's the quick method to just get a local copy that you can look at on your own computer without even having git installed:
Click the little arrow next to the "<>Code" button (top right above file/folder list), select Download Zip, enjoy on your computer.