blob: 1c8a8f09b92fc3f2a1667a245ce199b16e07fafe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
%define u(x) __utf16__(x)
%define w(x) __utf32__(x)
db `Test \u306a\U0001abcd\n`
dw u(`Test \u306a\U0001abcd\n`)
dd w(`Test \u306a\U0001abcd\n`)
db `\u306a`
db `\xe3\x81\xaa`
dw __utf16__ "Hello, World!"
nop
mov ax,u(`a`)
mov bx,u(`\u306a`)
mov cx,u(`\xe3\x81\xaa`)
mov eax,u(`ab`)
mov ebx,u(`\U0001abcd`)
mov ecx,w(`\U0001abcd`)
%ifdef ERROR
dw __utf16__ 33
dw __utf16__, 46
dw __utf16__("Hello, World!",16)
dw __utf16__("Hello, World!",16
dw u(`\xff`)
%endif
|