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

  1. org $40000
  2. load $40000
  3. s:
  4. move.l    #$50000,$dff0a0    
  5. move.l  #$50000,$dff0b0
  6. move.w    #$4000,$dff0a4
  7. move.w  #$4000,$dff0b4 
  8. move.w    #400,$dff0a6    
  9. move.w  #400,$dff0b6
  10. move.w    #64,$dff0a8
  11. move.w  #64,$dff0b8    
  12. move.w    #$83a3,$dff096    
  13. move.l    $04,a6
  14. lea    gfxname,a1
  15. jsr    -408(a6)
  16. move.l    d0,gfxbase
  17. move.l    d0,a0
  18. move.l    50(a0),oldclist
  19. move.l    #newclist,50(a0)
  20. move.l    gfxbase,a6
  21. lea    bitmap,a0
  22. move.l    #1,d0
  23. move.l    #336,d1
  24. move.l    #256,d2
  25. jsr    -390(a6)
  26. move.l    #$4c800,plane1
  27. lea    rastport,a1
  28. jsr    -198(a6)
  29. move.l    #bitmap,r_bitmap
  30. lea    rastport,a1
  31. jsr    -48(a6)
  32. move.l    #text,taller
  33. move.l    $6c,oldirq+2
  34. move.l    #newirq,$6c
  35. wait:
  36. move.l #$41200,a0
  37. move.w $dff012,d1
  38. l1: cmpi.b #$ff,$dff006
  39. bne l1
  40. move.l (a0)+,$41000
  41. move.l 20(a0),$41048
  42. move.l 40(a0),$41090
  43. move.l 60(a0),$410d8
  44. move.l 80(a0),$41120
  45. move.l 100(a0),$41168
  46. cmp.w $dff012,d1
  47. bne end1
  48. cmpi.l #$432f8,a0
  49. beq wait 
  50. l2:cmpi.b #$00,$dff006
  51. bne l2
  52. jmp l1
  53. end1:
  54. jmp slut
  55. newirq:
  56. movem.l    d0-d7/a0-a6,-(sp)
  57. move.l    gfxbase,a6
  58. lea rastport,a1
  59. move.l #2,d0
  60. move.l #0,d1
  61. move.l #0,d2
  62. move.l #1,d3 
  63. move.l #336,d4
  64. move.l #20,d5
  65. jsr -396(a6)
  66. sub.b    #1,rows
  67. bne.s    exit
  68. move.b    #4,rows
  69. lea    rastport,a1
  70. move.l    #320,d0
  71. move.l    #16,d1
  72. jsr    -240(a6)
  73. lea    rastport,a1
  74. move.l    taller,a0
  75. move.l    #1,d0
  76. jsr    -60(a6)
  77. addq.l    #1,taller
  78. cmp.l    #end,taller
  79. blt.s    exit
  80. move.l    #text,taller
  81. exit:
  82. movem.l    (sp)+,d0-d7/a0-a6
  83. oldirq:
  84. jmp    $00000000
  85. slut:
  86. move.w #3,$dff096
  87. move.l oldirq+2,$6c
  88. move.l gfxbase,a0
  89. move.l oldclist,50(a0)
  90. move.l $04,a6
  91. jmp -414(a6)
  92. newclist:
  93. dc.w    $008e,$2c91,$0090,$41f0,$0092,$0038,$0094,$00d0
  94. dc.w    $0120,$0004,$0122,$1000,$0124,$0004,$0126,$1048
  95. dc.w    $0128,$0004,$012a,$1090,$012c,$0004,$012e,$10d8
  96. dc.w    $0130,$0004,$0132,$1120,$0134,$0004,$0136,$1168
  97. dc.w    $0102,$0000,$0104,$0024,$0108,$0002,$010a,$0002
  98. dc.w    $0100,$1200,$0180,$0000
  99. dc.w    $00e0,$0004,$00e2,$c800
  100. dc.w    $2a11,$fffe,$0180,$000    
  101. dc.w    $2b11,$fffe,$0180,$111
  102. dc.w    $2c11,$fffe,$0180,$222
  103. dc.w    $2d11,$fffe,$0180,$333
  104. dc.w    $2e11,$fffe,$0180,$444
  105. dc.w    $2f11,$fffe,$0180,$555
  106. dc.w    $3011,$fffe,$0180,$666
  107. dc.w    $3111,$fffe,$0180,$777
  108. dc.w    $3211,$fffe,$0180,$888
  109. dc.w    $3311,$fffe,$0180,$999
  110. dc.w    $3411,$fffe,$0180,$aaa
  111. dc.w    $3511,$fffe,$0180,$bbb
  112. dc.w    $3611,$fffe,$0182,$888,$0180,$ccc
  113. dc.w    $3711,$fffe,$0182,$666,$0180,$ddd
  114. dc.w    $3811,$fffe,$0182,$444,$0180,$eee
  115. dc.w    $3911,$fffe,$0182,$222,$0180,$fff
  116. dc.w    $3a11,$fffe,$0182,$444,$0180,$ddd
  117. dc.w    $3b11,$fffe,$0182,$666,$0180,$ccc
  118. dc.w    $3c11,$fffe,$0182,$888,$0180,$bbb
  119. dc.w    $3d11,$fffe,$0180,$aaa
  120. dc.w    $3e11,$fffe,$0180,$999
  121. dc.w    $3f11,$fffe,$0180,$888
  122. dc.w    $4011,$fffe,$0180,$777
  123. dc.w    $4111,$fffe,$0180,$666
  124. dc.w    $4211,$fffe,$0180,$555
  125. dc.w    $4311,$fffe,$0180,$444
  126. dc.w    $4411,$fffe,$0180,$333
  127. dc.w    $4511,$fffe,$0180,$222
  128. dc.w    $4611,$fffe,$0180,$111
  129. dc.w    $4711,$fffe,$0180,$000
  130. dc.w    $4a11,$fffe,$0180,$fff
  131. dc.w    $4b11,$fffe,$0180,$000
  132. dc.w    $4c1f,$fffe,$0180,$000
  133. c1:dc.w    $01a2,$0777,$01a4,$0999,$01a6,$0555
  134. c2:dc.w    $01aa,$0777,$01ac,$0999,$01ae,$0555
  135. c3:dc.w    $01b2,$0777,$01b4,$0999,$01b6,$0555   
  136. dc.w    $0182,$0
  137. dc.w    $ffff,$fffe
  138. text:
  139. dc.b    " HELLO FREAK, this is pet from the DANISH DEMO DUO speaking."
  140. dc.b    " I'm lucky to among the few people from DENMARK there know "
  141. dc.b    "how to program a good 68000 Machine Code program ! And now "
  142. dc.b    "you are the lucky person to look at the first prerelease of"
  143. dc.b    " my first demo/intro. In a few days I and Bad Boy (from REFL"
  144. dc.b    "EX) will be able to present our first co-operation demo...."
  145. dc.b    "   AND now I'll send some greetings to my contacts:  Hello "
  146. dc.b    "to : HQC (you are doing great), 2000 AD (BLITZ please send "
  147. dc.b    "something to us), C64CG (hope you will send something soon)"
  148. dc.b    ", LCC, ANCOR...... and mega greetings to my friends BADBOY "
  149. dc.b    " and Tiger (of dexion).............. HELLO FREAK, this is p"
  150. dc.b    "et    write me if you will swap demos/routines..... games a"
  151. dc.b    "re not wanted !!           .. PETER OLSEN, M0LLEAGER 14, 26"
  152. dc.b    "40 HEDEHUSENE, DENMARK.... or call on (02) 16 36 72 (in DK)"
  153. dc.b    " SPRITES BY TOX OF DDD, THE REST BY ME (PET) (not the digi)"
  154. dc.b    " - RIGHT BUTTON -                             "
  155. end:
  156. even
  157. taller:
  158. dc.l    0
  159. oldclist:
  160. dc.l    0
  161. gfxbase:
  162. dc.l    0
  163. gfxname:
  164. dc.b    "graphics.library",0
  165. even
  166. bitmap:
  167. blk.w    4,0
  168. plane1:
  169. blk.l    20,0
  170. rastport:
  171. dc.l    0
  172. r_bitmap:
  173. blk.l    30,0
  174. rows:
  175. dc.b    3
  176. even
  177. slu:
  178. org $41000
  179. load $41000
  180. Spr4a:
  181. da4:
  182. dc.w $70a0,$8000
  183. dc.w $0002FBF8,$0002FBF8
  184. dc.w $0002FBFC,$00028A04,$0002DB06,$0002AAFA
  185. dc.w $0002DBFF,$0002AA01,$0002DBFF,$0002ABFF
  186. dc.w $0002D800,$0002A800,$0002D81F,$0002A81F
  187. dc.w $0002D81F,$0002A811,$0002D81B,$0002A815
  188. dc.w $0002D81F,$0002A81F,$0002D800,$0002A800
  189. dc.w $0002DBFF,$0002ABFF,$0002DBFF,$0002AA01
  190. dc.w $0002DB06,$0002AAFA,$0002FBFC,$00028A04
  191. dc.w $0002FBF8,$0002FBF8
  192. dc.w $0000,$0000
  193. spr4b:
  194. dc.w $7090,$8100
  195. dc.w $0002FBF8,$0002FBF8,$0002FBFC,$00028A04
  196. dc.w $0002DB06,$0002AAFA,$0002DBFF,$0002AA01
  197. dc.w $0002DBFF,$0002ABFF,$0002D800,$0002A800
  198. dc.w $0002D81F,$0002A81F,$0002D81F,$0002A811
  199. dc.w $0002D81B,$0002A815,$0002D81F,$0002A81F
  200. dc.w $0002D800,$0002A800,$0002DBFF,$0002ABFF
  201. dc.w $0002DBFF,$0002AA01,$0002DB06,$0002AAFA
  202. dc.w $0002FBFC,$00028A04,$0002FBF8,$0002FBF8
  203. dc.w $0000,$0000
  204. spr4:
  205. dc.w $7080,$8100
  206. dc.w $0002FBF8,$0002FBF8,$0002FBFC,$00028A04
  207. dc.w $0002DB06,$0002AAFA,$0002DBFF,$0002AA01
  208. dc.w $0002DBFF,$0002ABFF,$0002D800,$0002A800
  209. dc.w $0002D81F,$0002A81F,$0002D81F,$0002A811
  210. dc.w $0002D81B,$0002A815,$0002D81F,$0002A81F
  211. dc.w $0002D800,$0002A800,$0002DBFF,$0002ABFF
  212. dc.w $0002DBFF,$0002AA01,$0002DB06,$0002AAFA
  213. dc.w $0002FBFC,$00028A04,$0002FBF8,$0002FBF8
  214. dc.w $0000,$0000
  215. Spr3:
  216. dc.w $7060,$8100
  217. dc.w $0002FBFF,$0002FBFF,$0002FBFF,$00028A01
  218. dc.w $0002DB03,$0002AAFD,$0002DBFF,$0002AA01
  219. dc.w $0002DBFF,$0002ABFF,$0002D800,$0002A800
  220. dc.w $0002DBF0,$0002ABF0,$0002DBF0,$0002AA10
  221. dc.w $0002DB30,$0002AAD0,$0002DBF0,$0002AA10
  222. dc.w $0002DBF0,$0002ABF0,$0002DBFF,$0002ABFF
  223. dc.w $0002DBFF,$0002AA01,$0002DB03,$0002AAFD
  224. dc.w $0002FBFF,$00028A01,$0002FBFF,$0002FBFF
  225. dc.w $0000,$0000
  226. spr2:
  227. dc.w $7050,$8100
  228. dc.w $0002F81F,$0002F81F,$0002F81F,$00028811
  229. dc.w $0002D81B,$0002A815,$0002D81B,$0002A815
  230. dc.w $0002D81B,$0002A815,$0002D81B,$0002A815
  231. dc.w $0002DBFB,$0002ABF5,$0002DBFB,$0002AA05
  232. dc.w $0002DB03,$0002AAFD,$0002DBFB,$0002AA05
  233. dc.w $0002DBFB,$0002ABF5,$0002D81B,$0002A815
  234. dc.w $0002D81B,$0002A815,$0002D81B,$0002A815
  235. dc.w $0002F81F,$00028811,$0002F81F,$0002F81F
  236. dc.w $0000,$0000
  237. spr1:
  238. dc.w $7040,$8100
  239. dc.w $0002ffff,$0002ffff,$0002FFFF,$00028001
  240. dc.w $0002C003,$0002BFFD,$0002FFFF,$00028001
  241. dc.w $0002FFFF,$0002FFFF,$00020000,$00020000
  242. dc.w $000207C0,$000207C0,$000207C0,$00020440
  243. dc.w $000206C0,$00020540,$000206C0,$00020540
  244. dc.w $000206C0,$00020540,$000206C0,$00020540
  245. dc.w $000206C0,$00020540,$000206C0,$00020540
  246. dc.w $000207C0,$00020440,$000207C0,$000207C0
  247. dc.w $0000,$0000
  248. slutning:
  249.