1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-06-03 07:29:37 +00:00

Merge remote-tracking branch 'origin/far-call-isolated' into far-call-isolated-#508

This commit is contained in:
Sven Van de Velde 2023-04-11 10:14:10 +02:00
commit 0393958154
2 changed files with 3 additions and 3 deletions

View File

@ -107,11 +107,11 @@ public class CParser {
*/
public static final String PRAGMA_RESOURCE = "resource";
/**
* #pragma bank(...) specifies the scope of the sequent functions to be located in a bank using a specific banking area.
* #pragma bank(...) changes the current bank. Functionsand variables will be placed in the specified bank.
*/
public static final String PRAGMA_BANK = "bank";
/**
* #pragma nobank specifies the scope of the sequent functions to be near. Segments are defined in the linker file.
* #pragma nobank Changes the current bank to the default bank.
*/
public static final String PRAGMA_NOBANK = "nobank";

View File

@ -298,7 +298,7 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor<Objec
try {
final int size = ctx.getChildCount();
if(size==7) {
final String pragmaBankArea = pragmaParamBankArea(ctx.pragmaParam(0));
final String pragmaBankArea = pragmaParamName(ctx.pragmaParam(0));
final Number pragmaBank = pragmaParamNumber(ctx.pragmaParam(1));
this.currentBank = new Bank(pragmaBankArea, pragmaBank.longValue());
} else {