Re: A85: Usgard question
[Prev][Next][Index][Thread]
Re: A85: Usgard question
Matt Butch wrote:
>
> How does usgard "relocate" files
>
> Thanks.
> Matt Butch
> mjb25@hotmail.com
> "You'll Never Walk Alone"-Melanie Jayne Chisholm aka Sporty Spice
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
i'm not on the usguard team, but i feel i can answer that question.
relocation is the art of avoiding Program_addr, why?
basically doing a
ld hl,(program_addr)
add hl,de
wastes space.
usgard does not "relocate" them in the sense that it moves them ;
instead it stores a large table (somewhere?) in the program. that
table is a chart of all jumps that need program_addr added to them
PhatOS on the other hand does not use any tables of any sort. It
actually shifts the programs around in memory, making sure that
program_addr is always at $8E57. with this knowledge you can
use .org $8E57 at the start and use JP instead of JUMP_
____________________________________________________________________
Get Your Free, Phat Based shell at missoula.bigsky.net/oxymoron/phat
References: