mirror of
https://github.com/cc65/cc65.git
synced 2025-02-08 11:31:34 +00:00
fix setjmp.h
This commit is contained in:
parent
ce6ee1b891
commit
8e5f6b822d
@ -42,8 +42,8 @@ typedef char jmp_buf [5];
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
int __fastcall__ _setjmp (jmp_buf buf);
|
int __fastcall__ __setjmp (jmp_buf buf);
|
||||||
#define setjmp _setjmp /* ISO insists on a macro */
|
#define setjmp __setjmp /* ISO insists on a macro */
|
||||||
void __fastcall__ longjmp (jmp_buf buf, int retval) __attribute__((noreturn));
|
void __fastcall__ longjmp (jmp_buf buf, int retval) __attribute__((noreturn));
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
; 1998-06-06, Ullrich von Bassewitz
|
; 1998-06-06, Ullrich von Bassewitz
|
||||||
; 2015-09-11, Greg King
|
; 2015-09-11, Greg King
|
||||||
;
|
;
|
||||||
; int __fastcall__ setjmp (jmp_buf buf);
|
; int __fastcall__ __setjmp (jmp_buf buf);
|
||||||
;
|
;
|
||||||
|
|
||||||
.export __setjmp
|
.export ___setjmp
|
||||||
|
|
||||||
.import return0
|
.import return0
|
||||||
.importzp sp, ptr1
|
.importzp sp, ptr1
|
||||||
|
|
||||||
__setjmp:
|
___setjmp:
|
||||||
sta ptr1 ; Save buf
|
sta ptr1 ; Save buf
|
||||||
stx ptr1+1
|
stx ptr1+1
|
||||||
ldy #0
|
ldy #0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user