Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
labo
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ISC2
pro
labo
Commits
12d48aea
Commit
12d48aea
authored
1 year ago
by
iliya
Browse files
Options
Downloads
Patches
Plain Diff
feat: ex2 labo3 finished
parent
8229509b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
2-3_asm/.cproject
+2
-2
2 additions, 2 deletions
2-3_asm/.cproject
2-3_asm/src/assembleur.s
+21
-2
21 additions, 2 deletions
2-3_asm/src/assembleur.s
2-3_asm/src/labo2.3_asm.c
+1
-1
1 addition, 1 deletion
2-3_asm/src/labo2.3_asm.c
with
24 additions
and
5 deletions
2-3_asm/.cproject
+
2
−
2
View file @
12d48aea
...
...
@@ -55,7 +55,7 @@
<tool
id=
"com.crt.advproject.link.exe.debug.742972049"
name=
"MCU Linker"
superClass=
"com.crt.advproject.link.exe.debug"
>
<option
id=
"com.crt.advproject.link.arch.1188867588"
name=
"Architecture"
superClass=
"com.crt.advproject.link.arch"
value=
"com.crt.advproject.link.target.cm3"
valueType=
"enumerated"
/>
<option
id=
"com.crt.advproject.link.thumb.1248295488"
name=
"Thumb mode"
superClass=
"com.crt.advproject.link.thumb"
value=
"true"
valueType=
"boolean"
/>
<option
id=
"com.crt.advproject.link.script.1785160227"
name=
"Linker script"
superClass=
"com.crt.advproject.link.script"
value=
"
labo2_
3_asm_Debug.ld"
valueType=
"string"
/>
<option
id=
"com.crt.advproject.link.script.1785160227"
name=
"Linker script"
superClass=
"com.crt.advproject.link.script"
value=
"
2-
3_asm_Debug.ld"
valueType=
"string"
/>
<option
id=
"com.crt.advproject.link.manage.994083104"
name=
"Manage linker script"
superClass=
"com.crt.advproject.link.manage"
value=
"true"
valueType=
"boolean"
/>
<option
id=
"gnu.c.link.option.nostdlibs.1585246591"
name=
"No startup or default libs (-nostdlib)"
superClass=
"gnu.c.link.option.nostdlibs"
value=
"true"
valueType=
"boolean"
/>
<option
IS_BUILTIN_EMPTY=
"false"
IS_VALUE_EMPTY=
"false"
id=
"gnu.c.link.option.other.2121008218"
name=
"Other options (-Xlinker [option])"
superClass=
"gnu.c.link.option.other"
valueType=
"stringList"
>
...
...
@@ -139,7 +139,7 @@
<tool
id=
"com.crt.advproject.link.exe.release.1012924607"
name=
"MCU Linker"
superClass=
"com.crt.advproject.link.exe.release"
>
<option
id=
"com.crt.advproject.link.arch.287050390"
name=
"Architecture"
superClass=
"com.crt.advproject.link.arch"
value=
"com.crt.advproject.link.target.cm3"
valueType=
"enumerated"
/>
<option
id=
"com.crt.advproject.link.thumb.1115921405"
name=
"Thumb mode"
superClass=
"com.crt.advproject.link.thumb"
value=
"true"
valueType=
"boolean"
/>
<option
id=
"com.crt.advproject.link.script.754134938"
name=
"Linker script"
superClass=
"com.crt.advproject.link.script"
value=
"
labo2_
3_asm_Release.ld"
valueType=
"string"
/>
<option
id=
"com.crt.advproject.link.script.754134938"
name=
"Linker script"
superClass=
"com.crt.advproject.link.script"
value=
"
2-
3_asm_Release.ld"
valueType=
"string"
/>
<option
id=
"com.crt.advproject.link.manage.1283042874"
name=
"Manage linker script"
superClass=
"com.crt.advproject.link.manage"
value=
"true"
valueType=
"boolean"
/>
<option
id=
"gnu.c.link.option.nostdlibs.2116952709"
name=
"No startup or default libs (-nostdlib)"
superClass=
"gnu.c.link.option.nostdlibs"
value=
"true"
valueType=
"boolean"
/>
<option
IS_BUILTIN_EMPTY=
"false"
IS_VALUE_EMPTY=
"false"
id=
"gnu.c.link.option.other.2082339787"
name=
"Other options (-Xlinker [option])"
superClass=
"gnu.c.link.option.other"
valueType=
"stringList"
>
...
...
This diff is collapsed.
Click to expand it.
2-3_asm/src/assembleur.s
+
21
−
2
View file @
12d48aea
...
...
@@ -29,7 +29,7 @@ funcexo1:
eor
r0
,
r2
eor
r0
,
r3
str
r0
,
[
r4
]
pop
{
r4
}
pop
{
r4
}
//
restitution
du
registre
bx
lr
...
...
@@ -58,8 +58,27 @@ mult32:
*****************************************************/
.
thumb_func
funcexo2
:
push
{
r4
,
r5
,
lr
}
//
sauvegarde
du
registre
bl
mult32
cmp
r1
,
#
1
beq
err_ex2
mov
r4
,
r0
mov
r0
,
r2
mov
r1
,
r3
bl
mult32
cmp
r1
,
#
1
beq
err_ex2
mov
r5
,
r0
adds
r4
,
r5
bhi
err_ex2
mov
r0
,
r4
pop
{
r4
,
r5
,
lr
}
//
restitution
du
registre
bx
lr
bx
lr
err_ex2
:
pop
{
r4
,
r5
,
lr
}
//
restitution
du
registre
mov
r0
,
#
0
bx
lr
/*****************************************************
...
...
This diff is collapsed.
Click to expand it.
2-3_asm/src/labo2.3_asm.c
+
1
−
1
View file @
12d48aea
...
...
@@ -24,7 +24,7 @@ uint32_t funcexo2(uint32_t a, uint32_t b, uint32_t c, uint32_t d);
int
funcexo3
(
numbers_t
s
);
/* global variables */
int
exo
=
1
;
// change this number with the exercise number you want to test;
int
exo
=
2
;
// change this number with the exercise number you want to test;
int
main
(
void
)
{
...
...
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