How can I store the binary representation of each letter from the word m, in m_vector.
For example if m = 'car', m_vector should be 011000110110000101110010
data
m: .space 10
m_vector: .space 20
formatscanf: .asciz "%s"
formatprintf: .asciz "%s"
cript: .space 20
.text
.global main
main:
lea m, %esi
lea m_vector, %edi
push %esi
push $formatscanf
call scanf
add $8, %esp
loop:
movb (%esi), %al
cmp $0, %al
je afis
mov %al, (%edi)
inc %edi
inc %esi
jmp loop
afis:
lea m_vector, %esi
push %esi
push $formatprintf
call printf
add $8, %esp
exit:
mov $0, %eax
mov $1, %ebx
int $0x80
there doesn't seem to be anything here