Lines Matching refs:val8
87 uint8_t val8 = read_byte(0x0040, 0x003e);
88 if (val8 & 0x80)
89 return val8 & ~0x7f;
107 uint8_t val8 = read_byte(0x0040, 0x0040);
108 if (val8 == 0) {
113 val8 = read_byte(0x0040, 0x003e);
114 if (val8 & 0x80) {
115 write_byte(0x0040, 0x003e, val8 & 0x7f);
116 return val8;
126 uint8_t val8;
129 val8 = inb(0x03f2);
130 outb(0x03f2, val8 & ~0x04);
131 outb(0x03f2, val8 | 0x04);
135 val8 = inb(0x3f4);
136 } while ( (val8 & 0xc0) != 0x80 );
141 uint8_t val8, dor, prev_reset;
144 val8 = read_byte(0x0040, 0x003e);
145 val8 &= 0x7f;
146 write_byte(0x0040, 0x003e, val8);
162 val8 = read_byte(0x0040, 0x008b);
163 val8 >>= 6;
164 outb(0x03f7, val8);
168 val8 = inb(0x3f4);
169 } while ( (val8 & 0xc0) != 0x80 );
177 val8 = read_byte(0x0040, 0x003e);
178 } while ( (val8 & 0x80) == 0 );
179 val8 &= 0x7f;
182 val8 = floppy_wait_for_interrupt(); /* (7th bit cleared in ret val) */
184 write_byte(0x0040, 0x003e, val8);
190 uint8_t val8;
193 val8 = read_byte(0x0040, 0x003e); // diskette recal status
195 val8 >>= 1;
196 val8 &= 0x01;
197 if (val8 == 0)
204 val8 = read_byte(0x0040, media_state_offset);
205 val8 = (val8 >> 4) & 0x01;
206 if (val8 == 0)
216 uint8_t val8;
233 val8 = (read_byte(0x0040, 0x003e) & 0x80);
234 } while ( val8 == 0 );
236 val8 = 0; // separate asm from while() loop
256 uint8_t val8;
271 val8 = (read_byte(0x0040, 0x003e) & 0x80);
272 } while ( val8 == 0 );
274 val8 = 0; // separate asm from while() loop
279 val8 = read_byte(0x0040, 0x003e);
280 val8 &= 0x7f;
282 val8 = floppy_wait_for_interrupt(); /* (7th bit cleared in ret val) */
287 val8 |= 0x02; // Drive 1 calibrated
290 val8 |= 0x01; // Drive 0 calibrated
293 write_byte(0x0040, 0x003e, val8);
453 uint8_t page, mode_register, val8, media_state;
497 val8 = read_byte(0x0000, 0x0441);
498 SET_AH(val8);
499 if (val8) {
623 val8 = read_byte(0x0040, 0x0040);
624 if (val8 == 0) {
632 val8 = (read_byte(0x0040, 0x003e) & 0x80);
633 } while ( val8 == 0 );
635 val8 = 0; // separate asm from while() loop
640 val8 = read_byte(0x0040, 0x003e);
641 val8 &= 0x7f;
642 write_byte(0x0040, 0x003e, val8);
645 val8 = floppy_wait_for_interrupt_or_timeout();
646 if (val8 == 0) { /* Note! Interrupts enabled in this branch. */
657 val8 = inb(0x3f4);
658 if ( (val8 & 0xc0) != 0xc0 )
760 val8 = read_byte(0x0040, 0x0040);
761 if (val8 == 0) {
769 val8 = (read_byte(0x0040, 0x003e) & 0x80);
770 } while ( val8 == 0 );
772 val8 = 0; // separate asm from while() loop @todo: why??
777 val8 = read_byte(0x0040, 0x003e);
778 val8 &= 0x7f;
779 write_byte(0x0040, 0x003e, val8);
781 val8 = floppy_wait_for_interrupt_or_timeout();
782 if (val8 == 0) { /* Note! Interrupts enabled in this branch. */
793 val8 = inb(0x3f4);
794 if ( (val8 & 0xc0) != 0xc0 )
927 val8 = read_byte(0x0040, 0x0040);
928 if (val8 == 0) {
935 val8 = (read_byte(0x0040, 0x003e) & 0x80);
936 } while ( val8 == 0 );
938 val8 = 0; // separate asm from while() loop
943 val8 = read_byte(0x0040, 0x003e);
944 val8 &= 0x7f;
945 write_byte(0x0040, 0x003e, val8);
947 val8 = floppy_wait_for_interrupt_or_timeout();
948 if (val8 == 0) { /* Note! Interrupts enabled in this branch. */
958 val8 = inb(0x3f4);
959 if ( (val8 & 0xc0) != 0xc0 )
1123 val8 = GET_AL();
1125 BX_DEBUG_INT13_FL("floppy f17 - drive: %d, format type: %d\n", drive, val8);
1149 switch (val8) {
1191 val8 = GET_CL();
1192 num_sectors = val8 & 0x3f; // max sector number per cylinder
1193 track = ((val8 >> 6) << 8) + GET_CH(); // max cylinder number (max cylinders - 1)
1318 uint8_t val8;
1324 val8 = read_byte(0x0000, 0x0441);
1325 SET_AH(val8);
1326 if (val8) {
1343 uint8_t val8, DOR, ctrl_info;
1367 val8 = inb(0x03f4) & 0x80; // Main Status Register
1368 if (val8 != 0x80)