GITLAB

Salvador Abreu / sim2c

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • sim2c
  • ref-impl
  • x
  • sum.as
  • f2c4dc81   added most of the stuff Browse Code ยป
    Salvador Abreu
    2014-03-06 09:18:37 +0000  
sum.as 341 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
	.globl	readInt
	.globl	writeInt
	.globl	readBool
	.globl	writeBool
	.globl	sum
	.text
sum:
# args:   8 bytes
# result: 4 bytes
# locals: 0 bytes
# temps:  0 bytes
#
#     a:	argument (4 bytes)	at (ap)
#     b:	argument (4 bytes)	at -4(ap)
#
	movl	sp, fp
	subl2	$0, sp
	movl	(ap), r0
	movl	-4(ap), r1
	addl3	r1, r0, (r11)
	movl	fp, sp
	rsb