Skip to content

Commit

Permalink
dynamic types
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-johnson-4 committed Jan 4, 2024
1 parent fe55343 commit 98d8f62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stdlib/helpers.lm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
# rsi , rdi : closed reference 1, 2
# r8, r9, r10, r11, rax, rbx, rcx, rdx : volatile internal registers

# .flags can be though of as a "type" for the S structure
# the ref_counter and flags must still be preserved for alternative types
# the atom, head, and tail are free to use as general purpose fields
# type flags=0 denotes an S-Expression

# put8 (%r8 bool[4], %r9: *char)
::put8 := (
\t mov %r8b, %al \n # lower byte of %r11 goes into %rax
Expand Down

0 comments on commit 98d8f62

Please sign in to comment.