home *** CD-ROM | disk | FTP | other *** search
- /* POKE(addr, data) -- stores data at addr in the data segment
-
- Copyright (c) 1983, 1984 by JMI Software Consultants, Inc.
- */
-
- #include "acom.h"
-
- VOID BPOKE(addr, data)
- BYTES addr;
- INT data;
- {
- IMPORT BYTES base_seg;
- BYTES seg, off;
- TINY x;
-
- if (data < 0 || data > 255)
- xerror(1, "POKE");
- x = data;
- ptr_split(&x, &seg, &off);
- movedata(seg, off, base_seg, addr, 1);
- }
-