Category : Assembly Language Source Code
Archive   : COREAIDS.ZIP
Filename : ALOC_CHG.ASM

 
Output of file : ALOC_CHG.ASM contained in archive : COREAIDS.ZIP
; DESC: Modifies Allocated memory block size V1.00
; IN: *{BLOCK} segment address of memory block to be modified
; *{PARA} new requested block size in paragraphs {ie multiples
; of 16 bytes}
; SAMPLE: Callm ALOC_CHG,,
; #############################################################

Extrn PUSHALL:Near ;save registers.
Extrn POPALL:Near
Extrn ERRORMSG:Near ;display error messages.

ALOC_CHC Segment
Assume CS:ALOC_CHC
Public ALOC_CHG
;notice.
DB 'ALOC_CHG - V1.00, Copyright 1987, CoreTechs ',0DH,0AH

ALOC_CHG Proc Near
Call PUSHALL

Pop BX ;requested block size in para.
Pop ES ;segment of memory block.

Mov AH,4AH ;set memory block.
Int 21H
Jc ERROR ;if there is error report it.

Call POPALL
Ret

ERROR: Push AX ;report error, and abort.
Call ERRORMSG

ALOC_CHG Endp
ALOC_CHC Ends
End


  3 Responses to “Category : Assembly Language Source Code
Archive   : COREAIDS.ZIP
Filename : ALOC_CHG.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/