Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!dayton!umn-cs!hyper!dean From: dean@hyper.UUCP Newsgroups: comp.sys.cbm,comp.sys.misc Subject: Re: C-Power 64 sys call -- HELP! Message-ID: <230@hyper.UUCP> Date: Tue, 7-Apr-87 11:08:39 EST Article-I.D.: hyper.230 Posted: Tue Apr 7 11:08:39 1987 Date-Received: Sat, 11-Apr-87 00:40:10 EST References: <1244@ogcvax.UUCP> Organization: Network Systems Corp., Mpls. MN Lines: 34 Xref: utgpu comp.sys.cbm:317 comp.sys.misc:488 in article <1244@ogcvax.UUCP>, schaefer@ogcvax.UUCP (Barton E. Schaefer) says: > [program fragments here] > sys(15,0xffe4,c,&x,&y); /* call GETIN */ > [more program fragments] > > I then tried the example from page 46 (calling CHROUT to print a string), and > this had the same effect. I tried calling CHROUT through the jump table > (0xffd2) and directly (0xf1ca), and with every bank number from 0 to 15 (the > first argument to sys is the bank number, with a mysterious reference to the > BASIC BANK command -- is this C-128 related?), and the only differences were > that some odd (i.e., non-even) bank numbers locked up the system completely > instead of just clobbering BASIC. > > What's going on here? Is my C-64 weird in some way, or do I have a strange > sys manual page, or does sys just plain not work? HELP! HELP! HELP! It sounds like you have the manual page from the C128 version of C-power. The sys command for the C64 version is the just like the one you have above, with the exception that it doesn't have the bank parameter. To do what you want to do, you should use the statement sys(0xffe4,c,&x,&y); /* call GETIN */ (or, better yet, get Mark Rinfret's assembler and create an assembly language version of this function, and stick it into your library, like I did. (If you're going to be using this routine in a lot of different places, it makes a certain amount of sense)) Good luck! Dean C. Gahlon ...ihnp4!umn-cs!hyper!dean