Jump to content
IGNORED

Quick Question about ORG $F000 vs ORG $1000


xucaen

Recommended Posts

I didn't want to necro this post from 2002 ;-) , but in it, Dan says

Since the 6507 processor only 13 address lines, the highest memory location it can access is $1FFF. But this doesn't stop you from putting your code at $F000. If the 6507 encountered a JMP $F000 for example, the top 3 bits of the address would be dropped and the jump would go to $1000 instead.


So, if $F000 essentially points to $1000, why to VCS programmers always use ORG $F000 instead og ORG $1000? Is it more efficient or something? What's the difference?

 

 

 

 

 

(Link back to original post: http://atariage.com/forums/topic/3244-org-f000/?p=31613)

Link to comment
Share on other sites

I learned to code for the 6502 on the Commodore VIC 20, 64, and 128 back in the 80s. On the 6502 the vectors for NMI, RESET, and IRQ are by definition at $FFFA, $FFFC, and $FFFE respectively. So for me, setting it to $F000 (and $F800 for 2K games) makes the vectors the same as what I learned back in the day.

  • Like 2
Link to comment
Share on other sites

No difference.

 

You can use $1000, $3000, $5000, $7000, $9000, $b000, $d000 or $f000.

 

I use $f000 just because it feels the right thing if the 6502 starts from vector at $fffc, even if the three higher bits of address never goes out thru real pins.

 

Besides we can never know if someday comes out an Atari VCS with the full 64K byte addressing and we need to be compatible.

 

Well, one can dare to dream :grin:.

  • Like 1
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...