Subversion Repositories HelenOS-historic

Rev

Rev 353 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 353 Rev 356
Line 155... Line 155...
155
#	handler 128 192
155
#	handler 128 192
156
#	handler 192 256
156
#	handler 192 256
157
h_end:
157
h_end:
158
 
158
 
159
 
159
 
160
## I/O input (byte)
-
 
161
#
-
 
162
# Get a byte from I/O port and store it AL.
-
 
163
#
-
 
164
inb:
-
 
165
	xorl %eax,%eax
-
 
166
	movl 4(%esp),%edx
-
 
167
	inb %dx,%al
-
 
168
	ret
-
 
169
 
-
 
170
 
-
 
171
## I/O input (word)
-
 
172
#
-
 
173
# Get a word from I/O port and store it AX.
-
 
174
#
-
 
175
inw:
-
 
176
	xorl %eax,%eax
-
 
177
	movl 4(%esp),%edx
-
 
178
	inw %dx,%ax
-
 
179
	ret
-
 
180
 
-
 
181
 
-
 
182
## I/O input (dword)
-
 
183
#
-
 
184
# Get a dword from I/O port and store it EAX.
-
 
185
#
-
 
186
inl:
-
 
187
	xorl %eax,%eax
-
 
188
	movl 4(%esp),%edx
-
 
189
	inl %dx,%eax
-
 
190
	ret
-
 
191
 
-
 
192
 
-
 
193
## Copy memory
160
## Copy memory
194
#
161
#
195
# Copy a given number of bytes (3rd argument)
162
# Copy a given number of bytes (3rd argument)
196
# from the memory location defined by 2nd argument
163
# from the memory location defined by 2nd argument
197
# to the memory location defined by 1st argument.
164
# to the memory location defined by 1st argument.