How to resolve the algorithm Environment variables step by step in the BASIC programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Environment variables step by step in the BASIC programming language

Table of Contents

Problem Statement

Show how to get one of your process's environment variables. The available variables vary by system;   some of the common ones available on Unix include:

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Environment variables step by step in the BASIC programming language

Source code in the basic programming language

x$ = ENVIRON$("path")
PRINT x$


PRINT GETENVIRON$("PATH")

100 ASK BORDER VAR01
110 ASK DEFAULT CHANNEL VAR02
120 ASK EDITOR BUFFER VAR03
130 ASK EDITOR KEY VAR04
140 ASK EDITOR VIDEO VAR05
150 ASK FAST SAVE VAR06
160 ASK INTERRUPT KEY VAR07
170 ASK INTERRUPT NET VAR08
180 ASK INTERRUPT STOP VAR09
190 ASK KEY CLICK VAR10
200 ASK KEY DELAY VAR11
210 ASK KEY RATE VAR12
220 ASK NET CHANNEL VAR13
230 ASK NET MACHINE VAR14
240 ASK REM1 VAR15
250 ASK REM2 VAR16
260 ASK SERIAL BAUD VAR17
270 ASK SERIAL FORMAT VAR18
280 ASK STATUS VAR19
290 ASK SOUND BUFFER VAR20
300 ASK SPEAKER VAR21
310 ASK TAPE LEVEL VAR22
320 ASK TAPE SOUND VAR23
330 ASK TIMER VAR24
340 ASK VIDEO COLOR VAR25
350 ASK VIDEO MODE VAR26
360 ASK VIDEO X VAR27
370 ASK VIDEO Y VAR28

ASK machine-option-code var

10 PRINT "The border colour is "; PEEK (23624): REM bordcr
20 PRINT "The ramtop address is "; PEEK (23730) + 256 * PEEK (23731): REM ramtop
30 POKE 23609,50: REM set keyboard pip to 50

  

You may also check:How to resolve the algorithm Chowla numbers step by step in the jq programming language
You may also check:How to resolve the algorithm Repunit primes step by step in the Ruby programming language
You may also check:How to resolve the algorithm Miller–Rabin primality test step by step in the Icon and Unicon programming language
You may also check:How to resolve the algorithm Text processing/1 step by step in the J programming language
You may also check:How to resolve the algorithm Day of the week step by step in the zkl programming language