; Multiple checksum table handling .define next_checksum bss+0 .redefine bss bss+2 ; If PRINT_CHECKSUMS is defined, checksums are printed ; rather than compared. ; Initializes multiple checksum handler to use checksums ; table (defined by user). ; Preserved: BC, DE, HL checksums_init: ld a,checksums ld (next_checksum+1),a ret ; Compares current checksum with next checksum in ; list. Z if they match, NZ if not. ; Preserved: BC, DE, HL checksums_compare: .ifdef PRINT_CHECKSUMS lda checksum+3 push af lda checksum+2 push af lda checksum+1 push af lda checksum+0 push af ld a,(next_checksum) inc a ld (next_checksum),a sub