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

Go to the source code of this file.

Functions

Variablebank_get_address (Environment *_environment, int _bank)
 Emit ASM code for instruction = BANK ADDRESS( ).
Variablebank_get_address_var (Environment *_environment, char *_bank)
 Emit ASM code for instruction = BANK ADDRESS( ).

Function Documentation

◆ bank_get_address()

Variable * bank_get_address ( Environment * _environment,
int _bank )

Emit ASM code for instruction = BANK ADDRESS( ).

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 address of the bank selected

Definition at line 47 of file bank_get_address.c.

◆ bank_get_address_var()

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

Emit ASM code for instruction = BANK ADDRESS( ).

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 address of the bank selected

Definition at line 68 of file bank_get_address.c.