Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 UW 5/3/83; site uw-june Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!lll-lcc!vecpyr!amd!pesnta!hplabs!tektronix!uw-beaver!uw-june!js From: js@uw-june (Joe Meadows) Newsgroups: net.micro.amiga Subject: Re: Help with AbasiC Message-ID: <134@uw-june> Date: Tue, 26-Nov-85 12:43:04 EST Article-I.D.: uw-june.134 Posted: Tue Nov 26 12:43:04 1985 Date-Received: Sat, 7-Dec-85 17:19:52 EST References: <538@caip.RUTGERS.EDU> Organization: U of Washington Computer Science Lines: 39 In regards to changing the text color, note the two commands ASK RGB register,red,green,blue (R-99) and RGB register,red,green,blue (R-119) register 0 = background screen color register 1 = Text color, plus parts of the menu gadgets, register 2 = most of the window border, register 15 = Block cursor Other things of possible interest: CHDIR "file-spec" (in the errata sheet) changes your default directory. Note however that this doesn't affect commands like DIR, or SHELL, which will still refer to the directory you were in when you entered basic (at least, I think thats it...) For fun I played with the LIBCALL (R-147) function, after hand-assembling some 68k code (bleah,choke,gag, where's my development kit?!) shoving the assembled code into DATA statements, READing them into an array and then using VARPTR to find their address... Pain city! (aside, Integers are Longwords (32 bit)) For those of you crazy enough to try it : LIBCALL , , where pointer% is either the address of the routine, or a "library base pointer", index% is an index into the library (0% for a routine) and array% is an array of 16 cells to hold registers D0-D7 followed by A0-A7. They give an example in the book using the system variable EXECBASE (a pointer to the system Exec library). Apparently your on your own to figure out what offsets do what.. If there's any interest (You mean, someone might want to Do something from Basic?) let me know and after I get my books I'll try and post some more info concerning this.. Personnaly I can't wait for the day companies start shipping their computers with a real language, and with real documentation.. Just another waiting person.. joe (mr. cheers) meadows. Cheers