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.

17 lines
651B

  1. Flow
  2. There are 2 label types: backward and forward. For each type,
  3. there are two actions: set and write. Setting a label is
  4. declaring where it is. It has to be performed at the label's
  5. destination. Writing a label is writing its offset difference
  6. to the binary result. It has to be done right after a relative
  7. jump operation. Yes, labels are only for relative jumps.
  8. For backward labels, set happens before write. For forward
  9. labels, write happen before set. The write operation writes a
  10. dummy placeholder, and then the set operation writes the offset
  11. at that placeholder's address.
  12. (cont.)