aga_stuff.s 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. *------------------------------------------------------------------------*
  2. *- This is a bit misleading - never got round to putting any in -*
  3. *------------------------------------------------------------------------*
  4. ON equ 1
  5. OFF equ 0
  6. IN_GAME_MUSIC_BUFFER EQU 100*1024
  7. * routines for AGA enhanements
  8. ***********************************************
  9. ** AGA ENHANCEMENTS **
  10. ***********************************************
  11. AGA_Enhancements
  12. clr.w chip_type
  13. move.l exec,a0
  14. btst.b #1,AttnFlags+1(a0)
  15. beq.s chip_68000
  16. move.w #SOUND_WAIT_1200,sound_wait
  17. move.w #1,chip_type
  18. bra.s continue_set_up
  19. chip_68000
  20. move.w #SOUND_WAIT_500,sound_wait
  21. move.l #Rain_Script500,Level2_Rain_Script
  22. move.l #SnowStorm500,Level5_Snow_Script
  23. move.l #ThunderStorm500,Level7_Activate_Table
  24. move.l #ThunderStormRepeat500,Lightning1_500
  25. move.l #ThunderStormRepeat500,Lightning2_500
  26. move.l #ThunderStormRepeat500,Lightning3_500
  27. continue_set_up
  28. tst chip_type
  29. bne.s aga_only
  30. move.w #OFF,music_option
  31. move.w #OFF,xtra_music
  32. rts
  33. aga_only
  34. move.l EXEC,a6
  35. move.l #IN_GAME_MUSIC_BUFFER,d0
  36. move.l #MEM_CHIP+MEM_CLEAR,d1 ;chip and clear
  37. jsr -198(a6) ;try
  38. tst.l d0
  39. bne allocated_music_mem
  40. rts ;otherwise quit
  41. allocated_music_mem
  42. move.l d0,in_game_music
  43. move.w #ON,music_option
  44. move.w #ON,xtra_music
  45. rts
  46. music_option
  47. dc.w ON
  48. xtra_music
  49. dc.w OFF
  50. in_game_music
  51. dc.l 0