Menu

#83 TCPIPReadTCP and rrMoreFlag

Reproducable
open
None
1
2023-08-05
2022-12-13
No

I.TCP.S, READTCP:NORETURN

 LDY #rrMoreFlag
 LDA :WORKLEN
 STA [tcRESPONSEBUFFPTR],Y
 INY
 INY
 LDA :WORKLEN+2
 STA [tcRESPONSEBUFFPTR],Y
 ```

 This is attempting to use the `:WORKLEN` (which is the handle size) to set the `rrMoreFlag` field.  However, `rrMoreFlag` is 16-bit so it overflows into `rrPushFlag`.

I would expect something like:

LDY #rrMoreFlag
LDA :WORKLEN
ORA :WORKLEN+2
STA [tcRESPONSEBUFFPTR],Y
```

Discussion

  • Andrew Roughan

    Andrew Roughan - 2023-08-05
    • assigned_to: Andrew Roughan
    • Priority: 5 --> 1
     
  • Andrew Roughan

    Andrew Roughan - 2023-08-05
     
  • Kelvin Sherlock

    Kelvin Sherlock - 2023-08-05

    It is a duplicate :)

     

Log in to post a comment.