Files
Digital-Research-Source-Code/MPM OPERATING SYSTEMS/MPM-86/MISC DRI DISKS/10/DRCGSX.A86
Sepp J Morris 31738079c4 Upload
Digital Research
2020-11-06 18:50:37 +01:00

40 lines
896 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;****************************************************************
;* *
;* DRC to GSX interface *
;* *
;****************************************************************
;
;The following code is an assembler interface to the GSX for DRC
;
CGROUP GROUP CODE
;
PUBLIC GSX
;
CSEG
;
GSX:
Mov BX,SP ;get address of arguments from C
Add BX,0AH ;point at the other end
Push SI
Push DI
Push BP
Push ES
Pushf
Mov CX,5 ;5 arguments
MAKE_LONG:
Push DS ;make them long word pointers
Push word ptr [BX] ;data also
Sub BX,2 ;point at the next
Loop MAKE_LONG
Mov DX,SP ;point at the list
Mov CX,0473H ;layer 0, GDOS 4, function 115
Int 0E0H ;ring the BDOS bell
Add SP,014H ;unstack the longwords
Popf
Pop ES
Pop BP
Pop DI
Pop SI
Ret