Цитата Сообщение от zebest Посмотреть сообщение
по адресу 1Bh - контрольная сумма, как видно - разная, 79 - правильное число.
Считается с адреса 02h до адреса 1Ah включительно
I don't understand... I see (from address 02 to 1A)
Код:
      20 50 49 38 30 20
20 20 20 20 20 43 01 00
40 08 40 20 20 20 20 20
20 43 41
too lazy to do the full 8b math in head, but I see the low nibbles 9 + 8 + 3 + 1 + 8 + 3 + 1 = 33 mod 16 = 1

So the "9" in 79 doesn't make sense with "The checksum is calculated as the simple arithmetic sum of all bytes starting" - seems like some other formula is used in TASM.

Seems to me like XOR instead of add... let me try that.

https://github.com/z00m128/sjasmplus...m_checksum.asm

Yes, with XOR the result is $79.