mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-23 08:24:18 +00:00
Upload
Digital Research
This commit is contained in:
13
CPM OPERATING SYSTEMS/CPM 68K/1.0X SOURCES/v101/vms/putw.c
Normal file
13
CPM OPERATING SYSTEMS/CPM 68K/1.0X SOURCES/v101/vms/putw.c
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Putw.c -- Kludge version!
|
||||
*/
|
||||
putw(w,iobuf)
|
||||
int w; /* 32-bits of which 16 are important */
|
||||
int *iobuf; /* Not really, but ... */
|
||||
{
|
||||
short junk; /* Take care of hi word / low word etc */
|
||||
junk = w & 0xffff; /* Convert to 16 bits */
|
||||
write((*iobuf),&junk,2); /* Write out 2 bytes (Ugh!!) */
|
||||
return(w);
|
||||
}
|
||||
|
Reference in New Issue
Block a user