Search site Dead Hackers Society
Other BBSes »
 
 
Demoscene   º   Coding   º   CT60   º   Buy/sell   º   Misc/crap   º   Alive magazine   º   SNDH/Tracking

Atari coding BBS
 
Re: Internal Drive Light
Posted by: Bod/Effect Dec,07.2015-15:45 

So the following should work to make it go from on through dim to off:

loop:
moveq #0,d0
move.w loop_val,d0

; on

loop2:
move.l d0,-(sp)
move.w #$25,-(sp)
trap #14 ;vsync
addq.w #2,sp
move.l (sp),d0
dbf d0,loop2

; off

addq.w #1.loop_val
cmp.w #255,loop_val
blt.s skip
move.w #255,loop_val
skip

bra loop




[All messages in this thread]

Topic Posted by  Date 
Internal Drive Light Bod/Effect Dec,05.2015-22:34
  Re: Internal Drive Light Thadoss Dec,06.2015-00:01
    Re: Internal Drive Light Bod/Effect Dec,06.2015-00:23
    Re: Internal Drive Light Bod/Effect Dec,06.2015-17:09
      Re: Internal Drive Light Bod/Effect Dec,06.2015-17:51
        Re: Internal Drive Light dml Dec,07.2015-11:29
          Re: Internal Drive Light PeP Mar,24.2016-10:00
      Re: Internal Drive Light Thadoss Dec,07.2015-01:22
        Re: Internal Drive Light defjam Dec,07.2015-11:29
        Re: Internal Drive Light Bod/Effect Dec,07.2015-15:45
          Re: Internal Drive Light Bod/Effect Dec,07.2015-17:04


Reply to this message
Name:
Topic:
Human verification (enter the text of the ASCII-art below):

   _   _   _   _  _  _        _  
 _|_ _|_ _|_ _|_ (_)  ) |_|_ / \ 
  |   |   |   |  (_) /_   |  \_/
Message:




© 1994-2017 Dead Hackers Society Contact: Anders Eriksson