💾 Archived View for cugi.ie › aminet › 1698373946.gmi captured on 2023-11-04 at 11:49:09. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Author: larsonmars at email.de (Lars Stockmann) Uploader: larsonmars email de (Lars Stockmann) Type: util/boot Version: 0.9 Architecture: m68k-amigaos >= 1.3 Distribution: Aminet Kurz: Legt System infos in Umgebungsvariablen Date: 2023-10-26 Readme: http://aminet.net/util/boot/sysvars.readme Downloads: 152
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 (see NOTES for OS 1.3)
FPU: installed FPU, one of 68881, 68882, internal (for non-LC/EC 040 and
060 CPUs), or empty if no FPU is available (see NOTES for OS 1.3)
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
- On OS 1.3, CPUs > 68020 are currently detected as 68020 and FPUs are detected
as 68881
- 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 Chipmem, Fastmem, and Slowmem
(especially to distinguish Amiga 5000 trapdoor/slow memory from actual
Z2/Z3 Fast memory)
- Add RTG variable to enable/disable stuff like FBlit or swap screen mode
configurations
- For OS 1.3: add detection for CPUs > 68020 and at least the 68882
- Add full support for Vampire
_____________________________________________________________________________
LICENSE
The code is licensed under the MIT License
_____________________________________________________________________________
RELEASE HISTORY
Version 0.9:
- Added limited OS 1.3 Support (CPU/FPU detection up to 6802/68881) via a
custom SetVar implementation (setenv-like functionality)
- small code improvements
Version 0.8:
- Initial Release on GitHub and Aminet
PERMISSION UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME ---------- ----------- ------- ------- ------ ---------- ------------ ---------- [unknown] 4861 14831 32.8% -lh5- a4e3 Oct 26 08:53 source/sysvars.S [unknown] 690 976 70.7% -lh5- 1e22 Oct 26 08:53 sysvars [unknown] 1808 4146 43.6% -lh5- 5abf Oct 26 08:53 sysvars.readme ---------- ----------- ------- ------- ------ ---------- ------------ ---------- Total 3 files 7359 19953 36.9% Oct 27 02:32
Aminet © 1992-2023 Urban Müller and the Aminet team. Aminet contact address: <aminet aminet net>