1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-16 09:29:32 +00:00

Remove RAM-trampoline array support

This commit is contained in:
Lauri Kasanen 2017-05-18 16:11:39 +03:00
parent f6fa74a636
commit 4c05c46cd1
3 changed files with 3 additions and 8 deletions

View File

@ -1232,9 +1232,8 @@ parameter with the <tt/#pragma/.
<sect1><tt>#pragma wrapped-call (&lt;push&rt;, &lt;name&gt;, &lt;identifier&gt;)</tt><label id="pragma-wrapped-call"><p>
This pragma sets a wrapper for functions, often used for trampolines.
The name is either a function returning void and taking no parameters,
or the address of an array in memory (for a RAM trampoline). The identifier
is an 8-bit number that's set to tmp4.
The name is a function returning void and taking no parameters.
The identifier is an 8-bit number that's set to tmp4.
The address of the function is passed in ptr4.

View File

@ -509,7 +509,7 @@ static void WrappedCallPragma (StrBuf* B)
Entry = FindSym(Name);
/* Check if the name is valid */
if (Entry && Entry->Flags & (SC_FUNC | SC_STORAGE)) {
if (Entry && Entry->Flags & SC_FUNC) {
PushWrappedCall(Entry, Val);
Entry->Flags |= SC_REF;

View File

@ -22,10 +22,6 @@ void func3() {
}
unsigned char array[30];
#pragma wrapped-call(push, array, 0)
#pragma wrapped-call(pop)
#pragma wrapped-call(push, trampoline_inc, 0)
void func2() {