home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ArachnoPhobia 30
/
ArachnoPhobia_30_2003-11-01_Spiders-Crew_ROLE.d64
/
showmpicrout.seq
< prev
next >
Wrap
Text File
|
2023-02-26
|
2KB
|
76 lines
;{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}
;showmpic.src
;
;a routine that displays art studio's
;multi-hires pictures (.mpic).
;
;(change the address used below for
;viewing koala paint pictures)
;
;last modified on 14.10.2003
;coded by stirf/spiders-crew/role
;{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}
;art studio pic present at $2000..$4711,
;load "beast city mpic" for example
kcol = $4338 ;colordata! koala=$4328
kscr = $3f40 ;screendata! (chars)
*= $4800 ;based not at default!
;because that is $2000
;init...
lda #$00 ;00 to $d011 via accu
sta $d011 ;to turn off screen
sta $d020 ;border: black ($00)
sta $d021 ;screen set black too
;routine usage...
jsr getmpic ;get mpic-data 1st!
jsr showpic ;view multi hires
;additional...
wait
lda $dc01;read keyboard direct
cmp #$7f ;run/stop check
bne wait ;if not try again
jmp $9000;back to assembler
;{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}
showpic ;vic settings!
lda #$18 ;use $18 and $3b
sta $d016;to set c64-vic up to
sta $d018;view multi-coloured
lda #$3b ;high resolution
sta $d011;pictures
rts ;end of vic settings
;{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}
getmpic ;get screen+colour data!
ldx #$00 ;start with x=0
gdat lda kcol,x ;first get colordata
sta $d800,x;place at colormem
lda kscr,x ;then get screendata
sta $0400,x;place on screen
inx ;x=x+1
cpx #<$07e8 ;check x=$e8 (lo)
beq lastpos ;if $e8 check hi
cpx #$00 ;check x=0
bne gdat ;not 0 is continue
inc gdat+2 ;incr #>kcol,x
inc gdat+5 ;incr #>$d800,x
inc gdat+8 ;incr #>kscr,x
inc gdat+11;incr #>0400,x
jmp gdat ;always continue
lastpos
lda gdat+11 ;check is #>$0400
cmp #>$07e8 ;has become #>$07xx
bne gdat ;if not continue
rts ;last line is reached
;{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}