Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mos-650x]

For questions on the MOS Technology 650x family of processors. For questions about the 6502 use the "6502" tag.

8
votes
2answers
366 views

6510 I/O port initialisation

TL;DR: With what values are the I/O port registers (locations $00 and $01) on the 6510 initialised when it is powered on? I'm writing a Commodore 64 emulation. The Commodore 64 uses a 6510 ...
5
votes
1answer
314 views

Commodore-Motorola lawsuit in 1984

According to Commodore: The Amiga Years, the reason the Commodore UNIX machine project in the early 80s used the Z8000 rather than the 68000 was an ongoing lawsuit with Motorola: With the Commodore-...
15
votes
2answers
1k views

6502 branch offset calculation

This question expands on How does the 6502 implement its branch instructions? I'm working on a cycle accurate VHDL implementation on an FPGA. I have much of the program logic already written, but I ...
17
votes
1answer
757 views

How did the Atari 2600's 6507 handle zero page and stack with only 128 bytes of RAM?

The Atari 2600 used a cut-down version of the 6502 called the 6507. The 6507 was cost reduced by not supporting interrupts and (more importantly) having fewer address lines resulting in that it only ...
10
votes
2answers
810 views

How does the 6502 implement its branch instructions?

The 6502's decode ROM takes an input which tells it when to start the next instruction. In the case of something like an INX or LDA #7F, it is obvious that once the output from the ALU has been ...
23
votes
5answers
4k views

Why did Commodore sell CPUs to its competitors?

Many of the most popular personal computers and video game consoles of the 1970s and 1980s, including those made by Commodore, Apple, and Atari, used the 6502 CPU (or some close relative, such as the ...
18
votes
2answers
1k views

Is it possible to procedurally determine the number of cycles a particular instruction takes on a 6502?

Most emulators store the number of cycles a particular instruction takes in an array, and then adds any conditional cycles if needed (when crossing page boundaries, for example). I'm wondering if ...
18
votes
3answers
921 views

Use of undocumented opcodes

I figure this is fitting for Retrocomputing.SE because CPUs like the 6502 and Z80 and the PDP-8, and probably others, have undocumented instructions and will happily execute them, in contrast with ...
11
votes
1answer
984 views

What is a use case for the JAM instruction on the MOS Technology 650x family of processors?

I was reading about undocumented opcodes for the 650x family of processors and discovered JAM, an instruction "which simply causes the CPU to freeze, requiring a hardware reset or power cycle to ...