Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 11)
- org 0xa0000000
- CODE32
- PORT0 equ 0xffffd400
- pc0 equ 0
- pc1 equ 4
- pc2 equ 8
- pdat equ 12
- main
- bl Init_out ; Appel du sous-programme d’initialisation des ports d’E/S
- ldr r0,=0x5555
- ldr r1,=0xaaaa
- bclmain
- strh r0,[r10,#pdat]
- b bclmain
- Init_out
- ldr r10,=PORT0
- ldr r0,=0
- ldr r1,=0xffff
- strh r1,[r10,#pc0]
- strh r0,[r10,#pc1]
- strh r1,[r10,#pc2]
- mov pc,lr
- end main
- 12)
- org 0xa0000000
- CODE32
- PORT0 equ 0xffffd400
- pc0 equ 0
- pc1 equ 4
- pc2 equ 8
- pdat equ 12
- main
- bl Init_out ; Appel du sous-programme d’initialisation des ports d’E/S
- ldr r0,=0x5555
- ldr r1,=0xaaaa
- bclmain
- strh r0,[r10,#pdat]
- bl tempo
- strh r1,[r10,#pdat]
- bl tempo
- b bclmain
- Init_out
- ldr r10,=PORT0
- ldr r0,=0
- ldr r1,=0xffff
- strh r1,[r10,#pc0]
- strh r0,[r10,#pc1]
- strh r1,[r10,#pc2]
- mov pc,lr
- NBR equ 30000
- tempo
- ldr r5,=NBR
- cmp r5,r0
- bbb subs r5,r5,#1
- bne bbb
- mov pc,lr
- end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement