Valavu k tu tes mis à l'ASM ARM si tu pouvais me donner l'equivalent exact en C de ce source en ASM ARM (attention c l'ARM de la GBA et pas celui de la GP32 mais je pense pas k'il y ait de differences majeurs pour ce genre de source simple)
AREA program, CODE, READONLY
; Start execution
ENTRY
b start
; Create valid header
; This it *NOT* a valid header
; Use a header tool after compilation
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00,0x00,0x00,0x00
DCB " "
DCB " "
DCB 0x00,0x00
DCB 0x00
DCB 0x00
DCB 0x00
DCB 0x00,0x00,0x00,0x00,0x00,0x00,0x00
DCB 0x00
DCB 0x00 ; Complement
DCB 0x00,0x00 ; Checksum
start
; Tell the player the address (in ROM) of the video data
ldr r0, =_video_data
ldr r1, =0x0203E1A0
str r0, [r1]
; Start the video player
ldr r0, =_video_player
bx r0
LTORG
ALIGN
_video_player
INCBIN VIDGBAPL.BIN
ALIGN
_video_data
INCBIN video.bin ; <--- This is the only thing that you need to change.
; Change this to point to your video file.
END