2 (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 See the copyright notice in the ACK home directory, in the file "Copyright".
7 Module: get value on stack, byte by byte
8 Author: Ceriel J.H. Jacobs
15 #define EM_WSIZE _EM_WSIZE
16 #define EM_PSIZE _EM_PSIZE
19 #if EM_WSIZE==EM_PSIZE
20 typedef unsigned pcnt
;
29 /* Make sure, that a value with a size that could have been
30 handled by the LOI instruction ends up at the same place,
31 where it would, were the LOI instruction used.
33 register char *q
= (char *) &p
;
36 if (siz
< EM_WSIZE
&& EM_WSIZE
% siz
== 0) {
37 /* as long as EM_WSIZE <= 4 ... */
38 if (siz
!= 2) TRP(M2_INTERNAL
); /* internal error */
41 while (siz
--) *q
++ = *addr
++;
43 *((unsigned *)(&p
)) = *((unsigned short *) (&t
[0]));