It's writing 4 bytes out through the low speed serial out to a peripheral chip, waiting some time with shrw, then reading the 4 reply bytes from the low speed serial in. If two reply bytes don't match the sent bytes, loop until they do and save the other two bytes.BOOSTEDEVERYTHING wrote: ↑2024 Dec 03, 08:08 Another question, which may be a stupid question, so please excuse me if it is... What is this sub actually doing?Code: Select all
Sxx994BA_RZAxxxxx_:
Once these are understood, you would have a better idea of what to name it.
Code: Select all
# Call from L9870B Sub_983ae
# SCall from L9954D Sub_99504
# SCall from L99581 Sub_99504
# SCall from L995B6 Sub_99504
# SCall from L995EB Sub_99504
# SCall from L9964E Sub_99606
# SCall from L996B9 Sub99673
Code: Select all
994ce: 08,05,00 shrw R0,5 ZERO = 5;
994d1: 08,05,00 shrw R0,5 ZERO = 5;
994da: 08,09,00 shrw R0,9 ZERO = 9;
994dd: 08,09,00 shrw R0,9 ZERO = 9;
994e0: 08,0d,00 shrw R0,d ZERO = d;
994e3: 08,0d,00 shrw R0,d ZERO = d;