home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 5
/
FreshFish_July-August1994.bin
/
bbs
/
gfx
/
piccon-2.20.lha
/
PicCon
/
Sources
/
6planesHAMpic.s
< prev
next >
Wrap
Text File
|
1994-04-13
|
1KB
|
51 lines
; Very simple sourcecode that shows a HAM6 320x256 picture.
;
; Save a 320x256 HAM6 picture as raw bitplanes (binary) to the file 'HAM6.RAW',
; and it's palette as a binary 4 bits copperlist to the file 'HAM6.pal'.
include init.i
main moveq #0,d0
rts
;***
init
move.l #pic,d0
lea bplp,a0
moveq #6-1,d1
lup2 move.w d0,6(a0) ; insert BPLPTR LOW
swap d0
move.w d0,2(a0) ; insert BPLPTR HIGH
swap d0
add.l #10240,d0 ; (320/8)*256 = 10240
addq #8,a0
dbra d1,lup2
rts
;***
Section copper,DATA_C
copper
incbin HAM6.pal ; insert the picture's
; 4 bits palette copperlist here
dc.w $010c,$0011,$008e,$2c81
dc.w $0100,$6a00,$0104,$0224
dc.w $0106,$0c40,$0090,$2cc1
dc.w $0092,$0038,$0094,$00d0
dc.w $0102,$0000,$0108,$0000
dc.w $010a,$0000
bplp dc.w $00e0,$0000,$00e2,$0000
dc.w $00e4,$0000,$00e6,$0000
dc.w $00e8,$0000,$00ea,$0000
dc.w $00ec,$0000,$00ee,$0000
dc.w $00f0,$0000,$00f2,$0000
dc.w $00f4,$0000,$00f6,$0000
dc.w $01fc,$0000
dc.w $ffff,$fffe
;***
Section picture,DATA_C
pic incbin HAM6.RAW ; insert path to 6 planes 320x256
; picture here