home *** CD-ROM | disk | FTP | other *** search
- /* PEEK(addr) -- returns the contents of the byte at addr in the data segment
-
- Copyright (c) 1983, 1984 by JMI Software Consultants, Inc.
- */
-
- #include "acom.h"
-
- INT BPEEK(addr)
- BYTES addr;
- {
- IMPORT BYTES base_seg;
- BYTES off, seg;
- TINY x;
-
- ptr_split(&x, &seg, &off);
- movedata(base_seg, addr, seg, off, 1);
- return (x & 0xff);
- }