Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OS_WorkSheet1
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
k26-chow
OS_WorkSheet1
Commits
34c97347
Commit
34c97347
authored
4 months ago
by
k26-chow
Browse files
Options
Downloads
Patches
Plain Diff
editedd
parent
d172caab
Branches
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
src/asm_io.inc
+30
-0
30 additions, 0 deletions
src/asm_io.inc
with
30 additions
and
0 deletions
src/asm_io.inc
0 → 100644
+
30
−
0
View file @
34c97347
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
\ No newline at end of file
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