[A89] Re: change the SR


[Prev][Next][Index][Thread]

[A89] Re: change the SR




> > by the way you do not need to use the low memory protection port just add
> > #$40000 so to the pointers so that you get the wrap arround effect.
> 
> i dont really understand this sentence

The hardware in the 68k TI calcs have a built-in protection mechanism
for memory below a certain address to prevent runaway programs from
writing in sensitive memory areas like the interrupt tables, handle
tables etc. To deactivate this you clear bit 2 of 0x600001(byte).
The alternative, as Samuel points out, you can also add #$40000 to
the address you're writing to since the calcs only use a certain
number of the address bits anyway and will wrap around with a modulus
of $40000, but the protection looks at all the bits and therefore
thinks your address is valid.

--
 / Niklas Brunlid
Check out Prosit for the TI-89 / TI-92+ at http://prosit.ticalc.org
Random PQF v5.1 Quote follows:

The Monks of Cool, whose tiny and exclusive monastery is hidden in a really
cool and laid-back valley in the lower Ramtops, have a passing-out test for a
novice. He is taken into a room full of all types of clothing and asked: Yo,
my son, which of these is the most stylish thing to wear? And the correct
answer is: Hey, whatever I select.
        -- (Terry Pratchett, Lords and Ladies)





References: