Skip to content

Commit

Permalink
Add the latest babygo asm files
Browse files Browse the repository at this point in the history
  • Loading branch information
DQNEO committed Jul 5, 2023
1 parent bc2cdf4 commit a4f7f5e
Show file tree
Hide file tree
Showing 29 changed files with 225,331 additions and 0 deletions.
Empty file added bbg/.gitkeep
Empty file.
434 changes: 434 additions & 0 deletions bbg/bbg-bbg-bbg.d/github.com@DQNEO@babygo@lib@ast.s

Large diffs are not rendered by default.

1,802 changes: 1,802 additions & 0 deletions bbg/bbg-bbg-bbg.d/github.com@DQNEO@babygo@lib@fmt.s

Large diffs are not rendered by default.

1,110 changes: 1,110 additions & 0 deletions bbg/bbg-bbg-bbg.d/github.com@DQNEO@babygo@lib@mylib.s

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions bbg/bbg-bbg-bbg.d/github.com@DQNEO@babygo@lib@mylib2.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#=== Package github.com/DQNEO/babygo/lib/mylib2
#--- walk
# Package types:
#--- string literals
.data
#--- global vars (static values)

#--- global vars (dynamic value setting)
.text
.global mylib2.__initGlobals
mylib2.__initGlobals:
ret

# Function mylib2.Sum2
.global mylib2.Sum2
mylib2.Sum2: # args 40, locals 0
pushq %rbp
movq %rsp, %rbp
leaq 32(%rbp), %rax # local variable ".r0"
pushq %rax # variable address
leaq 16(%rbp), %rax # local variable "a"
pushq %rax # variable address
popq %rax # address of T_INT
movq 0(%rax), %rax # load 64 bit
pushq %rax
leaq 24(%rbp), %rax # local variable "b"
pushq %rax # variable address
popq %rax # address of T_INT
movq 0(%rax), %rax # load 64 bit
pushq %rax
popq %rcx # right
popq %rax # left
addq %rcx, %rax
pushq %rax
popq %rax # result of T_INT
popq %rsi # lhs addr
pushq %rsi # place to save
popq %rsi # place to save
movq %rax, 0(%rsi) # assign quad
leave
ret
leave
ret
# ------- Dynamic Types ------
.data


Loading

0 comments on commit a4f7f5e

Please sign in to comment.