Category : BASIC Source Code
Archive   : APBAS12.ZIP
Filename : ABSOLUTE.ASM
Page 60,130
; Created 10-17-1987 k. murray
;
Cseg Segment byte public 'Code'
Assume Cs:Cseg,Ds:nothing,Es:nothing
;
; Define in program:
; Sub Absolute Offset% External "absolute.com"
; Call in program:
; Absolute Adr%
;
; Stack frame:
; Sp+4 Adr. of offset
; Sp+2 Return Segment
; Sp+0 Return Offset
Start:
Absolute Proc Far
Pop Ax ; Get return offset
Pop Dx ; Get return segment
Pop Bx ; Address of offset%
Push Dx
Push Ax ; put return adr. back
Push Ds:[4] ; Push current Def Seg segment
Push [Bx] ; Push Offset% value
Ret ; This will now do a far return to memory location
Absolute Endp
Cseg Ends
End Start
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/