From 5f093e815a2ad9dcdd78a500d6d5d99fae1b85cf Mon Sep 17 00:00:00 2001 From: jonnosan Date: Mon, 17 Aug 2009 09:55:13 +0000 Subject: [PATCH] fix bug reported by ShadowM : udp_remove_listener was completely broken (whoops!) git-svn-id: http://svn.code.sf.net/p/netboot65/code@179 93682198-c243-4bdb-bd91-e943c89aac3b --- client/ip65/udp.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/ip65/udp.s b/client/ip65/udp.s index db5f313..83fb2a3 100644 --- a/client/ip65/udp.s +++ b/client/ip65/udp.s @@ -208,7 +208,8 @@ udp_remove_listener: stx port + 1 ldy udp_cbcount ; any listeners installed? - beq @notfound + beq @notfound + dey @check: lda udp_cbportlo,y ; check if port is handled cmp port @@ -216,9 +217,8 @@ udp_remove_listener: lda udp_cbporthi,y cmp port + 1 beq @remove -: iny - cpy udp_cbcount - bne @check +: dey + bpl @check @notfound: sec rts