4 ms·
Is anyone aware of a similar example, for ARM assembly on macOS?
by onderweg 2y ago
Is anyone aware of a similar example, for ARM assembly on macOS?
- brontitall 2y agoNot inline, but this was linked in a comment on HN a few days ago https://github.com/below/HelloSilicon https://github.com/below/HelloSilicon
- oguz-ismail 2y agoint main(void) { register const char *msg asm("x1") = "hello, world!\n"; asm ( "mov w0, #1\n" "mov w2, #14\n" "mov w16, #4\n" "svc #128\n" : : "r" (msg) ); }