added to ata.c just before return -2 in check_registers();

lcd_putsf(0,4,"0x%x 0x%x", ATA_IN8(ATA_NSECTOR), TEST_PATTERN1);
lcd_putsf(0,5,"0x%x 0x%x", ATA_IN8(ATA_SECTOR), TEST_PATTERN2);
lcd_putsf(0,6,"0x%x 0x%x", ATA_IN8(ATA_LCYL), TEST_PATTERN3);
lcd_putsf(0,7,"0x%x 0x%x", ATA_IN8(ATA_HCYL), TEST_PATTERN4);

Output:

0xFFA5 0xA5
0xFF5A 0x5A
0xFFAA 0xAA
0xFF55 0x55