diff options
author | midipix <writeonce@midipix.org> | 2015-04-05 17:05:57 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-04-05 17:05:57 -0400 |
commit | 296178913c5dfbc2b35842fc16ed680ef51fd402 (patch) | |
tree | 6720928dbc03c3d656229d2509eda38f6eb0628b /src/setjmp/nt32 | |
parent | 20a5ca45ef2f5716e8f2dea42c7e8a6b3367619f (diff) | |
download | mmglue-296178913c5dfbc2b35842fc16ed680ef51fd402.tar.bz2 mmglue-296178913c5dfbc2b35842fc16ed680ef51fd402.tar.xz |
nt32: initial commit of core port files.
signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
Diffstat (limited to 'src/setjmp/nt32')
-rw-r--r-- | src/setjmp/nt32/longjmp.s | 9 | ||||
-rw-r--r-- | src/setjmp/nt32/setjmp.s | 14 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/setjmp/nt32/longjmp.s b/src/setjmp/nt32/longjmp.s new file mode 100644 index 0000000..095a47f --- /dev/null +++ b/src/setjmp/nt32/longjmp.s @@ -0,0 +1,9 @@ +.text +.globl ___longjmp +.globl __longjmp +.globl _longjmp + +___longjmp: +__longjmp: +_longjmp: + test %edx, %edx # is val zero? diff --git a/src/setjmp/nt32/setjmp.s b/src/setjmp/nt32/setjmp.s new file mode 100644 index 0000000..1865f0c --- /dev/null +++ b/src/setjmp/nt32/setjmp.s @@ -0,0 +1,14 @@ +.text +.globl ___setjmp +.globl __setjmp +.globl _setjmp + +___setjmp: +__setjmp: +_setjmp: + pop (%ecx) # return address + mov %esp, 0x04(%ecx) # caller's stack pointer + push (%ecx) # restore own stack pointer + + xor %eax, %eax + ret |