kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

aa64_symdiff_const.s (444B)


      1 // Symbol-difference (sym1 - sym2): when both symbols are defined in the
      2 // same section, the difference is a link-time constant and the assembler
      3 // folds it directly into the data field. `end` is a forward reference,
      4 // exercising the deferred post-parse resolution.
      5 .text
      6 a:
      7     .byte 0, 0, 0, 0        // a = 0
      8 b:
      9     .quad b - a             // = 4
     10     .quad a - b             // = -4
     11     .long end - a           // = 24 (forward ref)
     12 end: