xucaen Posted January 3, 2018 Share Posted January 3, 2018 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) Quote Link to comment Share on other sites More sharing options...
+SpiceWare Posted January 4, 2018 Share Posted January 4, 2018 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. 2 Quote Link to comment Share on other sites More sharing options...
+nanochess Posted January 4, 2018 Share Posted January 4, 2018 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 . 1 Quote Link to comment Share on other sites More sharing options...
xucaen Posted January 4, 2018 Author Share Posted January 4, 2018 These are both excellent points I had not known about. Thanks guys!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.