Skip to main content
Commonmark migration
Source Link

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

Try it online!

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.

Next toolbox

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

Try it online!

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.

Next toolbox

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

Try it online!

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.

Next toolbox

added 527 characters in body
Source Link
Wheat Wizard
  • 100k
  • 22
  • 282
  • 661

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

Try it online!

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.

Next toolboxNext toolbox

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

Try it online!

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, 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.

Next toolbox

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

Try it online!

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.

Next toolbox

added 527 characters in body
Source Link
Wheat Wizard
  • 100k
  • 22
  • 282
  • 661

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

Try it online!

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, 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.

Next toolbox

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

Try it online!

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

Try it online!

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, 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.

Next toolbox

Source Link
Wheat Wizard
  • 100k
  • 22
  • 282
  • 661
Loading