; BOTTOM.ASM for E32 - Copyright (C) 1994 Douglas Herr ; all rights reserved ; ; this moves the cursor to the bottom of the file ; include model.inc public bottom extrn locate:near ;extrn home:near extrn rowcount:near include dataseg.inc extrn filesiz:dword ; file size extrn dirty_bits:byte extrn left_margin:word extrn rows:byte extrn cursor:dword extrn count_rows:byte, saved_pos:word extrn count_start:dword extrn count_bytes:dword extrn display_mode:byte @curseg ends include codeseg.inc bottom proc near push ds pop es ; update count_start mov eax,cursor mov count_start,eax mov left_margin,0 ; set window to start of line mov esi,filesiz mov dh,rows or dirty_bits,1 ; redraw screen call locate mov al,display_mode test al,al jnz exit ; done if hex display mode mov saved_pos,-1 mov eax,cursor sub eax,count_start mov count_bytes,eax call rowcount exit: ret bottom endp @curseg ends end