Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
533B

  1. To avoid using dict memory in compilation targets, we
  2. pre-declare label variables here, which means we have a limited
  3. number of it. For now, 4 ought to be enough.
  4. Flow
  5. There are 2 label types: backward and forward. For each type,
  6. there are two actions: set and write. Setting a label is
  7. declaring where it is. It has to be performed at the label's
  8. destination. Writing a label is writing its offset difference
  9. to the binary result. It has to be done right after a relative
  10. jump operation. Yes, labels are only for relative jumps.