Subversion Repositories SvarDOS

Rev

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

Rev 1779 Rev 1780
Line 93... Line 93...
93
"pop ds" \
93
"pop ds" \
94
parm [ax dx] \
94
parm [ax dx] \
95
value [ax];
95
value [ax];
96
 
96
 
97
 
97
 
98
static void FCLOSE(unsigned short handle) {
98
static void FCLOSE(unsigned short handle);
99
  _asm {
99
 
100
    mov ah, 0x3e
100
#pragma aux FCLOSE = \
101
    mov bx, handle
101
"mov ah, 0x3E" \
102
    int 0x21
102
"int 0x21" \
-
 
103
modify [ax]  /* AX might contain an error code on failure */ \
103
  }
104
parm [bx]
104
}
-
 
105
 
105
 
106
 
106
 
107
static unsigned short FREAD(unsigned short handle, void *buff, unsigned short bytes) {
107
static unsigned short FREAD(unsigned short handle, void *buff, unsigned short bytes) {
108
  unsigned short buff_seg = FP_SEG(buff);
108
  unsigned short buff_seg = FP_SEG(buff);
109
  unsigned short buff_off = FP_OFF(buff);
109
  unsigned short buff_off = FP_OFF(buff);