RosettaCodeData/Task/Address-of-a-variable/BBC-BASIC/address-of-a-variable.basic

6 lines
135 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
REM get a variable's address:
y% = ^x%
REM can't set a variable's address, but can access a given memory location (4 bytes):
x% = !y%