hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

syscall+aarch64.s (846B)


      1 .section .text.rt.syscall0
      2 .global rt.syscall0
      3 rt.syscall0:
      4 	mov x8, x0
      5 	svc 0
      6 	ret
      7 
      8 .section .text.rt.syscall1
      9 .global rt.syscall1
     10 rt.syscall1:
     11 	mov x8, x0
     12 	mov x0, x1
     13 	svc 0
     14 	ret
     15 
     16 .section .text.rt.syscall2
     17 .global rt.syscall2
     18 rt.syscall2:
     19 	mov x8, x0
     20 	mov x0, x1
     21 	mov x1, x2
     22 	svc 0
     23 	ret
     24 
     25 .section .text.rt.syscall3
     26 .global rt.syscall3
     27 rt.syscall3:
     28 	mov x8, x0
     29 	mov x0, x1
     30 	mov x1, x2
     31 	mov x2, x3
     32 	svc 0
     33 	ret
     34 
     35 .section .text.rt.syscall4
     36 .global rt.syscall4
     37 rt.syscall4:
     38 	mov x8, x0
     39 	mov x0, x1
     40 	mov x1, x2
     41 	mov x2, x3
     42 	mov x3, x4
     43 	svc 0
     44 	ret
     45 
     46 .section .text.rt.syscall5
     47 .global rt.syscall5
     48 rt.syscall5:
     49 	mov x8, x0
     50 	mov x0, x1
     51 	mov x1, x2
     52 	mov x2, x3
     53 	mov x3, x4
     54 	mov x4, x5
     55 	svc 0
     56 	ret
     57 
     58 .section .text.rt.syscall6
     59 .global rt.syscall6
     60 rt.syscall6:
     61 	mov x8, x0
     62 	mov x0, x1
     63 	mov x1, x2
     64 	mov x2, x3
     65 	mov x3, x4
     66 	mov x4, x5
     67 	mov x5, x6
     68 	svc 0
     69 	ret