Author: larsonmars at email.de (Lars Stockmann) Uploader: larsonmars email de (Lars Stockmann) Type: util/boot Version: 0.8 Architecture: m68k-amigaos >= 2.0.4 Distribution: Aminet Kurz: Legt System infos in Umgebungsvariablen Date: 2023-10-17 Readme: http://aminet.net/util/boot/sysvars.readme Downloads: 8
http://aminet.net/util/boot/sysvars.lha
___ _ __ _ _ ____ ____
/ __| | / _| | | |/\ | _ \/ ___)
| (__| | | (_| | | / \| | \| (__
\__ \ \/\__| | |/ /\ | |_/ \__ \
) )\ / )\ \// ____| _ ( ) )
__/ // / __/ /\ / / | | \ \_/ /
(___//_/ |___/ V_/ |_| (___/
https://github.com/larsonmars/sysvars
sysvars is a small CLI tool for the Amiga that creates several environment
variables holding valuable system information. These variables can be used,
for example, in the startup-sequence to enable/disable certain patches,
assigns, and so on.
The following variables are Set
CPU: installed CPU, for example 68030
FPU: installed FPU, one of 68881, 68882, internal (for non-LC/EC 040 and
060 CPUs), or empty if no FPU is available
Chipset: installed graphics chipset, one of OCS, ECS, AGA
VFreq: the vertical frequency of the native display, can be either 50 (PAL
50Hz) or 60 (NTSC 60Hz)
UAE: The version of UAE detected, empty if UAE was not detected
_____________________________________________________________________________
NOTES
- 68080 (Vampire) support for the CPU is experimental, I do not own one, so I
cannot test it
- SAGA (Vampire) support is not yet available. I do not own one, so I do not
know what VPOSR might be on the Vampire.
- UAE is detected via the uae.resource, which is only there if a virtual hard
drive or another UAE expansion to be enabled. Thus, detection will fail on
floppy-only-unexpanded Amiga configurations
- The tool currently requires at least dos.library version 36 (Amiga OS 2.x)
due to the use of SetVar. OS 1.3 support will be considered in a future
version (using an alternative for the SetVar calls).
_____________________________________________________________________________
WHY SUCH A TOOL?
As many Amiga users, I have multiple Amigas, booting from flash memory.
However, I do not want to maintain multiple operating system configurations.
In the past, I have used several tools to branch during startup, which
yielded a complex startup-sequence/user-startup and an extended boot time.
I wanted a small fast utility that gives me neat environment variables, so I
can write something like this in the startup-sequence:
IF $CPU GE 68020
MCP
ENDIF
or
IF $FPU EQ internal
FastIEEE
ENDIF
Also, I always wanted to learn M68k assembler. After 30 years using an Amiga
this was about time!
_____________________________________________________________________________
FUTURE PLANS
The tool is already quite useable, but there are still some things missing,
which I want to fix in future versions:
- Add memory-related variables, such as ChipRam, FastRam, and SlowRam
(especially to distinguish slow ram from fast ram)
- Add RTG variable to enable/disable stuff like FBlit or swap screen mode
configurations
- Make it work in OS 1.3 (because, why not?)
- Add full support for Vampire
_____________________________________________________________________________
LICENSE
The code is licensed under the MIT License
PERMISSION UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME ---------- ----------- ------- ------- ------ ---------- ------------ ---------- drw-rw-rw- larso/0 0 0 ****** -lhd- 0000 Oct 17 23:19 source/ -rw-rw-rw- larso/0 2718 8801 30.9% -lh7- e566 Oct 17 23:19 source/sysvars.s -rw-rw-rw- larso/0 539 788 68.4% -lh7- 26e9 Oct 17 23:31 sysvars -rw-rw-rw- larso/0 1595 3512 45.4% -lh7- 49c7 Oct 17 23:21 sysvars.readme ---------- ----------- ------- ------- ------ ---------- ------------ ---------- Total 4 files 4852 13101 37.0% Oct 18 01:20
Aminet © 1992-2023 Urban Müller and the Aminet team. Aminet contact address: <aminet aminet net>