[hatari-devel] start and break question
Laurent Sallafranque
laurent.sallafranque at free.fr
Mon Jun 6 23:54:11 CEST 2011
Thanks
Regards
Laurent
Le 06/06/2011 23:45, Eero Tamminen a écrit :
> Hi,
>
> On maanantai 06 kesäkuu 2011, Nicolas Pomarède wrote:
>>> Currently the variable shows a value althought there's no program
>>> running, so I was wondering should it return zero until the text
>>> segment _size_ is also non-zero?
>> I'm not sure if it's not possible to craft a "wrong" prg header with 0
>> size and still have the tos to load it (I wonder if some packers are not
>> changing those values, can't recall).
>>
>> Maybe you can just check also that :
>> BasepageTextSegment> 0&& pc = BasepageTextSegment&& (pc).w = $601a
> Text segment doesn't contain the PRG file magic value ($601a), just code.
>
> But I guess it should in general be enough just to use:
> b pc = BasepageTextSegment
>
> Just remember to set it up only after desktop is up, otherwise it will
> break once of twice before the Desktop comes up (the basepage of TOS
> itself points to somewhere in ROM) and before TOS is fully initialized
> the code will complain that basepage is invalid (several "million"
> times with TOS4).
>
>
> On maanantai 06 kesäkuu 2011, Laurent Sallafranque wrote:
>> This works well for me (I've tested with 2 progs).
>> That's a nice option.
>> Will you upload it ?
> Commited with docs update.
>
>
> - Eero
>
> PS There's now also new "info cookiejar" command for checking cookiejar
> contents as it was only few additional lines.
>
> (Maybe some other things from Atari "sysinfo" program would be nice too.)
> _______________________________________________
> hatari-devel mailing list
> hatari-devel at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/hatari-devel
>
More information about the hatari-devel
mailing list