[A83] Re: Official H**s Replacement Commands (OT)
[Prev][Next][Index][Thread]
[A83] Re: Official H**s Replacement Commands (OT)
Like windows, only crash less often.
>At 07:17 PM 7/4/01 +0200, you wrote:
>
>Actually, there would be an excellent idea: Modify the previously
>mentioned code to crash the calculator at random times (say 1% of the
>time...so you only have to look at 50 screen updates on average).
>
>>Can you also get *more* than the official labelling (with zero
termination)?
>>It would be very, very, very nasty to load a large piece of the vat, and
>>cleared the whole lot.
>>
>>>To clarify a bit, what he's saying is that >> 8 and & 255 are used to get
>>the 8-bit pieces of a 16-bit address. For example, when you do:
>>> ld hl,plotsscreen
>>>What you're doing is equivalent to
>>> ld h,plotsscreen >> 8 ;upper byte
>>> ld l,plotsscreen & 255 ;lower byte
>>>
>>>Thus you can use >> 8 and & 255 to just get one piece of the address if
you
>>don't want to do an entire 16-bit load.
>>>
>>>
>>>In a message dated Tue, 3 Jul 2001 3:35:01 PM Eastern Daylight Time,
"Kirk
>>Meyer" <kirk.meyer@colorado.edu> writes:
>>>
>>><<
>>>>> 8 shifts right 8 (get upper byte)
>>>& 255 ands with 255 (get lower byte)
>>>
>>>In this code it's obviously a joke, but >> 8 is often used for optimizing
>>>tables by splitting them across 256 bytes.
>
>
> Thomas J. Hruska -- shinelight@crosswinds.net
>Shining Light Productions -- "Meeting the needs of fellow programmers"
> http://www.shininglightpro.com/
>
>