/* ARM assembly AARCH64 Raspberry PI 3B */ /* program cursorPos64.s */ /*******************************************/ /* Constantes file */ /*******************************************/ /* for this file see task include a file in language AArch64 assembly*/ .include "../includeConstantesARM64.inc" /*******************************************/ /* Initialized data */ /*******************************************/ .data szMessStartPgm: .asciz "Program start \n" szMessEndPgm: .asciz "Program normal end.\n" szMessMovePos: .asciz "\033[6;3HHello\n" szCarriageReturn: .asciz "\n" szCleax1: .byte 0x1B .byte 'c' // other console clear .byte 0 /*******************************************/ /* UnInitialized data */ /*******************************************/ .bss /*******************************************/ /* code section */ /*******************************************/ .text .global main main: ldr x0,qAdrszMessStartPgm // display start message bl affichageMess ldr x0,qAdrszCleax1 bl affichageMess ldr x0,qAdrszMessMovePos bl affichageMess ldr x0,qAdrszMessEndPgm // display end message bl affichageMess 100: // standard end of the program mov x0,0 // return code mov x8,EXIT // request to exit program svc 0 // perform system call qAdrszMessStartPgm: .quad szMessStartPgm qAdrszMessEndPgm: .quad szMessEndPgm qAdrszCarriageReturn: .quad szCarriageReturn qAdrszCleax1: .quad szCleax1 qAdrszMessMovePos: .quad szMessMovePos /********************************************************/ /* File Include fonctions */ /********************************************************/ /* for this file see task include a file in language AArch64 assembly */ .include "../includeARM64.inc"