bufseg dseg word public next_buffer equ word ptr .0 buffer_length equ word ptr .2 margin equ 0 ;needed in files memsize equ word ptr .4 toptop equ word ptr .6 topbot equ word ptr .8 bottop equ word ptr .10 botbot equ word ptr .12 linecount equ word ptr .14 linesbefore equ word ptr .16 buffer_modified equ byte ptr .18 ;**************************************************************************** ; marks contains the marks, which is a count of characters from the beginning ; of the file. There are permanent (global) marks and temporary (local) ; marks. The permanent marks are accessible at all times, while the ; temporary marks are accessible only while they are on the top of the stack. ; There are a These marks are defined below. The actual number of temporary ; marks is given by the value of [temp_mark_count]-[temp_mark_base]. As you ; can see, this is initially zero. The number of marks is adjusted by ; calling stack_marks. ;**************************************************************************** MAX_MARKS equ 50 temp_mark_base equ byte ptr .19 ;first temporary mark temp_mark_count equ byte ptr .20 ;total number of temporary marks perm_mark_count equ byte ptr .21 ;number of permanent marks split_mark equ word ptr .22 ;mark used for split screen. mark_offset equ word ptr .24 marks_sp equ word ptr mark_offset+max_marks+max_marks bufseg_size equ (offset marks_sp)+max_marks+2