Jump to content
IGNORED

6502 Memory Map resource?


Recommended Posts

Hi all,

 

I am playing with ASM on the 6502 (with simulator), but the simulator I'm using uses memory locations $0200 to $05ff to draw to screen.

 

I started to wonder, is this typical? In order to write to the screen, what memory location(s) are standard (typically)?

 

Also, what is the best resource to better understand the Memory Map? I have A LOT of 6502 books on PDF, but was wondering if one book "kind of rose above" the others for this purpose?

 

 

Thanks,

 

 

 

JR

Link to comment
Share on other sites

The only "6502 Memory Map" is:

 

$00-ff = zero page

$100-1ff = stack

$FFFA-FFFB - NMI vector

$FFFC-FFFD - RESET vector

$FFFE-FFFF - IRQ/BRK vector

 

The position of everything else depends where the manufacturer mapped the components (RAM, video, sound, timers, io, etc) to.

 

One thing that might confuse you about the above is that in the case of the 2600, Atari did an addressing trick that maps the same 128 bytes to both 80-ff and 180-1ff. In other words, zero page and the stack share the same memory even though the 6502 thinks they are different - data you write to memory location $80 can be read from location $180.

Link to comment
Share on other sites

The only "6502 Memory Map" is:

 

$00-ff = zero page

$100-1ff = stack

$FFFA-FFFB - NMI vector

$FFFC-FFFD - RESET vector

$FFFE-FFFF - IRQ/BRK vector

 

The position of everything else depends where the manufacturer mapped the components (RAM, video, sound, timers, io, etc) to.

 

One thing that might confuse you about the above is that in the case of the 2600, Atari did an addressing trick that maps the same 128 bytes to both 80-ff and 180-1ff. In other words, zero page and the stack share the same memory even though the 6502 thinks they are different - data you write to memory location $80 can be read from location $180.

 

Oh, okay, so it is different for the Atari and different for the C64 and different for the, etc...

 

So if I want to write/print to the display, it will be different memory locations depending the the machine, right?

 

Sorry, this probably is SO darn basic and newbie-ish, but I'm trying to get my mind around it.

 

 

JR

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...