Lines Matching refs:ax
103 mov ax, #0x0100
106 mov ax, dx
108 push ax
110 mov ax, # VBE_DISPI_INDEX_BANK
111 out dx, ax
112 pop ax
114 out dx, ax
115 in ax, dx
117 cmp dx, ax
119 mov ax, #0x004f
122 mov ax, #0x014f
130 mov ax, #0x0100
148 mov ax, # VBE_DISPI_INDEX_VIRT_WIDTH
149 out dx, ax
151 in ax, dx
152 movzx ecx, ax
155 mov ax, # VBE_DISPI_INDEX_BPP
156 out dx, ax
158 in ax, dx
159 movzx esi, ax
185 push ax
187 mov ax, # VBE_DISPI_INDEX_X_OFFSET
188 out dx, ax
189 pop ax
191 out dx, ax
194 mov ax, di
196 push ax
198 mov ax, # VBE_DISPI_INDEX_Y_OFFSET
199 out dx, ax
200 pop ax
202 out dx, ax
210 mov ax, #0x004f
214 mov ax, #0x014f
224 mov ax, # VBE_DISPI_INDEX_ID
225 out dx, ax
227 in ax, dx
233 push ax
235 mov ax, # VBE_DISPI_INDEX_ID
236 out dx, ax
237 pop ax
239 out dx, ax
250 push ax
254 mov ax, # VBE_DISPI_INDEX_XRES
255 out dx, ax
257 mov ax, 4[bp] ; xres
258 out dx, ax
261 pop ax
285 mov ax, # VBE_DISPI_INDEX_BPP
286 out dx, ax
288 in ax, dx
304 mov bx, ax
305 or ax, # VBE_DISPI_GETCAPS
308 mov ax, # VBE_DISPI_INDEX_XRES
309 out dx, ax
311 in ax, dx
312 push ax
313 mov ax, bx
315 pop ax
324 mov bx, ax
325 or ax, # VBE_DISPI_GETCAPS
328 mov ax, # VBE_DISPI_INDEX_BPP
329 out dx, ax
331 in ax, dx
332 push ax
333 mov ax, bx
335 pop ax
342 push ax
344 mov ax, # VBE_DISPI_INDEX_ENABLE
345 out dx, ax
346 pop ax
348 out dx, ax
355 mov ax, # VBE_DISPI_INDEX_ENABLE
356 out dx, ax
358 in ax, dx
364 push ax
366 mov ax, # VBE_DISPI_INDEX_BANK
367 out dx, ax
368 pop ax
370 out dx, ax
377 mov ax, # VBE_DISPI_INDEX_BANK
378 out dx, ax
380 in ax, dx
392 mov ax,dx
394 push ax
395 mov ax,# VBE_DISPI_INDEX_BANK
397 out dx,ax
398 pop ax
400 out dx,ax
401 in ax,dx
403 cmp dx,ax
405 mov ax, #0x004f
408 mov ax,# VBE_DISPI_INDEX_BANK
410 out dx,ax
412 in ax,dx
413 mov dx,ax
416 mov ax,#0x014F
424 push ax
426 mov ax, # VBE_DISPI_INDEX_X_OFFSET
427 out dx, ax
428 pop ax
430 out dx, ax
437 mov ax, # VBE_DISPI_INDEX_X_OFFSET
438 out dx, ax
440 in ax, dx
446 push ax
448 mov ax, # VBE_DISPI_INDEX_Y_OFFSET
449 out dx, ax
450 pop ax
452 out dx, ax
459 mov ax, # VBE_DISPI_INDEX_Y_OFFSET
460 out dx, ax
462 in ax, dx
467 push ax
470 mov bx, ax
480 out dx, ax
483 pop ax
489 push ax
491 mov ax, # VBE_DISPI_INDEX_VIRT_WIDTH
492 out dx, ax
493 pop ax
495 out dx, ax
502 mov ax, # VBE_DISPI_INDEX_VIRT_WIDTH
503 out dx, ax
505 in ax, dx
512 mov ax, # VBE_DISPI_INDEX_VIRT_HEIGHT
513 out dx, ax
515 in ax, dx
520 push ax
525 mov ax, # VBE_DISPI_INDEX_XRES
526 out dx, ax
528 in ax, dx
529 push ax
531 mov ax, #0x0011
532 out dx, ax
533 pop ax
534 push ax
535 shr ax, #3
536 dec ax
539 out dx, ax
540 pop ax
545 mov ax, # VBE_DISPI_INDEX_YRES
546 out dx, ax
548 in ax, dx
549 dec ax
550 push ax
554 out dx, ax
555 pop ax
573 mov ax, #0x0009
574 out dx, ax
594 mov ax, #0x0506
595 out dx, ax
597 mov ax, #0x0f02
598 out dx, ax
602 mov ax, # VBE_DISPI_INDEX_BPP
603 out dx, ax
605 in ax, dx
645 pop ax
688 mov ax, # BIOSMEM_SEG
689 mov ds, ax
702 mov ax, # VBE_DISPI_ID0
705 cmp ax, # VBE_DISPI_ID0
709 mov ax, # BIOSMEM_SEG
710 mov ds, ax
716 mov ax, # VBE_DISPI_ID5
732 test ax, ax
734 mov ax, #0xc000
735 mov ds, ax
739 mov ax, #0xc000
740 mov ds, ax
760 * AX = 4F00h
765 * AX = VBE Return Status
768 void vbe_biosfn_return_controller_information(AX, ES, DI)
769 Bit16u *AX;Bit16u ES;Bit16u DI;
781 status = read_word(ss, AX);
784 printf("VBE vbe_biosfn_return_vbe_info ES%x DI%x AX%x\n",ES,DI,status);
884 write_word(ss, AX, result);
891 * AX = 4F01h
895 * AX = VBE Return Status
898 void vbe_biosfn_return_mode_information(AX, CX, ES, DI)
899 Bit16u *AX;Bit16u CX; Bit16u ES;Bit16u DI;
953 write_word(ss, AX, result);
959 * AX = 4F02h
963 * AX = VBE Return Status
966 void vbe_biosfn_set_mode(AX, BX, ES, DI)
967 Bit16u *AX;Bit16u BX; Bit16u ES;Bit16u DI;
982 //result=read_word(ss,AX);
1043 write_word(ss, AX, result);
1049 * AX = 4F03h
1051 * AX = VBE Return Status
1058 mov ax, # BIOSMEM_SEG
1059 mov ds, ax
1061 and ax, # VBE_DISPI_ENABLED
1064 mov ax, [bx]
1065 mov bx, ax
1073 mov ax, #0x004f
1140 * AX = 4F04h
1147 * AX = VBE Return Status
1151 void vbe_biosfn_save_restore_state(AX, CX, DX, ES, BX)
1152 Bit16u *AX; Bit16u CX; Bit16u DX; Bit16u ES; Bit16u *BX;
1191 write_word(ss, AX, result);
1197 * AX = 4F05h
1210 * AX = VBE Return Status
1221 mov ax, #0x0100
1224 mov ax, dx
1227 cmp ax, dx
1229 mov ax, #0x004f
1233 mov dx, ax
1234 mov ax, #0x004f
1237 mov ax, #0x014f
1245 * AX = 4F06h
1255 * AX = VBE Return Status
1263 mov ax, cx
1269 mov ax, #0x0100
1272 push ax
1278 shl ax, #3
1282 pop ax
1291 mov cx, ax
1294 shr ax, #3
1298 mov bx, ax
1300 mov dx, ax
1301 mov ax, #0x004f
1309 * AX = 4F07h
1328 * AX = VBE Return Status
1349 ax, #0x0100
1352 mov ax, cx
1354 mov ax, dx
1356 mov ax, #0x004f
1360 mov cx, ax
1362 mov dx, ax
1364 mov ax, #0x004f
1372 * AX = 4F08h
1377 * AX = VBE Return Status
1385 mov ax, #0x0100
1393 or ax, # VBE_DISPI_8BIT_DAC
1396 and ax, #~ VBE_DISPI_8BIT_DAC
1402 and ax, # VBE_DISPI_8BIT_DAC
1406 mov ax, #0x004f
1409 mov ax, #0x014f
1417 * AX = 4F09h
1419 * AX = VBE Return Status
1423 void vbe_biosfn_set_get_palette_data(AX)
1428 * Input: AX = 4F0Ah VBE 2.0 Protected Mode Interface
1432 * Output: AX = Status
1447 mov ax, #0x004f
1450 mov ax, #0x014f