intel 8271/8271-6 8271 Scan Command Example Assume there are only 2 records on track 0 with the following data: Record 01: 01 02 03 04 05 06 07 08 000....00 Record 02: 01 02 AA 55 00 00 00 00 ........ 00 ; {4 Field'"!| Starting | # of Completion Special Registers Command |Length | Sector # | Sectors Key?! Code™ | R06 |A14 | R13 Comment * SCAN EQ 2 1 1 01,02 SME 01 0 127D j Met in first field SCAN EQ 2 1 1 02.03 SNM x x x Not met SCAN EQ 2 1 1 FFIS| 05 SNM xX x x Not met with don’t care * SCAN EQ 2 1 1 FF?! 06 SME 01 0 123D | Met with don't care * SCAN EQ 2 1 2 AA,55 SME 02 0 125D | Met in Record 02 *" SCAN EQ 2 2 1 01,02 SME 02 0 127D | Starting sector # 1 " SCAN EQ 4 1 1 05 06,07 ,08 SME 01 0 121D | Field, Key length = 4 * SCAN GEQ 4 1 1 05 06,07 ,08 SME 01 0 121D |GEQ-SME SCAN GEQ 4 1 1 05,04.07,08 SMNE 01 0 121D | GEQ-SMNE SCAN GEQ| 4 1 2 00,03,AA.44'*'| SNM X X X | GEQ-SNM SCAN LEQ 4 1 1 01,03,FF,04 SMNE 01 0 125D |LEQ-SMNE SCAN LEQ 4 1 1 01,02, FF.04 SME 01 0 125D |LEQ-SME NOTES. 1. Field Length — Each record is partitioned into a number of fields equal to the record size divided by the field length. Note that the record size snouid be evenly divisabie by the field length to insure proper operation of multi record scan. Also, maximum field length = 256 bytes. 2. Key — The key is a string of bytes located 'n the user system memory. The key length should equai the field length. By programming the 8257 DMA Controller into the auto load mode, the key will be recursively read in by the chip (once per field). 3. Completion Code — Shows how Scan command was met or not met. SNM — SCAN Not Met — 0 0 (also Good Complete) SME — SCAN Met Equal — 0 1 SMNE — SCAN Met Not Equal — 1 0 4. Special Registers RO6 — This register contains the record number where the scan was met. R14 — This register contains the MSB count and is decremented every 128 characters. R14 = 2f. 1 Length ( f) (Initiatize at (07-D5 of PAR 2) Record Size Beginning of Record) 000 128 Bytes 0 001 256 Bytes 1 010 512 Bytes 3 o11 1024 Bytes 7 e e e e e e e e e R13 — This register contains a modulo 128 LSB count which is initialized to 128 at beginning of each record. This count is decremented after each character is compared except for the last character in a pattern match situation. 5 The OFFH character in the key is treated as a don't care character position. 6. The Scan comparison is done on a byte by byte basis. That ts, byte 1 of each field is compared to byte 1 of the key. byte 2 of each fieid is compared to byte 2 of the key, etc. AFN-00223B