Re: aarch64 assembly "hello world"

2025-03-15 Thread Janne Johansson
, x1;" " mov x1, x0;" " mov w0, #1;" " mov x8, #4;" " _w: svc #0;" ); return 0; } void start() { w("hello\n", 6); x(); } __asm(" .section \".note.openbsd.ident\", \"a\&quo

Re: aarch64 assembly "hello world"

2025-03-15 Thread Janne Johansson
Den lör 15 mars 2025 kl 09:17 skrev Janne Johansson : > > This might also help: > https://flak.tedunangst.com/post/dude-where-are-your-syscalls > And the text hints at it, but the exact trick to figure out the offsets to put in the "what" ELF section is to compile and link it once, then run $ llv

Re: aarch64 assembly "hello world"

2025-03-15 Thread Janne Johansson
This might also help: https://flak.tedunangst.com/post/dude-where-are-your-syscalls Den fre 14 mars 2025 kl 11:47 skrev Computer Planet : > > Hi guys! > Please, could someone tell me how to print a very simple "Hello, world!" in > assembly for aarch64? > Thanks for re

Re: aarch64 assembly "hello world"

2025-03-14 Thread Janne Johansson
A working but not simple solution is to make a simple hello.c, and compile it with --save-temps. This means you get a hello.s in there too, and you can build that with cc -O2 -pipe -o hello hello.s and you have a working binary, with the correct ELF sections and everything. It becomes some 5200

Re: aarch64 assembly "hello world"

2025-03-14 Thread Stuart Henderson
On 2025/03/14 13:20, Alnoman Kamil wrote: > Save as hello.S file > ``` > data > msg: > .ascii"Hello, ARM64!\n" > len = . - msg > .text > > .globl _start > _start: > mov x0, #1 /* fd := STDOUT_FILENO */ > ldr x1, =

Re: aarch64 assembly "hello world"

2025-03-14 Thread Alnoman Kamil
Save as hello.S file ``` data msg: .ascii"Hello, ARM64!\n" len = . - msg .text .globl _start _start: mov x0, #1 /* fd := STDOUT_FILENO */ ldr x1, =msg/* buf := msg */ ldr x2, =len/* count := len */ mov w8, #64 /* write is s

aarch64 assembly "hello world"

2025-03-14 Thread Computer Planet
Hi guys! Please, could someone tell me how to print a very simple "Hello, world!" in assembly for aarch64? Thanks for reply.

HELLO

2011-04-04 Thread Anita Abdul
I am writing this letter out of a genuine desperation to find a reliable partner in an unfolding transaction. I seek your help and genuine co-operation to our mutual benefit and I believe that you will not letdown the trust and confidence I am about to repose on you. I am Anita, Purchasing Manag