Article ID: 116300
Article Last Modified on 9/30/2003
/* OVERLAY.H
*/
int Overlay1Func1(void);
int Overlay1Func2(void);
int Overlay1Func3(void);
int Overlay2Func1(void);
int Overlay2Func2(void);
int Overlay2Func3(void);
---------------------------------------------------------------------
/* MAIN.C
Compile options needed: /c /AL /G2 /Gy /Zi /Od
*/
#include "overlay.h"
void main( void )
{
Overlay1Func1();
Overlay1Func2();
Overlay1Func3();
Overlay2Func1();
Overlay2Func2();
Overlay2Func3();
}
---------------------------------------------------------------------
/* OVERLAY1.C
Compile options needed: /c /AL /G2 /Gy /Zi /Od
*/
#include "overlay.h"
int Overlay1Func1(void)
{
int i = 1;
i = i * 2;
return i;
}
int Overlay1Func2(void)
{
int i = 2;
i = i * 2;
return i;
}
int Overlay1Func3(void)
{
int i = 3;
i = i * 2;
return i;
}
---------------------------------------------------------------------
/* OVERLAY2.C
Compile options needed: /c /AL /G2 /Gy /Zi /Od
*/
#include "overlay.h"
int Overlay2Func1(void)
{
int i = 1;
i = i * 2;
return i;
}
int Overlay2Func2(void)
{
int i = 2;
i = i * 2;
return i;
}
int Overlay2Func3(void)
{
int i = 3;
i = i * 2;
return i;
}
---------------------------------------------------------------------
;; OVERLAY.DEF
FUNCTIONS:1 _Overlay1Func2
_Overlay1Func3
_Overlay1Func1 ;; Moving this above Overlay1Func2
;; solves the problem
FUNCTIONS:2 _Overlay2Func1
_Overlay2Func2
_Overlay2Func3
---------------------------------------------------------------------
Additional query words: 4.00 4.01 4.10
Keywords: kb16bitonly KB116300