Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
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
Le10.Anh@live.uwe.ac.uk
Worksheet
Commits
03652c35
Commit
03652c35
authored
5 months ago
by
Le10.Anh@live.uwe.ac.uk
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
396b36df
Loading
Loading
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
asm_io.inc
+30
-0
30 additions, 0 deletions
asm_io.inc
with
30 additions
and
0 deletions
asm_io.inc
0 → 100644
+
30
−
0
View file @
03652c35
extern
read_int
,
print_int
,
print_string
extern
read_char
,
print_char
,
print_nl
extern
sub_dump_regs
,
sub_dump_mem
,
sub_dump_math
,
sub_dump_stack
%
macro
dump_regs
1
push
dword
%
1
call
sub_dump_regs
%
endmacro
;
;
usage
:
dump_mem
label
,
start
-
address
,
# paragraphs
%
macro
dump_mem
3
push
dword
%
1
push
dword
%
2
push
dword
%
3
call
sub_dump_mem
%
endmacro
%
macro
dump_math
1
push
dword
%
1
call
sub_dump_math
%
endmacro
%
macro
dump_stack
3
push
dword
%
3
push
dword
%
2
push
dword
%
1
call
sub_dump_stack
%
endmacro
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