?? io_port.asm.svn-base
字號:
; $Id: io_port.asm,v 1.1.1.1 2002/09/20 20:40:32 gal Exp $;*****************************************************************************;* Betriebssysteme *;*---------------------------------------------------------------------------*;* *;* I O _ P O R T *;* *;*---------------------------------------------------------------------------*;* Die hier definierten Funktionen stellen die Maschinebefehle 'in' und *;* 'out' fuer die Klasse IO_Port zur Verfuegung. *;*****************************************************************************; EXPORTIERTE FUNKTIONEN[GLOBAL outb][GLOBAL outw][GLOBAL inb][GLOBAL inw]; IMPLEMENTIERUNG DER FUNKTIONEN[SECTION .text] ; OUTB: Byteweise Ausgabe eines Wertes ueber einen I/O-Port.;; C-Prototyp: void outb (int port, int value);outb: push ebp mov ebp,esp mov edx,[8+ebp] mov eax,[12+ebp] out dx,al pop ebp ret; OUTW: Wortweise Ausgabe eines Wertes ueber einen I/O-Port.;; C-Prototyp: void outw (int port, int value);outw: push ebp mov ebp,esp mov edx,[8+ebp] mov eax,[12+ebp] out dx,ax pop ebp ret; INB: Byteweises Einlesen eines Wertes ueber einen I/O-Port.;; C-Prototyp: int inb (int port);inb: push ebp mov ebp,esp mov edx,[8+ebp] xor eax,eax in al,dx pop ebp ret; INW: Wortweises Einlesen eines Wertes ueber einen I/O-Port.;; C-Prototyp: int inw (int port);inw: push ebp mov ebp,esp mov edx,[8+ebp] xor eax,eax in ax,dx pop ebp ret
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -