File:  [MW Coherent from dump] / coherent / b / lib / libc / gen / i8086 / canon.m
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:35 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

//////////
/ MWC86 runtime.
/ Transform a long to canonical format.
//////////

////////
/ long _canl(l);
/ long l;
////////

#include <larges.h>

low	=	RASIZE
high	=	low+2

	.globl	_canl_

_canl_:
	mov	bx, sp
	mov	dx, Pss low(bx)		/ lo part of arg is hi return value
	mov	ax, Pss high(bx)	/ hi part of arg is lo return value
	Gret

/ end of canon.m

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.