- If we are writing 6502 machine code and want to to create a routine or program that can be placed in any location then we have to create Position Independent Code (PIC) or make the code relocatable. Here I’m going to show how to make our code Position Independent. There are three full examples near the end of the article which show how to put this altogether.