home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 4: Demo 1 / almathera_demo1.bin / sourcecode / dexion / line.s < prev    next >
Text File  |  1995-03-17  |  1KB  |  106 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.  
  42. line:
  43. clr.l    d0
  44. clr.l    d1
  45. move.w    #x0,d0
  46. move.w    #y0,d1
  47. jsr    move(a6)
  48. move.w    #x1,d0
  49. move.w    #y1,d1
  50. jsr    draw(a6)
  51. rts
  52.  
  53. x0:    dc.w    0
  54. y0:    dc.w    0
  55. x1:    dc.w    0
  56. y1:    dc.w    0
  57. ;/////// my demo's over. //
  58.  
  59. copper0:dc.w    $0100,$1200
  60.  
  61.     dc.w    $008e,$2c81
  62.     dc.w    $0090,$f4c1
  63.     dc.w     $0092,$38
  64.     dc.w    $0094,$d0
  65.  
  66.     dc.w    $0108,$0000
  67.     dc.w    $010a,$0000
  68.  
  69.     dc.w    $00e0,$0007
  70.     dc.w    $00e2,$a000
  71.  
  72.     dc.w    $0180,$000
  73.     dc.w    $0182,$fff
  74.  
  75. dc.w $ffff,$fffe
  76.  
  77. ;*** gfx ***
  78. gfxbase:    dc.l    0
  79. gfxname:    dc.b    'graphics.library',0,0
  80.  
  81. getgfx:
  82.     move.l    4    ,a6
  83.     move.l    #gfxname,a1
  84.     jsr    -408(a6)
  85.     move.l    d0    ,gfxbase
  86. rts
  87.  
  88. ;*** change copper list ***
  89.  
  90. newcop: dc.l 0
  91. ;***
  92. changecop:
  93.     move.l    gfxbase    ,a0
  94.     move.l    newcop    ,50(a0)
  95. rts
  96.  
  97. ;*********
  98.  
  99. forbid =-132
  100. oldcopper:    dc.l 0
  101.  
  102. cleanitdown:
  103. move.l 4,a6
  104. jsr    -132(a6)
  105. rts
  106.