Commits

Paweł Wieczorek committed 6692113 Draft

added frame.s

  • Participants
  • Parent commits c4cba3e

Comments (0)

Files changed (2)

 # Copyright (C) 2012 Pawel Wieczorek <wieczyk gmail>
 # All rights reserved.
 
-
-.macro FRAME_ENTER size=0
-    push    %rbp
-    mov     %rsp, %rbp
-.if \size
-    sub     $\size, %rsp
-.endif
-    push    %rbx
-    push    %r12
-    push    %r13
-    push    %r14
-    push    %r15
-.endm
-
-.macro FRAME_LEAVE
-    pop     %r15
-    pop     %r14
-    pop     %r13
-    pop     %r12
-    pop     %rbx
-    leave
-    ret
-.endm
-
-.macro GLOBAL_PROC name
-.global \name
-\name:
-.endm
-
-.macro LOCAL_PROC name
-\name:
-.endm
+.include "frame.s"
+# Copyright (C) 2012 Pawel Wieczorek <wieczyk gmail>
+# All rights reserved.
+
+
+.macro FRAME_ENTER size=0
+    push    %rbp
+    mov     %rsp, %rbp
+.if \size
+    sub     $\size, %rsp
+.endif
+    push    %rbx
+    push    %r12
+    push    %r13
+    push    %r14
+    push    %r15
+.endm
+
+.macro FRAME_LEAVE
+    pop     %r15
+    pop     %r14
+    pop     %r13
+    pop     %r12
+    pop     %rbx
+    leave
+    ret
+.endm
+
+.macro GLOBAL_PROC name
+.global \name
+\name:
+.endm
+
+.macro LOCAL_PROC name
+\name:
+.endm