ugbowen@sunybcs.UUCP (Devon Bowen) (04/08/86)
With all this talk of kernal routines flying around, I just thought I'd ask if anyone knows how to access them on the 128. I know the important routines have the same addresses that they do on the 64, vic, etc., but they are in bank 15 (as far as I can tell) and BASIC works in bank 0. So how do you get BASIC to call the Kernal routines? I've tried just about everything from the BASIC bank command to making it relocate the ML. I think the problem is that when you SYS from BASIC, it always goes to that location in BANK 0 rather than the bank selected with BANK. Any body have similar problems or suggestions? Devon E Bowen University of Buffalo
fred@cbmvax.cbm.UUCP (Fred Bowen) (04/10/86)
> With all this talk of kernal routines flying around, I just thought I'd > ask if anyone knows how to access them on the 128. I know the important > routines have the same addresses that they do on the 64, vic, etc., but > they are in bank 15 (as far as I can tell) and BASIC works in bank 0. So > how do you get BASIC to call the Kernal routines? I've tried just about > everything from the BASIC bank command to making it relocate the ML. I > think the problem is that when you SYS from BASIC, it always goes to that > location in BANK 0 rather than the bank selected with BANK. Any body have > similar problems or suggestions? > > Devon E Bowen > University of Buffalo I think you are confusing 'banks' with 'memory configurations'. The 128 system guide correctly describes the use of the BANK command, but the description of the SYS command is brief. Anytime you make a call to ANY ROM routine, you want to use configuration 15 (BANK 15), which simply means you want BASIC and Kernel ROMs ON, I/O ON, and RAM bank 0. For example, this prints an "A" on your screen: BANK15: SYSDEC("FFD2"),65 Drop me email if you still need help! -- Fred Bowen {inhp4|allegra|seismo}!cbmvax!fred