27. Assembly (x64, Linux, as)
.text
.global _start
_start:
movl $len,%edx
movl $msg,%ecx
movl $1,%ebx
movl $4,%eax
int $0x80
movl $0,%ebx
movl $1,%eax
int $0x80
.data
msg:
.byte 0b110010,0b110110
len = . - msg
Explanation
I don't really know Assembly as, and information online seems hard to find ,so this is modified from the Hello World test on TIO.
The main issue here is that we lack the 2
byte, (turns out we did, but hey looks like I saved a 2 for the next answer) this makes it relatively hard to print 26
. We can't use raw ascii or even Hexadecimal (0x32
) so I ended up using binary.
msg:
.byte 0b110010,0b110110
Tells it to output the two bytes 2
and 6
.