boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

03-builtins.M1pp (406B)


      1 # Integer-emission builtins: !(1B), @(2B), %(4B), $(8B) emit little-endian
      2 # uppercase hex of (2 * size) chars. Exercises each size at:
      3 #   - small literal so byte-order is observable
      4 #   - hex literal that fills the slot exactly
      5 #   - value with the high bit set (signed wrap survives the round trip)
      6 
      7 !(0x7F)
      8 !(0xFF)
      9 @(0x1234)
     10 @(0xFFFF)
     11 %(0x12345678)
     12 %(0xFFFFFFFF)
     13 $(0x1122334455667788)
     14 $((<< 1 63))
     15 END