Skip to content

Instantly share code, notes, and snippets.

@PhiBabin
Created April 3, 2014 02:36
Show Gist options
  • Save PhiBabin/9947311 to your computer and use it in GitHub Desktop.
Save PhiBabin/9947311 to your computer and use it in GitHub Desktop.
;Philippe Babin PHBAB1 - Mathieu Cloutier MACLO245
NAME main
PUBLIC __iar_program_start
SECTION .intvec : CODE (2)
CODE32
__iar_program_start
B main ;
ADD R0, R0, #0 ; Does nothing!
B interruption
Mapile DS32 64
;MaChaine DC8 "Allo" , 0x00
SECTION .text : CODE (2)
CODE32
main
LDR SP, =Mapile
SWI #0x112233
SWI #0x445566
B main
interruption
PUSH {R1}
LDR R0, [LR, #-4]
MOV R1, #0xFF
ADD R1, R1, #0xFF00
ADD R1, R1, #0xFF0000
; MOV R2, R2, LSL #16
AND R0, R0, R1
POP {R1}
BX LR
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment