ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
bank_get_size.c File Reference
#include "../../ugbc.h"

Go to the source code of this file.

Functions

Variablebank_get_size (Environment *_environment, int _bank)
 Emit ASM code for instruction = BANK SIZE( ).
Variablebank_get_size_var (Environment *_environment, char *_bank)
 Emit ASM code for instruction = BANK SIZE( ).

Function Documentation

◆ bank_get_size()

Variable * bank_get_size ( Environment * _environment,
int _bank )

Emit ASM code for instruction = BANK SIZE( ).

This function outputs the ASM code to get the size of the shared memory for the given bank.

Parameters
_environmentCurrent calling environment
_bankBank to get size of
Returns
Current size of the bank selected

Definition at line 68 of file bank_get_size.c.

◆ bank_get_size_var()

Variable * bank_get_size_var ( Environment * _environment,
char * _bank )

Emit ASM code for instruction = BANK SIZE( ).

This function outputs the ASM code to get the resident memory address for the given bank.

Parameters
_environmentCurrent calling environment
_bankBank to get address of
Returns
Current size of the bank selected

Definition at line 92 of file bank_get_size.c.