Home | History | Annotate | Download | only in tests

Lines Matching refs:regs

39 void int10ax0003(struct REGPACK *regs)

41 regs->r_ax=0x0003;
42 intr(0x10,regs);
45 void int10ax02(struct REGPACK *regs)
47 regs->r_ax=0x0200;
48 regs->r_bx=0x0000;
49 regs->r_dx=0x1710;
50 intr(0x10,regs);
54 void int10ax03(struct REGPACK *regs)
56 regs->r_ax=0x0300;
57 regs->r_bx=0x0000;
58 intr(0x10,regs);
59 printf("\nCursor is ax%04x cx%04x dx%04x\n",regs->r_ax,regs->r_cx,regs->r_dx);
62 void int10ax0501(struct REGPACK *regs)
64 regs->r_ax=0x0501;
65 intr(0x10,regs);
66 regs->r_ax=0x0e61;
67 regs->r_bx=0x0000;
68 intr(0x10,regs);
72 void int10ax0602(struct REGPACK *regs)
74 regs->r_ax=0x0602;
75 regs->r_bx=0x0700;
76 regs->r_cx=0x0101;
77 regs->r_dx=0x0a0a;
78 intr(0x10,regs);
82 void int10ax0702(struct REGPACK *regs)
84 regs->r_ax=0x0702;
85 regs->r_bx=0x0700;
86 regs->r_cx=0x0101;
87 regs->r_dx=0x0a0a;
88 intr(0x10,regs);
92 void int10ax08(struct REGPACK *regs)
94 regs->r_ax=0x0800;
95 regs->r_bx=0x0000;
96 intr(0x10,regs);
99 void int10ax09(struct REGPACK *regs)
102 regs->r_ax=0x0501;
103 intr(0x10,regs);
106 regs->r_ax=0x0961+attr;
107 regs->r_bx=0x0100+attr;
108 regs->r_cx=0x0016;
109 intr(0x10,regs);
114 void int10ax0a(struct REGPACK *regs)
116 regs->r_ax=0x0501;
117 intr(0x10,regs);
118 regs->r_ax=0x0a62;
119 regs->r_bx=0x0101;
120 regs->r_cx=0x0016;
121 intr(0x10,regs);
124 void int10ax0f(struct REGPACK *regs)
126 regs->r_ax=0x0501;
127 intr(0x10,regs);
128 regs->r_ax=0x0f00;
129 intr(0x10,regs);
132 void int10ax1b(struct REGPACK *regs)
137 regs->r_ax=0x0501;
138 intr(0x10,regs);
139 regs->r_ax=0x1b00;
140 regs->r_bx=0x0000;
142 regs->r_es=FP_SEG(ptable);
143 regs->r_di=FP_OFF(ptable);
144 printf("Read state info in %04x:%04x\n",regs->r_es,regs->r_di);
145 intr(0x10,regs);
156 void int10ax13(struct REGPACK *regs)
161 regs->r_ax=0x1300;
162 regs->r_bx=0x000b;
163 regs->r_dx=0x1010;
164 regs->r_cx=0x0002;
165 regs->r_es=FP_SEG(pvar);
166 regs->r_bp=FP_OFF(pvar);
167 pokeb(regs->r_es,regs->r_bp,'t');
168 pokeb(regs->r_es,regs->r_bp+1,'b');
169 printf("Writing from %04x:%04x\n",regs->r_es,regs->r_bp);
170 intr(0x10,regs);
174 void switch_50(struct REGPACK *regs)
176 regs->r_ax=0x1202;
177 regs->r_bx=0x3000;
178 intr(0x10,regs);
179 regs->r_ax=0x0003;
180 intr(0x10,regs);
181 regs->r_ax=0x1112;
182 regs->r_bx=0x0000;
183 intr(0x10,regs);
186 char exec_function(struct REGPACK *regs)
208 int10ax0003(regs);
211 int10ax02(regs);
214 int10ax03(regs);
217 int10ax0501(regs);
220 int10ax0602(regs);
223 int10ax0702(regs);
226 int10ax08(regs);
229 int10ax09(regs);
232 int10ax0a(regs);
235 int10ax0f(regs);
238 int10ax1b(regs);
241 int10ax13(regs);
246 switch_50(regs);
314 void show_regs(struct REGPACK *regs)
317 printf("ax %04x\t",regs->r_ax);
318 printf("bx %04x\t",regs->r_bx);
319 printf("cx %04x\t",regs->r_cx);
320 printf("dx %04x\t",regs->r_dx);
321 printf("ds %04x\t",regs->r_ds);
322 printf("si %04x\t",regs->r_si);
323 printf("es %04x\t",regs->r_es);
324 printf("di %04x\n",regs->r_di);
329 struct REGPACK regs;
331 regs.r_ax=0x0003;
332 intr(0x10,&regs);
339 struct REGPACK regs;
349 show_regs(&regs);
351 if(exec_function(&regs)!=0)break;