diff --git a/geoIrcChat.txt b/geoIrcChat.txt index 8fa2233..0002546 100644 --- a/geoIrcChat.txt +++ b/geoIrcChat.txt @@ -639,7 +639,7 @@ readMsg: PushW a2 ;pointer into data buffer rts ; ----------------------------------------------------------- ; Get size of network packet to request if not at start of buffer. -; reqSize = bufEnd - next stmt +; reqSize = bufEnd - next stmt + 1 ; pass: a3, next read location ; return: reqSize, packet size to request ; ----------------------------------------------------------- @@ -650,7 +650,10 @@ getReqSz: lda #[bufEnd lda #]bufEnd sbc a3H sta reqSize+1 - rts + inc reqSize + bne 10$ + inc reqSize+1 +10$ rts ; ----------------------------------------------------------- ; Check if we have reached the end of the data in the buffer. ; pass: a2, pointer for current stmt diff --git a/geoIrcDat.txt b/geoIrcDat.txt index db113df..862c308 100644 --- a/geoIrcDat.txt +++ b/geoIrcDat.txt @@ -232,7 +232,6 @@ curMod: .block 1 ;currently loaded VLIR mod tempMod: .block 1 ;for swapMod bServer: .block 4 bPort: .block 2 -ipData: .block PKTSIZE ;IP payload data chatting: .byte 0 ;chat loop in progress? debug: .byte 1 ;debug output enabled? motd: .byte 1 ;show MOTD messages?