Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #1554

Re: Resolved!, was Re: Uthernet receive error: bytes swapped

From D Finnigan <dog_cow@macgui.com>
Newsgroups comp.sys.apple2.programmer
Subject Re: Resolved!, was Re: Uthernet receive error: bytes swapped
Date 2015-03-07 17:37 +0000
Organization Mac GUI
Message-ID <dog_cow-1425749863@macgui.com> (permalink)
References <dog_cow-1425155060@macgui.com> <dog_cow-1425329291@macgui.com> <27094031-e746-4e9d-a0a4-e81ef6f82c44@googlegroups.com> <dog_cow-1425601864@macgui.com> <mdb1a6$bgi$1@dont-email.me>

Show all headers | View raw


David Schmidt wrote:
> On 3/5/2015 7:30 PM, D Finnigan wrote:
>> I'm not really interested in
>> looking into exactly what it was doing, just surprised that it was giving
>> correct results in its broken state.
> 
> You know what they say... even a broken [analog] clock is right twice a
> day.

A great saying that is applicable in so many scenarios! :-)

I've had some time to think about what was going wrong. I haven't actually
looked at the source yet to confirm, but I know I was using indexed Y
addressing by starting Y at decimal 19, then working down to 0. Now with the
loop going on twice as long, Y was rolling over beyond 0 and was ending up
at $EC or $ED. That would put it at the end of the first page of the receive
buffer. Depending on the length of the packets received so far, that either
would have been a lot of zeros, or it would have been the tail of previous
packets.

It's a newbie mistake, but since it was giving correct results more often
than not, it was tricky.

-- 
]DF$
Apple II Book: http://macgui.com/newa2guide/
Usenet: http://macgui.com/usenet/  <-- get posts by email!
Apple II Web & Blog hosting: http://a2hq.com/

Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Uthernet receive error: bytes swapped D Finnigan <dog_cow@macgui.com> - 2015-02-28 20:23 +0000
  Re: Uthernet receive error: bytes swapped David Schmenk <dschmenk@gmail.com> - 2015-02-28 12:58 -0800
  Re: Uthernet receive error: bytes swapped a2retrosystems@gmail.com - 2015-02-28 16:20 -0800
    Re: Uthernet receive error: bytes swapped D Finnigan <dog_cow@macgui.com> - 2015-03-01 00:34 +0000
      Re: Uthernet receive error: bytes swapped a2retrosystems@gmail.com - 2015-02-28 17:17 -0800
      Re: Uthernet receive error: bytes swapped David Schmidt <schmidtd@my-deja.com> - 2015-02-28 21:58 -0500
  Re: Uthernet receive error: bytes swapped ol.sc@web.de (Oliver Schmidt) - 2015-03-01 14:33 +0000
    Re: Uthernet receive error: bytes swapped David Schmenk <dschmenk@gmail.com> - 2015-03-01 12:15 -0800
  Resolved!, was Re: Uthernet receive error: bytes swapped D Finnigan <dog_cow@macgui.com> - 2015-03-02 20:47 +0000
    Re: Resolved!, was Re: Uthernet receive error: bytes swapped gids.rs@sasktel.net - 2015-03-02 16:14 -0800
      Re: Resolved!, was Re: Uthernet receive error: bytes swapped D Finnigan <dog_cow@macgui.com> - 2015-03-06 00:30 +0000
        Re: Resolved!, was Re: Uthernet receive error: bytes swapped David Schmidt <schmidtd@my-deja.com> - 2015-03-05 20:53 -0500
          Re: Resolved!, was Re: Uthernet receive error: bytes swapped D Finnigan <dog_cow@macgui.com> - 2015-03-07 17:37 +0000
        Re: Resolved!, was Re: Uthernet receive error: bytes swapped David Schmenk <dschmenk@gmail.com> - 2015-03-06 07:21 -0800
          Re: Resolved!, was Re: Uthernet receive error: bytes swapped D Finnigan <dog_cow@macgui.com> - 2015-03-07 17:31 +0000

csiph-web