[Coco] 512k test

Arthur Flexser flexser at fiu.edu
Fri Dec 6 23:21:00 EST 2013


I can't try it either, but the disassembly of LPEEK and LPOKE shows
that the ?FC ERROR results from the segment number exceeding $3F,
which is a test for exceeding 512K, unless I've slipped a cognitive
cog somewhere.

Art

On Fri, Dec 6, 2013 at 11:15 PM, Mathieu Bouchard <matju at artengine.ca> wrote:
> Le 2013-12-06 à 22:36:00, Mathieu Bouchard a écrit :
>
>> Le 2013-12-06 à 18:34:00, Arthur Flexser a écrit :
>>
>>> 10 LPOKE &H22345,99:LPOKE &H12345,23
>>> 20 P=LPEEK(&H22345):IF P=23 THEN PRINT "UH-OH" ELSE IF P=99 THEN PRINT
>>> "LOOKS GOOD SO FAR" ELSE PRINT "HUH??"
>>
>>
>> Doesn't a simple LPEEK do the job ? LPEEK and LPOKE do a ?FC ERROR if the
>> address is too far.
>
>
> Actually, I'm really not sure, and I don't have the means to try it. My real
> box hasn't been opened since 1987, whereas the emulator pretends that I
> didn't tell it to have only 128K.
>
> Hmmm, now I just opened the case. Damn, I just voided my warranty ! :-P I
> have a « Disto Canada » RAM too. But I can't try, because if I remove it,
> I'll have 0k of RAM.
>
>
>  ______________________________________________________________________
> | Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>



More information about the Coco mailing list