Skip to content

Instantly share code, notes, and snippets.

@castleberrysam
Last active January 12, 2017 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save castleberrysam/98e87f0dccde4638fb743bde03af77e7 to your computer and use it in GitHub Desktop.
Save castleberrysam/98e87f0dccde4638fb743bde03af77e7 to your computer and use it in GitHub Desktop.
(movl %sp #xff)
(movh %sp #xff)
(movl %ax 7)
(movh %ax 0)
(mov (@+ %sp 0) %ax)
(add %sp -1)
(movl %ax 19)
(mov (@+ %sp 0) %ax)
(add %sp -1)
(movl %ax 112)
(mov (@+ %sp 0) %ax)
(add %sp -1)
(movl %ax 74)
(mov (@+ %sp 0) %ax)
(add %sp -1)
(movl %ax 133)
(mov (@+ %sp 0) %ax)
(add %sp -1)
(movl %ax 0)
(movh %ax 0)
(movl %bx 5)
(movh %bx 0)
(.label ADD5-LOOP)
(add %sp 1)
(mov %cx (@+ %sp 0))
(add %ax %ax %cx)
(add %bx -1)
(brnz %bx ADD5-LOOP)
(or %pc %pc %pc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment