Questions tagged [6502]

The 6502, developed by MOS Technology, is an 8-bit microprocessor that was in common use as a microcomputer and video-game CPU from the late 1970s through to the early 1990s, notably powering products from Commodore, Apple, Atari, Acorn and Nintendo.

The 6502, developed by MOS Technology (later CSG, Commodore Semiconductor Group) and subsequently licensed to Rockwell and Synertek, is an 8-bit microprocessor with a 16-bit address bus that was in common use as a microcomputer CPU from the late 1970s through to the early 1990s. Typical clock speed implementations drove the CPU at either 1MHz or 2MHz, though the device was not locked to these speeds and could be over/under-clocked to a degree.

Commodore, Apple, Atari, Acorn and Nintendo notably featured the device in numerous microcomputers and video-game consoles during that time. Variant models include the 6507 and 6510, whilst later revisions include the 65C02 and 65C816. These models either lacked some functionality (6507) or enhanced the original design.

231 questions
0
votes
1 answer

Adding two n-bytre integers to produce an n-byte answer in 6502?

I'm having another issue with addition in 6502.... I am attempting to add two n-byte integers to produce an n-byte result. I'm not completely sure if I understand the 6502 chip as much as I should for this project so any feedback on my current code…
Surz
  • 984
  • 3
  • 11
  • 36
-1
votes
1 answer

6502 nes game's stack overflows when jumping to a subroutine

When I run this chrome dinosaur clone for the nes I wrote in 6502 assembly, it causes a stack overflow for some reason. Here is the code: 1. isJumping = %00000001 2. isFalling = %00000010 3. isGameOver = %00000001 4. 5. collisionram = $700 6.…
i28v
  • 33
  • 3
-2
votes
2 answers

How can I upload my code into 6502 processor?

It has been a while that i have started learning 6502 assembly but how can I upload my code After I write it in my PC ?
NJB's Codings
  • 17
  • 1
  • 9
-2
votes
1 answer

How to create an assembly language?

like the title says How to create an assembly language? I'm new at this programing thing. I've tried to learn Ruby, Python, Java, c, etc. but I'm limited to my phone since I don't have a computer at the moment. I've searched the web over and over…
-2
votes
1 answer

Why is the NES init code like this (6502 assembly)?

; We now have about 30,000 cycles to burn before the PPU stabilizes. ; One thing we can do with this time is put RAM in a known state. ; Here we fill it with $00, which matches what (say) a C compiler ; expects for BSS. Conveniently, X is still…
ZimZim
  • 3,291
  • 10
  • 49
  • 67
-3
votes
2 answers

NES(6502 assembly) sprites does not move

Im trying to write a game in 6502 assembly langage but my sprite does not want to move:My sprite is at $200 so I did the follow: Spriteloop: LDX $200 ;loading content of $200 address in X register INX ;increment the number JMP…
J.Wilson
  • 51
  • 7
1 2 3
15
16