Lines Matching refs:regs
101 void BIOSCALL int70_function(pusha_regs_t regs, uint16_t ds, uint16_t es, iret_addr_t iret_addr)
148 void BIOSCALL int1a_function(pusha_regs_t regs, uint16_t ds, uint16_t es, iret_addr_t iret_addr)
153 regs.u.r16.ax, regs.u.r16.bx, regs.u.r16.cx, regs.u.r16.dx, ds);
156 switch (regs.u.r8.ah) {
159 regs.u.r16.cx = BiosData->ticks_high;
160 regs.u.r16.dx = BiosData->ticks_low;
161 regs.u.r8.al = BiosData->midnight_flag;
170 BiosData->ticks_high = regs.u.r16.cx;
171 BiosData->ticks_low = regs.u.r16.dx;
174 regs.u.r8.ah = 0;
184 regs.u.r8.dh = inb_cmos(0x00); // Seconds
185 regs.u.r8.cl = inb_cmos(0x02); // Minutes
186 regs.u.r8.ch = inb_cmos(0x04); // Hours
187 regs.u.r8.dl = inb_cmos(0x0b) & 0x01; // Stat Reg B
188 regs.u.r8.ah = 0;
189 regs.u.r8.al = regs.u.r8.ch;
208 outb_cmos(0x00, regs.u.r8.dh); // Seconds
209 outb_cmos(0x02, regs.u.r8.cl); // Minutes
210 outb_cmos(0x04, regs.u.r8.ch); // Hours
212 val8 = (inb_cmos(0x0b) & 0x60) | 0x02 | (regs.u.r8.dl & 0x01);
215 regs.u.r8.ah = 0;
216 regs.u.r8.al = val8; // val last written to Reg B
221 regs.u.r8.ah = 0;
226 regs.u.r8.cl = inb_cmos(0x09); // Year
227 regs.u.r8.dh = inb_cmos(0x08); // Month
228 regs.u.r8.dl = inb_cmos(0x07); // Day of Month
229 regs.u.r8.ch = inb_cmos(0x32); // Century
230 regs.u.r8.al = regs.u.r8.ch;
250 outb_cmos(0x09, regs.u.r8.cl); // Year
251 outb_cmos(0x08, regs.u.r8.dh); // Month
252 outb_cmos(0x07, regs.u.r8.dl); // Day of Month
253 outb_cmos(0x32, regs.u.r8.ch); // Century
256 regs.u.r8.ah = 0;
257 regs.u.r8.al = val8; // AL = val last written to Reg B
273 regs.u.r16.ax = 0;
283 outb_cmos(0x01, regs.u.r8.dh); // Seconds alarm
284 outb_cmos(0x03, regs.u.r8.cl); // Minutes alarm
285 outb_cmos(0x05, regs.u.r8.ch); // Hours alarm
306 regs.u.r8.ah = 0;
307 regs.u.r8.al = val8; // val last written to Reg B
312 BX_DEBUG_INT1A("int1a: AX=%04x unsupported\n", regs.u.r16.ax);