Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
3dd1c0a8
Commit
3dd1c0a8
authored
10 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
py: Make a function static and comment out those not used.
parent
0178aa9a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
py/asmx64.c
+5
-1
5 additions, 1 deletion
py/asmx64.c
with
5 additions
and
1 deletion
py/asmx64.c
+
5
−
1
View file @
3dd1c0a8
...
...
@@ -281,11 +281,13 @@ void asm_x64_push_i32(asm_x64_t *as, int src_i32) {
}
*/
/*
void asm_x64_push_disp(asm_x64_t *as, int src_r64, int src_offset) {
assert(src_r64 < 8);
asm_x64_write_byte_1(as, OPCODE_PUSH_M64);
asm_x64_write_r64_disp(as, 6, src_r64, src_offset);
}
*/
void
asm_x64_pop_r64
(
asm_x64_t
*
as
,
int
dest_r64
)
{
if
(
dest_r64
<
8
)
{
...
...
@@ -357,7 +359,7 @@ void asm_x64_mov_mem64_to_r64(asm_x64_t *as, int src_r64, int src_disp, int dest
asm_x64_write_r64_disp
(
as
,
dest_r64
,
src_r64
,
src_disp
);
}
void
asm_x64_lea_disp_to_r64
(
asm_x64_t
*
as
,
int
src_r64
,
int
src_disp
,
int
dest_r64
)
{
STATIC
void
asm_x64_lea_disp_to_r64
(
asm_x64_t
*
as
,
int
src_r64
,
int
src_disp
,
int
dest_r64
)
{
// use REX prefix for 64 bit operation
assert
(
src_r64
<
8
);
assert
(
dest_r64
<
8
);
...
...
@@ -365,10 +367,12 @@ void asm_x64_lea_disp_to_r64(asm_x64_t *as, int src_r64, int src_disp, int dest_
asm_x64_write_r64_disp
(
as
,
dest_r64
,
src_r64
,
src_disp
);
}
/*
void asm_x64_mov_i8_to_r8(asm_x64_t *as, int src_i8, int dest_r64) {
assert(dest_r64 < 8);
asm_x64_write_byte_2(as, OPCODE_MOV_I8_TO_R8 | dest_r64, src_i8);
}
*/
STATIC
void
asm_x64_mov_i32_to_r64
(
asm_x64_t
*
as
,
int
src_i32
,
int
dest_r64
)
{
// cpu defaults to i32 to r64, with zero extension
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment