Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
A
asmc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Giovanni Mascellani
asmc
Commits
ead022a9
Unverified
Commit
ead022a9
authored
Mar 11, 2019
by
Giovanni Mascellani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify return code generation.
parent
02c776b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
asmg/asmg.asm
asmg/asmg.asm
+4
-9
No files found.
asmg/asmg.asm
View file @
ead022a9
...
...
@@ -778,7 +778,7 @@ parse_block_loop:
;; If it is a closed curly brace, then break
cmp
WORD
[
ebx
],
'}'
je
parse_block_
break
je
parse_block_
end
;; Jump to the appropriate handler
cmp
WORD
[
ebx
],
';'
...
...
@@ -832,14 +832,9 @@ parse_block_ret:
call
pop_var
parse_block_ret_emit:
;; Emit code to unwind stack end return
mov
ecx
,
0xc481
; add esp, ??
call
emit16
mov
ecx
,
[
stack_depth
]
shl
ecx
,
2
;; Emit code to unwind stack and return
mov
ecx
,
0xc35dec89
; mov esp, ebp; pop ebp; ret
call
emit32
mov
ecx
,
0xc35d
; pop ebp; ret
call
emit16
jmp
parse_block_loop
...
...
@@ -1089,7 +1084,7 @@ parse_block_push_after_if:
jmp
parse_block_loop
parse_block_
break
:
parse_block_
end
:
;; Emit stack unwinding code
mov
ecx
,
0xc481
; add esp, ??
call
emit16
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment