ASCIIでは、半角英数記号の1文字を7ビットで表します。
#includeint main(){ int row, col; char data; printf("\t[20]\t[30]\t[40]\t[50]\t[60]\t[70]\n"); for(row = 0x0; row <= 0xF; row++){ printf("[%X]", row); for(col = 0x20; col <= 0x70; col += 0x10){ data = col + row; if (data == 0x7F) break; else printf("\t%c", data); } printf("\n"); } return 0; }
[20] [30] [40] [50] [60] [70] [0] 0 @ P ` p [1] ! 1 A Q a q [2] " 2 B R b r [3] # 3 C S c s [4] $ 4 D T d t [5] % 5 E U e u [6] & 6 F V f v [7] ' 7 G W g w [8] ( 8 H X h x [9] ) 9 I Y i y [A] * : J Z j z [B] + ; K [ k { [C] , < L \ l | [D] - = M ] m } [E] . > N ^ n ~ [F] / ? O _ o