Create correctly sized csa descriptors in the Basic compiler.
This commit is contained in:
parent
cb20856aea
commit
436d50b54c
|
@ -199,19 +199,26 @@ int lab;
|
|||
|
||||
genreturns()
|
||||
{
|
||||
int count;
|
||||
int nr;
|
||||
|
||||
nr= genlabel();
|
||||
C_df_dnam("returns");
|
||||
C_rom_ilb((label) nr);
|
||||
C_rom_cst((arith)1);
|
||||
C_rom_cst((arith) (gosubcnt-1));
|
||||
C_rom_cst((arith) (gosubcnt-2));
|
||||
|
||||
count = 0;
|
||||
while ( gosubhead)
|
||||
{
|
||||
C_rom_ilb((label) gosubhead->emlabel);
|
||||
gosubhead= gosubhead->nextlist;
|
||||
count++;
|
||||
}
|
||||
|
||||
if (count != (gosubcnt-1))
|
||||
error("gosub count table mismatch");
|
||||
|
||||
C_df_ilb((label) nr);
|
||||
C_loc((arith) 1);
|
||||
C_cal("error");
|
||||
|
|
Loading…
Reference in a new issue