Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!cbmvax!fred From: fred@cbmvax.cbm.UUCP (Fred Bowen) Newsgroups: comp.sys.cbm Subject: Re: Koalapic Memory Splitting on a C-128 Message-ID: <1789@cbmvax.cbmvax.cbm.UUCP> Date: Wed, 29-Apr-87 19:21:37 EDT Article-I.D.: cbmvax.1789 Posted: Wed Apr 29 19:21:37 1987 Date-Received: Sat, 2-May-87 05:28:49 EDT References: <3598@garfield.UUCP> Organization: Commodore Technology, West Chester, PA Lines: 48 > Could someone tell me what parts of the [Koala] 40 block file go in what > locations? Perhaps someone could send a sequence of commands for the MONITOR > so I could load the file into memory, use the monitor to split up the sections > of memory and resave the sections at their proper locations? Koala pics are stored in a PGM type file with a load address of $6000. You can follow the steps below to break it up and display it on the C128. I am assuming you have both 40 and 80 column screens (doesn't everybody?) to look at, else you will have to type blind or modify the procedure to suit: GRAPHIC 3,1 :REM MULTICOLOR BITMAP BLOAD"picture name" MONITOR T 6000 7F3F 2000 :MOVE BITMAP T 7F40 8327 1C00 :MOVE VIDEO MATRIX >1 74 :SWITCH TO MC NYBBLE BANK T 8328 870F FD800 :MOVE COLOR NYBBLES (IGNORE ERRORS!) >1 75 :RESTORE TEXT NYBBLE BANK >8710 :GET EXT/BG COLOR BYTE, SPLIT INTO msb/lsb >FD020 msb lsb :PUT EXT/BG COLORS And that should do it- the picture on you VIC screen should be correct. Now, to save the pieces, type: S "pic.bitmap",8,2000,4000 :SAVE BITMAP CHUNK S "pic.vidmat",8,1C00,2000 :SAVE VIDEO MEM CHUNK >1 74 :SWITCH NYBBLE BANK S "pic.colnyb",8,FD800,FDC00 :SAVE COLOR NYB CHUNK >1 75 :RESTORE NYBBLE BANK You can now reLOAD the pic anytime using the example BLOADs I posted so many moons ago. You have to figure out what to do with the border and background colors though. Just remember to twiddle the nybble bank when you PEEK/POKE or LOAD/SAVE the color nybbles yourself. Oh yeah, and remember the color nybbles are in BANK 15 (I/O space)! You guys at garfield are some real Koala phreaks, eh? -- -- -- Fred Bowen uucp: {ihnp4|seismo|caip}!cbmvax!fred arpa: cbmvax!fred@seismo.css.GOV tele: 215 431-9100 Commodore Electronics, Ltd., 1200 Wilson Drive, West Chester, PA, 19380