spl

systems programming language
git clone http://frotz.net/git/spl.git
Log | Files | Refs | README | LICENSE

1042-arrays2.spl (163B)


      1 
      2 var data [8]u8;
      3 
      4 fn start() i32 {
      5 	var n i32 = 0;
      6 	while n < 8 {
      7 		data[n] = n << 4;
      8 		n++;
      9 	}
     10 	n = 0;
     11 	while n < 8 {
     12 		_hexout_(data[n]);
     13 		n++;
     14 	}
     15 	return n;
     16 }