aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2024-11-02 16:33:11 -0700
committerChristian Cunningham <cc@localhost>2024-11-02 16:33:11 -0700
commita69a84ee6ef6d4a93167d5d096f28b8b40ed1b86 (patch)
treecc71d77adc18fb0d67db30de59c4a4c0904f5093
parentdabcffc1aeffd354ef3324a74d9592998f02ed51 (diff)
Align structures
-rw-r--r--file.inc1
-rw-r--r--monad.inc2
2 files changed, 3 insertions, 0 deletions
diff --git a/file.inc b/file.inc
index 48ce56b..ddf6275 100644
--- a/file.inc
+++ b/file.inc
@@ -31,6 +31,7 @@ endstruc
section .bss
%2_fd: resq 1
section .data
+ align 8
%2_filedata:
istruc FileData
at fd_fname, dq %2_fname
diff --git a/monad.inc b/monad.inc
index 97c6cd3..4193dc4 100644
--- a/monad.inc
+++ b/monad.inc
@@ -13,6 +13,8 @@ endstruc
;; %1 = Name
;; %2 = Address of Structure
;; %3 = Something > 0, Nothing = 0
+ section .data
+ align 8
m_%1:
istruc MaybeMonad
at mm_v, dq %2 ; The address of the MaybeMonad-wrapped structure