summaryrefslogtreecommitdiff
path: root/jpg/getword
diff options
context:
space:
mode:
Diffstat (limited to 'jpg/getword')
-rw-r--r--jpg/getword7
1 files changed, 7 insertions, 0 deletions
diff --git a/jpg/getword b/jpg/getword
new file mode 100644
index 0000000..50ad07f
--- /dev/null
+++ b/jpg/getword
@@ -0,0 +1,7 @@
+getword:
+ movl datap, %edx
+ movzwl (%edx), %eax
+ addl $2, %edx
+ xchgb %al, %ah
+ movl %edx, datap
+ ret