Lines Matching refs:ax
73 #define set_err(err) mov $err, %ax
110 mov %ax, %ds
111 mov %ax, %es
112 mov %ax, %ss
127 mov bpb_res_sectors(%bp), %ax
141 movzbw bpb_FATs(%bp), %ax /* Count of FATs */
142 mulw bpb_FAT_secs(%bp) /* FAT size in %dx:%ax */
144 xchg %ax,%dx /* FAT size now in %edx */
155 mov bpb_root_dir_ents(%bp), %ax
160 adc $0, %ax /* and round up the division */
164 push %ax /* Sectors in root directory */
190 push %ax
204 movw %ax, sec_p_cl_w(%bp)
205 add %ax, %ax
208 shr $1, %ax /* ... to shift */
212 movw %es:(26-11)(%di), %ax /* Cluster number for file start */
217 mov %ax, %bx /* Save cluster number */
228 mov bpb_bytes_per_sec(%bp), %ax
229 shr $4, %ax /* x86 segment count */
230 shl %cl, %ax /* for a cluster */
231 add %ax, %di
234 mov %bx, %ax /* Recover cluster number */
236 shr $1, %ax
238 add %ax, %bx
239 mov fat_buffer(%bx), %ax
242 1: add %ax, %bx
243 mov fat_buffer(%bx), %ax
244 shr $4, %ax
246 cmp $0x0fff, %ax
254 cmp %ax, fat_cache
258 mov %ax, fat_cache
260 shl $1, %ax
272 cmp $0xfff0, %ax
277 mov $0x1000, %ax
278 mov %ax, %es
295 pop %ax /* Save rtn addr */
298 push %ax /* restack rtn addr */
299 pushal /* Save everything except %si and %ax*/