|
#! /bin/sh
# ***********************
# * rr koala pic viewer *
# * 20020905 gpz: fixed glitch with restoring colors
# ***********************
VERBOSE=--verbose
echo sending koala pic ...
rm -f $RRPATH/files/temp/rrkoa*
# download memory so we can restore it later
# setup video regs for multicolor bitmap mode
# upload bitmap, screen, colram from koala pic
# show screen and wait for keypress on host
#rr $VERBOSE --poke 0xd011 0x7b;sleep 1
$RRPATH/rr $VERBOSE \
--save $RRPATH/files/temp/rrkoa1.prg 0x2000 0x4000 \
--save $RRPATH/files/temp/rrkoa2.prg 0x0400 0x07e8 \
--save $RRPATH/files/temp/rrkoa3.prg 0xd800 0xdbe8 \
--save $RRPATH/files/temp/rrkoa4.prg 0xd020 0xd022 \
--poke 0xd020 0 \
--poke 0xd016 0xd8 \
--poke 0xd018 0x18 \
--loadbin $1 0x2000 0x4000 0x0002 \
--loadbin $1 0x0400 0x07e8 0x1f42 \
--loadbin $1 0xd800 0xdbe8 0x232a \
--loadbin $1 0xd021 0xd022 0x2712 \
--poke 0xd011 0x3b
read -p "<press enter>"
# restore saved memory contents
# setup video regs for text mode
#rr $VERBOSE --poke 0xd011 0x7b;sleep 1
$RRPATH/rr $VERBOSE \
--load $RRPATH/files/temp/rrkoa1.prg \
--load $RRPATH/files/temp/rrkoa2.prg \
--load $RRPATH/files/temp/rrkoa3.prg \
--load $RRPATH/files/temp/rrkoa4.prg \
--poke 0xd016 0xc8 \
--poke 0xd018 0x15 \
--poke 0xd011 0x1b \
# delete temp. data
rm -f $RRPATH/files/temp/rrkoa*
|
| |