Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OS_WORKSHEET
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
C Plus Plus
OS_WORKSHEET
Commits
3d2540f6
Commit
3d2540f6
authored
6 months ago
by
d2-kibblewhite
Browse files
Options
Downloads
Patches
Plain Diff
updated files
parent
588ac21e
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ws1/Task1.asm
+21
-0
21 additions, 0 deletions
ws1/Task1.asm
ws1/src/asm_io.o
+0
-0
0 additions, 0 deletions
ws1/src/asm_io.o
ws1/task1.o
+0
-0
0 additions, 0 deletions
ws1/task1.o
with
21 additions
and
0 deletions
ws1/Task1.asm
0 → 100644
+
21
−
0
View file @
3d2540f6
%include "src/asm_io.inc"
seg
ment
.data
integer1
dd
15
; first int
integer2
dd
6
; second int
seg
ment
.bss
result
resd
1
; space for the result
seg
ment
.text
global
asm_main
asm_main:
pusha
; save all registers
mov
eax
,
[
integer1
]
; load integer1 into eax
add
eax
,
[
integer2
]
; add integer2 to eax
mov
[
result
],
eax
; store the result
call
print_int
; print the result
popa
; restore all registers
mov
eax
,
0
; return 0
ret
This diff is collapsed.
Click to expand it.
ws1/src/asm_io.o
0 → 100644
+
0
−
0
View file @
3d2540f6
File added
This diff is collapsed.
Click to expand it.
ws1/task1.o
0 → 100644
+
0
−
0
View file @
3d2540f6
File added
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