mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-08-11 02:25:17 +00:00
Merge remote-tracking branch 'origin/far-call-isolated' into far-call-isolated-#508
This commit is contained in:
@@ -107,11 +107,11 @@ public class CParser {
|
|||||||
*/
|
*/
|
||||||
public static final String PRAGMA_RESOURCE = "resource";
|
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";
|
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";
|
public static final String PRAGMA_NOBANK = "nobank";
|
||||||
|
|
||||||
|
@@ -298,7 +298,7 @@ public class Pass0GenerateStatementSequence extends KickCParserBaseVisitor<Objec
|
|||||||
try {
|
try {
|
||||||
final int size = ctx.getChildCount();
|
final int size = ctx.getChildCount();
|
||||||
if(size==7) {
|
if(size==7) {
|
||||||
final String pragmaBankArea = pragmaParamBankArea(ctx.pragmaParam(0));
|
final String pragmaBankArea = pragmaParamName(ctx.pragmaParam(0));
|
||||||
final Number pragmaBank = pragmaParamNumber(ctx.pragmaParam(1));
|
final Number pragmaBank = pragmaParamNumber(ctx.pragmaParam(1));
|
||||||
this.currentBank = new Bank(pragmaBankArea, pragmaBank.longValue());
|
this.currentBank = new Bank(pragmaBankArea, pragmaBank.longValue());
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user