Skip to content

Instantly share code, notes, and snippets.

View ox's full-sized avatar
👹
what is this, AIM?

Artem Titoulenko ox

👹
what is this, AIM?
View GitHub Profile
@ox
ox / prob2.s
Created March 29, 2012 15:33 — forked from Codonaut/prob2.s
Tested to work right
.text
.globl
getCharAsInt:
pushl %ebp
movl %esp, %ebp
movl 8(%ebp), %eax
movl 12(%ebp), %edx
addl %edx, %eax
movb (%eax), %al
movsbl %al, %eax