home *** CD-ROM | disk | FTP | other *** search
- scr=$7a000
- struc=$7d000
- rastport=struc+100
-
- setupsystem:
-
- bsr getgfx
- bsr cleanitdown
-
-
- move.w #8000-1 ,d0
- move.l #scr ,a0
- slet: move.b #0 ,(a0)+
- dbra d0 ,slet
-
- move.l #scr ,a0
- move.l a0 ,struc+8
- move.l #struc ,a0
- moveq #1 ,d0
- move.l #320 ,d1
- move.l #200 ,d2
- move.l gfxbase ,a6
- jsr -390(a6)
- move.l #rastport ,a1
- jsr -198(a6)
- move.l #struc,rastport+4
-
- move.l #copper0,newcop
- bsr changecop
-
- ;--DEMO
-
- move=-240
- draw=-246
- setapen=-342
-
- move.l #rastport,a1
-
- ;/////// my demo!!! ///////
- loop:
- clr.l d0
- clr.l d1
- move.b $dff00a,d1
- move.b $dff00b,d0
- jsr putpoint
- btst #6,$bfe001
- bne loop
- rts
-
- putpoint:
- mulu #40,d1
- divu #8,d0
- add.w d0,d1
-
- clr.w d0
- divu #$1000,d0
- divu #$10,d0
-
- move.l d1,a0
- add.l #scr,a0
-
- move.l #7,d1
- sub d0,d1
- bset d1,(a0)
- rts
-
- ;/////// my demo's over. //
-
- copper0:dc.w $0100,$1200
-
- dc.w $008e,$2c81
- dc.w $0090,$f4c1
- dc.w $0092,$38
- dc.w $0094,$d0
-
- dc.w $0108,$0000
- dc.w $010a,$0000
-
- dc.w $00e0,$0007
- dc.w $00e2,$a000
-
- dc.w $0180,$000
- dc.w $0182,$fff
-
- dc.w $ffff,$fffe
-
- ;*** gfx ***
- gfxbase: dc.l 0
- gfxname: dc.b 'graphics.library',0,0
-
- getgfx:
- move.l 4 ,a6
- move.l #gfxname,a1
- jsr -408(a6)
- move.l d0 ,gfxbase
- rts
-
- ;*** change copper list ***
-
- newcop: dc.l 0
- ;***
- changecop:
- move.l gfxbase ,a0
- move.l newcop ,50(a0)
- rts
-
- ;*********
-
- forbid =-132
- oldcopper: dc.l 0
-
- cleanitdown:
- move.l 4,a6
- jsr -132(a6)
- rts
-
- even
-
- accx: dc.l 0
- accy: dc.l -1