-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
225,331 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
1,802 changes: 1,802 additions & 0 deletions
1,802
bbg/bbg-bbg-bbg.d/github.com@DQNEO@babygo@lib@fmt.s
Large diffs are not rendered by default.
Oops, something went wrong.
1,110 changes: 1,110 additions & 0 deletions
1,110
bbg/bbg-bbg-bbg.d/github.com@DQNEO@babygo@lib@mylib.s
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
Oops, something went wrong.