Shop OBEX P1 Docs P2 Docs Learn Events
Some Really Magic Numbers in VGA Demo — Parallax Forums

Some Really Magic Numbers in VGA Demo

TJHJTJHJ Posts: 243
edited 2009-05-17 03:30 in Propeller 1
This is from the VGA_Demo.spin file in the examples folder of the prop tool.
·
Ok So I was trying to figure out how the button depress is effect is being created.
·
This is the part of the file causing it.

 
 
'This is after the "buttons" have been drawn.
 repeat
    i := cnt
    waitcnt(i += 22500000)
    spcl := $30101020
    waitcnt(i += 22500000)
    spcl := $10301020  

 
Dat Part associated with special.
 
spcl                    long    $30100020       'greenbox
                        long    $3C142828       'cyanbox
                        long    $FC54A8A8       'greybox
                        long    $3C14FF28       'cyanbox+underscore
                        long    0
    


·
Where are these numbers coming from and how do they relate to the·bitmap/button?
·
Can anyone help me by explaining to me what is going on·here?
·
Thank you for your time.
·
TJ·
·
Please See the attached file for the complete file if you do not have it already.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I owe everyone here a bunch, So thanks again for answering my dumb questions.
Projects. RG500 ECU system. PropCopter. Prop CanSat. Prop Paste Gun.
Suzuki RG500 in a RGV 250 frame.
Bimota V-Due (Running on the fuel injection system)
Aprilia RS250

Comments

Sign In or Register to comment.