Changeset 105 in xtideuniversalbios for trunk/Assembly_Library/Src/File
- Timestamp:
- Feb 17, 2011, 2:52:42 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/File/FileIO.asm
r67 r105 1 ; File name : FileIO.asm2 1 ; Project name : Assembly Library 3 ; Created date : 1.9.20104 ; Last update : 6.12.20105 ; Author : Tomi Tilli6 2 ; Description : Functions for file access. 7 3 … … 175 171 ALIGN JUMP_ALIGN 176 172 .TransferNextBytes: 177 call Registers_NormalizeDSSI173 call NormalizeDSSI 178 174 call bp ; Transfer function 179 175 jc SHORT .ErrorOccurredDuringTransfer … … 184 180 pop cx ; CX = Bytes for last transfer 185 181 jcxz .ReturnErrorCodeInAX ; No remaining bytes 186 call Registers_NormalizeDSSI182 call NormalizeDSSI 187 183 call bp 188 184 .ReturnErrorCodeInAX: … … 195 191 pop cx ; Remove bytes for last transfer 196 192 jmp SHORT .ReturnErrorCodeInAX 193 194 ;-------------------------------------------------------------------- 195 ; NormalizeDSSI 196 ; Parameters 197 ; DS:SI: Ptr to normalize 198 ; Returns: 199 ; DS:SI: Normalized pointer 200 ; Corrupts registers: 201 ; Nothing 202 ;-------------------------------------------------------------------- 203 ALIGN JUMP_ALIGN 204 NormalizeDSSI: 205 push dx 206 push ax 207 NORMALIZE_FAR_POINTER ds, si, ax, dx 208 pop ax 209 pop dx 210 ret 197 211 198 212
Note:
See TracChangeset
for help on using the changeset viewer.