cosmopolitan/libc/fmt/knfcimal.S

76 lines
3.3 KiB
ArmAsm
Raw Normal View History

2022-07-16 06:07:32 +00:00
#include "libc/macros.internal.h"
// generated by:
// o/tool/build/xlat.com -s kNfcimal -inx -1 -I ' ,.-+*#%&$'
//
// present absent
//
// 0x00
// § 0x10
// #§%& *+,-. ! () / 0x20
// 0123456789:;<=>⁇ 0x30
// @ABCDEFGHIJKLMNO 0x40
// PQRSTUVWXYZ[]^_ 0x50
// `abcdefghijklmno 0x60
// pqrstuvwxyz{|}~ 0x70
// ÇüéâäàåçêëèïîìÄÅ 0x80
// ÉæÆôöòûùÿÖÜ¢£¥ƒ 0x90
// áíóúñѪº¿¬½¼¡«» 0xa0
// 0xb0
// 0xc0
// 0xd0
// αßΓπΣσμτΦΘΩδφε 0xe0
// ±÷°×²λ 0xf0
//
// const char kNfcimal[256] = {
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0x00
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0x10
// 0,-1,-1, 6, 9, 7, 8,-1,-1,-1, 5, 4, 1, 3, 2,-1, // 0x20
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0x30
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0x40
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0x50
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0x60
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0x70
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0x80
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0x90
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0xa0
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0xb0
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0xc0
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0xd0
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0xe0
// -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, // 0xf0
// };
.initbss 300,_init_kNfcimal
kNfcimal:
.zero 256
.endobj kNfcimal,globl
.previous
.initro 300,_init_kNfcimal
kNfcimal.rom:
.byte 32,255 # 00-1f -
.byte 1,0 # 20-20 -
.byte 2,255 # 21-22 !-
.byte 1,6 # 23-23 #-#
.byte 1,9 # 24-24 §-§
.byte 1,7 # 25-25 %-%
.byte 1,8 # 26-26 &-&
.byte 3,255 # 27-29 -)
.byte 1,5 # 2a-2a *-*
.byte 1,4 # 2b-2b +-+
.byte 1,1 # 2c-2c ,-,
.byte 1,3 # 2d-2d ---
.byte 1,2 # 2e-2e .-.
.byte 209,255 # 2f-ff /-λ
.byte 0,0 # terminator
.byte 0,0 # padding
.endobj kNfcimal.rom,globl
.init.start 300,_init_kNfcimal
call rldecode
lodsw
.init.end 300,_init_kNfcimal
// 39 bytes total (15% original size)