boot2

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

00217.c (266B)


      1 int printf(const char *, ...);
      2 char t[] = "012345678";
      3 
      4 int main(void)
      5 {
      6     char *data = t;
      7     unsigned long long r = 4;
      8     unsigned a = 5;
      9     unsigned long long b = 12;
     10 
     11     *(unsigned*)(data + r) += a - b;
     12 
     13     printf("data = \"%s\"\n", data);
     14     return 0;
     15 }