Will a 65C02 run without any RAM

Building your first 6502-based project? We'll help you get started here.
Post Reply
User avatar
banedon
Posts: 742
Joined: 08 Sep 2013
Location: A missile silo somewhere under southern England

Will a 65C02 run without any RAM

Post by banedon »

Not a super important question, but I was wondering if anyone has ever known a 65C02 to boot without any RAM present? Mine won't and my guess is that it needs page 1 ($0100-$01FF) for the stack and utilises it during it's boot/reset sequence.

Just wondering.
User avatar
MichaelM
Posts: 761
Joined: 23 Apr 2012
Location: Huntsville, AL

Re: Will a 65C02 run without any RAM

Post by MichaelM »

I can't think of any reason why you can't boot a 6502/65C02 without RAM. It's a bit more difficult to initialize and operate a 6502/65C02 system without using subroutines, interrupts or traps (BRK). However, it would be very limiting, but still possible.
Michael A.
ElEctric_EyE
Posts: 3260
Joined: 02 Mar 2009
Location: OH, USA

Re: Will a 65C02 run without any RAM

Post by ElEctric_EyE »

banedon wrote:
..Mine won't and my guess is that it needs page 1 ($0100-$01FF) for the stack and utilises it during it's boot/reset sequence.

Just wondering.
IIRC, if your ROM has any JSR/RTS's it will need the stack.
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Will a 65C02 run without any RAM

Post by BigEd »

The 65C02 (or any other 6502 chip), as a chip, will happily run without RAM: the simplest example is the NOP tester, where you tie off the address bus with resistors to read EA. Many other values would also work: the chip will fetch instructions and execute them, and the address bus will act as a counter.

But any computer with a 65C02 in it (or any other 6502 family chip) will most likely not run well without RAM, because, as noted, it is very likely indeed to try to read back values previously written to zero page or to the stack, and without RAM it won't read the values expected.

What are you trying?
Klaus2m5
Posts: 442
Joined: 28 Jul 2012
Location: Wiesbaden, Germany

Re: Will a 65C02 run without any RAM

Post by Klaus2m5 »

Remember the 6532 or RIOT (RAM IO Timer). It was the solution in the early days to allow building an SBC with minimal chip count and still have 128 bytes of RAM for a small stack and some page zero locations. Projects like the EMUF used it in conjunction with a 6504 and a 1k EPROM.

http://retro.hansotten.nl/index.php?page=emuf-6504
6502 sources on GitHub: https://github.com/Klaus2m5
Post Reply