Skip to content

Commit

Permalink
one field is correct at least
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-johnson-4 committed Jan 3, 2024
1 parent 652ba72 commit 6aceb56
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions stdlib/helpers.lm
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@
\t mov 0(%rbx), %r8 \n
::put64

\t mov 1(%rbx), %r8 \n
\t mov 4(%rbx), %r8 \n
::put64

\t mov 2(%rbx), %r8 \n
\t mov 8(%rbx), %r8 \n
::put64

\t mov 3(%rbx), %r8 \n
\t mov 12(%rbx), %r8 \n
::put64
);

Expand Down Expand Up @@ -183,18 +183,18 @@
\t add $64, %r10 \n # increment cons counter
\t mov %r10, 0(%r8) \n # overwrite new cons counter
\t mov %r12, 0(%rbx) \n # set top.atom
\t mov %r13, 1(%rbx) \n # set top.head
\t mov %r14, 2(%rbx) \n # set top.tail
\t mov %r15, 3(%rbx) \n # set top.flags
\t mov %r13, 8(%rbx) \n # set top.head
\t mov %r14, 16(%rbx) \n # set top.tail
\t mov %r15, 24(%rbx) \n # set top.flags
);

::open-this := (
# move S from heap into this
# %rbx is pointer to current location
\t mov 0(%rbx), %r12 \n
\t mov 1(%rbx), %r13 \n
\t mov 2(%rbx), %r14 \n
\t mov 3(%rbx), %r15 \n
\t mov 8(%rbx), %r13 \n
\t mov 16(%rbx), %r14 \n
\t mov 24(%rbx), %r15 \n
);

::program-header := (
Expand Down

0 comments on commit 6aceb56

Please sign in to comment.