home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 4: Demo 1 / almathera_demo1.bin / sourcecode / dexion / makescreen.s < prev    next >
Text File  |  1995-03-17  |  1KB  |  90 lines

  1.  
  2. scr=$7a000
  3. struc=$7d000
  4. rastport=struc+100
  5.  
  6. setupsystem:
  7.  
  8. bsr getgfx
  9. bsr cleanitdown
  10.  
  11.  
  12. move.w #8000-1 ,d0
  13. move.l #scr ,a0
  14. slet: move.b #0 ,(a0)+
  15. dbra d0 ,slet
  16.  
  17. move.l #scr ,a0
  18. move.l a0 ,struc+8
  19. move.l #struc ,a0
  20. moveq #1 ,d0
  21. move.l #320 ,d1
  22. move.l #200 ,d2
  23. move.l gfxbase ,a6
  24. jsr -390(a6)
  25. move.l #rastport ,a1
  26. jsr -198(a6)
  27. move.l #struc,rastport+4
  28.  
  29. move.l #copper0,newcop
  30. bsr changecop
  31.  
  32. ;--DEMO
  33.  
  34. move=-240
  35. draw=-246
  36. setapen=-342
  37.  
  38. move.l #rastport,a1
  39.  
  40. ;/////// my demo!!! ///////
  41. ;/////// my demo's over. //
  42.  
  43. copper0:dc.w    $0100,$1200
  44.  
  45.     dc.w    $008e,$2c81
  46.     dc.w    $0090,$f4c1
  47.     dc.w     $0092,$38
  48.     dc.w    $0094,$d0
  49.  
  50.     dc.w    $0108,$0000
  51.     dc.w    $010a,$0000
  52.  
  53.     dc.w    $00e0,$0007
  54.     dc.w    $00e2,$a000
  55.  
  56.     dc.w    $0180,$000
  57.     dc.w    $0182,$fff
  58.  
  59. dc.w $ffff,$fffe
  60.  
  61. ;*** gfx ***
  62. gfxbase:    dc.l    0
  63. gfxname:    dc.b    'graphics.library',0,0
  64.  
  65. getgfx:
  66.     move.l    4    ,a6
  67.     move.l    #gfxname,a1
  68.     jsr    -408(a6)
  69.     move.l    d0    ,gfxbase
  70. rts
  71.  
  72. ;*** change copper list ***
  73.  
  74. newcop: dc.l 0
  75. ;***
  76. changecop:
  77.     move.l    gfxbase    ,a0
  78.     move.l    newcop    ,50(a0)
  79. rts
  80.  
  81. ;*********
  82.  
  83. forbid =-132
  84. oldcopper:    dc.l 0
  85.  
  86. cleanitdown:
  87. move.l 4,a6
  88. jsr    -132(a6)
  89. rts
  90.