6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 6:49 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Jun 28, 2022 1:21 am 
Offline

Joined: Tue Jun 28, 2022 1:08 am
Posts: 2
Greetings. I'm a newb when it comes to all this. I'm in the process of trying to build Eater's breadboard 6502 kit and at the point where I'm at the end of the third video.

I've had problems when I used the Audiuno monitor tool, so I have no idea if my build is good or not at this point.

What I'd like to do is to build the 55->aa light program, but I'm using a windows machine and I have no idea what tools I should be using or what tutorials I should be following to try to create an image that I can flash onto the eeprom chip and try to run on the 6502.

I've found some tools but no good tutorials, and I've found some tutorials but they were to run things in a simulator more than actually building a file that can be flashed to a chip.

Thoughts?

Thanks.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 28, 2022 2:10 am 
Offline

Joined: Sat Feb 19, 2022 10:14 pm
Posts: 147
I'd look into RetroAssembler. This link includes a page on using it with Visual Studio Code, which I also recommend. These are the tools I used starting out with Ben's 6502 project on Windows. This post over on Ben's reddit might give some more info.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 28, 2022 10:43 am 
Offline

Joined: Fri Mar 18, 2022 6:33 pm
Posts: 491
Ben uses "vasm" in his videos. There are pre-compiled windows binaries for it:

http://sun.hasenbraten.de/vasm/index.php?view=binrel

The vasm documentation is also on that same website, although it is a bit thin.

_________________
"The key is not to let the hardware sense any fear." - Radical Brad


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 28, 2022 12:40 pm 
Offline

Joined: Tue Jun 28, 2022 1:08 am
Posts: 2
tmr4 wrote:
I'd look into RetroAssembler. This link includes a page on using it with Visual Studio Code, which I also recommend. These are the tools I used starting out with Ben's 6502 project on Windows. This post over on Ben's reddit might give some more info.

Paganini wrote:
Ben uses "vasm" in his videos. There are pre-compiled windows binaries for it:

http://sun.hasenbraten.de/vasm/index.php?view=binrel

The vasm documentation is also on that same website, although it is a bit thin.


Thanks for the replies. I’ll check them out the next time I have the project out on my bench.


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 21, 2022 12:16 pm 
Offline
User avatar

Joined: Tue Aug 11, 2020 3:45 am
Posts: 311
Location: A magnetic field
llaffer on Tue 28 Jun 2022 wrote:
I'm using a windows machine and I have no idea what tools I should be using or what tutorials I should be following to try to create an image that I can flash onto the eeprom chip and try to run on the 6502.


I don't have a solution but I sympathize with your problem. Getting started with simple systems is like using tongs to hold tongs to eat. You will learn a scaffold of many proxy skills which are not required after you advance.

Some people use a Raspberry Pi for development. This has advantages and dis-advantages. If you're not familiar with Unix in any form then you will have an abrupt shock and you may spend many months learning skills which are almost completely unrelated to 6502. I've used almost every Unix from the 1990s onwards including HP/UX, SunOS, IRIX, SCO Unix and I've used Linux intermittently for more than 20 years. Despite this, it took me six weeks to get familiar with Raspbian, the most popular operating system for Raspberry Pi. A friend got a "Kodi box" running within two weeks but this much more superficial.

If you are foolhardy enough to run a Raspberry Pi with Raspbian, you will get about 10 programming languages by default. You also get a complimentary copy of Mathematica and a special, scriptable version of Minecraft. For larks, it is possible to bodge a Minecraft Redstone version of 6502 (Red6502) to a Raspberry Pi's GPIO. With no additional software, it is also possible to run Mike Naberezny's Py65 (written in Python) or Mike Chambers' 6502 interpreter (written in C). If you are inexperienced with programming, it is possible to learn block structured programming with Scratch. If you are old school retro, it is possible to type a few obscure incantations and download FORTH, Pascal or FORTRAN. With a little more effort it is possible to install BASIC or JOVIAL.

If you want a gentle introduction to electronics on Raspbian, it is possible to install the Arduino IDE (or just Atmel's GCC fork, avr-gcc, and avrdude for flashing). (It is also worthwhile to install minipro to flash EEPROM and other programmable chips.) Some of the 6502 Forum's advanced users only use 6502 with Atmel microcontrollers because it is possible to make a cheaper, faster, simpler, RAM only system which doesn't require EEPROM. Atmel microcontrollers can also work as MicroSD interface, serial port, keyboard controller and floating point co-processor. You may wonder why anyone bothers with 6502 if the Atmel AVR microcontrollers are so brilliant. Unfortunately, the Atmel AVR ATMEGA328P used in Arduino Nano has 2KB RAM - and this is one of the mid-range devices. Although it is possible to bodge more RAM onto it, the result slower than 6502 and, bang-for-buck, about 10 times more expensive. Regardless, Raspberry Pi is fairly self-contained where software of dubious provenance can be installed with abandon, fiddly development environments can be constructed (for example, Python scripts to convert bitmaps into desired binary formats), programming hardware can be connected via USB and it is possible to backup everything in 8GB or less.

An alternative is to install all development software in a virtual machine. Firstly, it will keep the dubious malware somewhat contained. Secondly, it keeps the fiddly config in one blob. Thirdly, it provides undo for any failed software update. Fourthly, it allows Windows only software to run on other x86 systems. Unfortunately, I've had terrible experience using random chip programming protocols from virtual machine to USB. You may have better experience but definitely don't install endless software on a raw, critical desktop or server.

_________________
Modules | Processors | Boards | Boxes | Beep, Beep! I'm a sheep!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron