Post Created date
Confusing behaviour of pointers
I'm going to question the purpose of declaring __hp1 and __hp2 as pointers in the first place. Why not simply make them instances of struct __heaplist like this? struct...
Thursday, 11 January 2018 - 15:52
Preemptive vs. Cooperative Multitasking
That appears to use the same technique as Protothreads, which was first released in 2005.
Friday, 22 December 2017 - 15:32
Linked Lists & ISRs
aarcane wrote: It won't perform an out of bounds read on the actual internal array named Buffer, but it will allow you to read past the end of the circular buffer data type to the...
Wednesday, 6 December 2017 - 23:41
Linked Lists & ISRs
aarcane wrote:That code is beautiful, but it leaves some interesting loopholes, such as double reading from the buffer, I don't see any double reading from the buffer. Which...
Wednesday, 6 December 2017 - 23:07
RET after doing BRCC
The "DEC" instruction doesn't affect the "C" flag. You have an infinite loop if carry is clear before the loop starts.
Monday, 4 December 2017 - 17:36
Write Arduino conditional branches in AVR ASM
sparrow2 wrote: One of the benefits with ASM is that you can evaluate in the order you want and that way speed the code up. in your example it could be that j very often is above...
Monday, 4 December 2017 - 15:54
Weird Debouncing Mistake ATmega328p
You can condense each test to something like this: press_down = (PINC & (1 << PINC3)) == 0; 
Friday, 17 November 2017 - 16:34
$1 MCU review — looking for AVR part suggestions
Wow! That's a very impressive write-up.   There seems to be an inconsistency between the chart and your writing.   You wrote:   Unfortunately, the STC8 simply does...
Wednesday, 15 November 2017 - 00:12
This is a goodian, tcp lost packets
I find The TCP/IP Guide to be a very useful and detailed guide to TCP/IP.   See the chapter TCP Segment Retransmission Timers and the Retransmission Queue...
Saturday, 4 November 2017 - 00:09
This is a goodian, tcp lost packets
To detect lost packets, you have to use a retransmission timer. If you don't receive an acknowledgment for a sequence number before the retransmission timer expires, send the...
Saturday, 4 November 2017 - 00:00
This is a goodian, tcp lost packets
A TCP receiver will acknowledge a sequence number only when it has received all bytes up to (but not including) that sequence number.   Say a host receives two packets with...
Friday, 3 November 2017 - 23:53
Advanced macro technology
This is starting to sound like an XY problem.
Thursday, 26 October 2017 - 16:01