Answer
The Ex__6_checksum_tests.asm
file implements the following checksum test code:
; Ex__6_checksum_tests.asm ; Try running this code at https://skilldrick.github.io/easy6502/ ; After tests complete, A=$AA if success, A=$EE if error detected ; Store the address of the data array in $10-$11 LDA #$00 STA $10 STA $11 ; ============================================== ; Test 1: 1 byte; Checksum: 00 Checksum should pass? Yes LDA #$00 STA $00 ; Store the number of bytes in X LDX #1 ; Call the checksum calculation subroutine JSR CALC_CKSUM CMP #$01 BEQ TEST2 JMP ERROR TEST2: ; ============================================== ; Test 2: 1 byte; Checksum: 01 Checksum should pass? No LDA #$01 STA $00 ; Store the number of bytes in X LDX #1 ; Call the checksum calculation subroutine JSR CALC_CKSUM CMP #$00 BEQ TEST3 JMP ERROR TEST3: ; ============================================== ; Test 3: 2 bytes: 00 Checksum: 00 Checksum should pass? Yes LDA #$00 STA $00 STA $01 ; Store the number of bytes...