TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: Brother Jeremy, CSJW 76477,142 (X)
from: Kevin Darling 76703,4227
date: 1991-10-21 00:19:34
subject: #12655-#OS9 Assembly

#: 12656 S3/Languages
    21-Oct-91  00:19:34
Sb: #12655-#OS9 Assembly
Fm: Kevin Darling 76703,4227
To: Brother Jeremy, CSJW 76477,142 (X)

It's definitely possible to someone's position-dependent code and change it to
position-independent (I had to do that for Kyum-Gai game which was written for
RSDOS)... but I don't recommend it for fun .

Basically, you have to look for anywhere that the programmer had hardcoded an
address, and change it to position-independent code (PIC).  And wherever he
used the jump instruction (JMP) had to be changed to branch (LBRA).  Same for
subroutine calls, of course.  Some of that can be done with an editor in
global-replace mode.  Some is harder to find.

I was about to say that I'd donate a copy of Leventhal's 6809 book, but looking
at my shelf, I must have loaned it out long ago :-)   kev

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.