home *** CD-ROM | disk | FTP | other *** search
- /* SEG(addr) - define current 'segment' of storage
-
- Copyright (c) 1984 by JMI Software Consultants, Inc.
- */
- #include "acom.h"
- #include "host.h"
- /* base_seg should be initialized by bfinit.
- It's value is used by CALL, PEEK, POKE, and USR.
- */
- VOID SEG(addr)
- DOUBLE addr;
- {
- IMPORT BYTES base_seg;
- SEGREG r;
-
- if (addr == -1.0)
- {
- segread(&r);
- base_seg = r.s_ds;
- }
- else if (addr < -32768.0 || addr > 65535.0)
- xerror(32, "SEG");
- else
- base_seg = addr;
- }