1 ;--------------------------------------------------------
2 ; blink.asm - simple ASM example to toggle a port pin
5 ; On a TINI board this toggles really fast, so
6 ; it appears that the LED just dims slightly.
7 ; You may need a scope to detect it.
9 ; You can use s51(ucsim simulator) to look at the
10 ; blink.ihx(hex-file). Run like this:
12 ; Then dump code like this:
14 ;--------------------------------------------------------
17 ;--------------------------------------------------------
18 ; Stack segment in internal ram
19 ;--------------------------------------------------------
26 ;--------------------------------------------------------
27 ; global & static initialisations
28 ;--------------------------------------------------------
32 clr p3.5 ; turn LED off
33 setb p3.5 ; turn LED on