[Color Computer] [Coco] ASM Coders - Round two!
Charles Richmond
richmond at plano.net
Wed Aug 30 22:23:55 EDT 2006
On Aug 30, 2006, at 9:10 PM, James Diffendaffer wrote:
> --- In ColorComputer at yahoogroups.com, Charles Richmond <richmond at ...>
> wrote:
>
>> The 6502 *does* support position independent code. It just has to
>> be written using PC relative branching. Commodore distributed
>> something
>> they called a wedge. It was a debugger written in position
>> independent
>> code so you could locate it in a convenient memory location in
>> relation to the program that you are debugging.
>
> Hmmm... now I'm curious which cpu didn't have position independent
> code.
>
> I do remember having to use self modifying code for sure.
>
The Intel 8080 did *not* have PC relative addressing and could
*not* produce position independent code.
Using the 6800, some programmers would modify the offset to the
index register in some instructions. That would count as using
self-modifying code.
--
+----------------------------------------------------------------+
| Charles and Francis Richmond richmond at plano dot net |
+----------------------------------------------------------------+
Brought to you by the 6809, the 6803 and their cousins!
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ColorComputer/
<*> To unsubscribe from this group, send an email to:
ColorComputer-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the Coco
mailing list