annotate level2/modules/kernel/fcrcmod.asm @ 3123:039ddb7c8ad7

l2 kernel: Remove tabs and trailing whitespace, align comments No functional change (no change to generated binaries).
author Neal Crook <foofoobedoo@gmail.com>
date Mon, 28 Nov 2016 08:31:26 +0000
parents 1451bc7ef0b9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1345
1da8ab9ba433 Added consistent comments to each system call
boisy
parents: 1145
diff changeset
1 **************************************************
1da8ab9ba433 Added consistent comments to each system call
boisy
parents: 1145
diff changeset
2 * System Call: F$CRCMod
1da8ab9ba433 Added consistent comments to each system call
boisy
parents: 1145
diff changeset
3 *
1da8ab9ba433 Added consistent comments to each system call
boisy
parents: 1145
diff changeset
4 * Function: Changes CRC module reporting
1da8ab9ba433 Added consistent comments to each system call
boisy
parents: 1145
diff changeset
5 *
1da8ab9ba433 Added consistent comments to each system call
boisy
parents: 1145
diff changeset
6 * Input: A = Flag (0 = report, 1 = CRC off, 2 = CRC on)
1da8ab9ba433 Added consistent comments to each system call
boisy
parents: 1145
diff changeset
7 *
1da8ab9ba433 Added consistent comments to each system call
boisy
parents: 1145
diff changeset
8 * Output: A = State (0 = CRC off, 1 = CRC on)
1da8ab9ba433 Added consistent comments to each system call
boisy
parents: 1145
diff changeset
9 *
1da8ab9ba433 Added consistent comments to each system call
boisy
parents: 1145
diff changeset
10 * Error: CC = C bit set; B = error code
1da8ab9ba433 Added consistent comments to each system call
boisy
parents: 1145
diff changeset
11 *
1145
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
12 FCRCMod lda R$A,u do they want a report or a toggle?
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
13 beq CRCRep a report only
1387
1451bc7ef0b9 Updates source comments
boisy
parents: 1345
diff changeset
14 deca check for OFF
1451bc7ef0b9 Updates source comments
boisy
parents: 1345
diff changeset
15 bne GoCRCon no, must be on
1451bc7ef0b9 Updates source comments
boisy
parents: 1345
diff changeset
16 fcb $8C skip 2 bytes, saves 3 bytes of memory
1145
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
17 GoCRCon lda #$1 CRC checking on
1387
1451bc7ef0b9 Updates source comments
boisy
parents: 1345
diff changeset
18 sta <D.CRC turn CRC checking on
1145
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
19 CRCRep lda <D.CRC get current CRC flag for return
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
20 CRCRep2 sta R$A,u save it to their register stack
3123
039ddb7c8ad7 l2 kernel: Remove tabs and trailing whitespace, align comments
Neal Crook <foofoobedoo@gmail.com>
parents: 1387
diff changeset
21 clrb no error
1145
ca83286ded5b Start of new OS-9 L2 Kernel
boisy
parents:
diff changeset
22 rts and exit