Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
micropython/ports/esp8266/gchelper.s
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22 lines (19 sloc)
503 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.file "gchelper.s" | |
.text | |
.align 4 | |
.global gc_helper_get_regs_and_sp | |
.type gc_helper_get_regs_and_sp, @function | |
gc_helper_get_regs_and_sp: | |
# store regs into given array | |
s32i.n a8, a2, 0 | |
s32i.n a9, a2, 4 | |
s32i.n a10, a2, 8 | |
s32i.n a11, a2, 12 | |
s32i.n a12, a2, 16 | |
s32i.n a13, a2, 20 | |
s32i.n a14, a2, 24 | |
s32i.n a15, a2, 28 | |
# return the sp | |
mov a2, a1 | |
ret.n | |
.size gc_helper_get_regs_and_sp, .-gc_helper_get_regs_and_sp |