AminetAminet
Search:
85440 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/wb/BaseConv.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric iconother icon
No screenshot available
Short:Convert numbers between bin/oct/dec/hex
Author:Kim Fastrup Larsen
Uploader:kimflarsen hotmail com (Kim Fastrup Larsen)
Type:util/wb
Version:1.3
Architecture:m68k-amigaos
Date:2026-07-23
Download:util/wb/BaseConv.lha - View contents
Readme:util/wb/BaseConv.readme
Downloads:2753

New in version 1.3
------------------

- Added an option to show hex numbers in uppercase.
- Improved font-sensitive layout.
- Switched from Standard C Library I/O to a basic buffered
  I/O implementation of my own, shaving several kilobytes
  off the executable.


Base Converter
--------------

This is a little Workbench utility that lets you convert
numbers between binary, octal, decimal and hexadecimal. Sim-
ply enter a number in one of the string gadgets, press the
Return key, and the other three will be updated.

Using the settings menu, you can choose, for each base,
whether the current number should be displayed as a signed
or unsigned value, and whether hexadecimal numbers should
use uppercase letters.

When you save your settings, the size and position of the
window is saved as well.

The program will run on all Amigas (Kickstart 1.2 and
later), but also takes advantage of features provided by
later releases, such as tab cycling, input filtering and
new-look menus, and being able to specify the public screen
upon which to open. It will adopt the font of the host
screen.

The program can also be localized on Workbench 2.1 or later.
A translation to Danish is included.

Full source code included.


Configuration
-------------

You can use the SETTINGS tool type or Shell argument to
specify a file or directory in which settings should be
saved (and from which they will be loaded if found).

On Kickstart 2 and later, you can use the PUBSCREEN tool
type or argument to specify the public screen on which you
want to program's window to open.


The source code
---------------

This program is written in C with a bit of assembler as
well.

It demonstrates how some of the things that were introduced
with Kickstart 2.04 can be accomplished on 1.x, including:

- Finding the application's home directory
- Parsing arguments according to a template
- Creating Gadtools-like menus
- Buffered and formatted I/O with minimal bloat

Also includes a toolkit for creating proper requesters in
the style of AutoRequest, creating a couple of different
types of gadgets, and other useful functions.


More stuff
----------

I have released several projects on Aminet. Almost all of
them include source code. Here are a few of the more useful
ones:

ScreenTime - A highly configurable screen clock with a popup
calendar:

 https://aminet.net/package/util/time/ScreenTime

ToolsMenu - Add tools and projects to the Workbench Tools
menu with a simple graphical user interface:

 https://aminet.net/package/util/cdity/ToolsMenu

Character Map - Browse your Amiga's character set and copy
characters to the system clipboard:

 https://aminet.net/package/text/misc/CharacterMap

Labyrinth - Remake of a Commodore 64 game:

 https://aminet.net/package/game/misc/labyrinth64

You can get a list of all my projects with this link:

 https://aminet.net/search?readme=kimflarsen


History
-------

1.3 (Jul 23, 2026)

- Added an option to show hex numbers in uppercase.
- Improved font-sensitive layout
- Switched from Standard C Library I/O to a basic buffered
  I/O implementation of my own, shaving several kilobytes
  off the executable.

1.2.2 (Oct 30, 2024)

- Fixes and improvements.

1.2.1 (Jul 21, 2024)

- Will now suppress DOS requesters asking to insert ENV: or
  ENVARC: if these are not mounted.
- Now activates a "busy" state while saving settings.
- For those interested in the source code, the requester
  code now lays out buttons like EasyRequest, ie. equally
  spaced apart.

1.2 (Jun 28, 2024)

- Gadget labels now indicate a gadget's shortcut key by
  underlining a character à la GadTools.
- Now works better on public screens with unusual pen ar-
  rangements.
- Now updates the font used for menus when preferences are
  changed on Workbench 1.2/1.3.

1.1 (May 30, 2024)

- Now refreshes the window when preferences are changed on
  Workbench 1.2/1.3.

1.0 (May 10, 2024)

- Initial release.


Contents of util/wb/BaseConv.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[Amiga]                    344     900  38.2% -lh5- 6fc7 Jul 23 12:12 BaseConv.info
[Amiga]                   9263   13840  66.9% -lh5- 33cc Jul 23 12:12 BaseConv/BaseConv
[Amiga]                    310     436  71.1% -lh5- cdf9 Jul 23 12:12 BaseConv/BaseConv.info
[Amiga]                    282     442  63.8% -lh5- 5b4a Jul 23 12:12 BaseConv/Catalogs/dansk/BaseConv.catalog
[Amiga]                  12641   35147  36.0% -lh5- 7994 Jul 23 12:12 BaseConv/gpl-3.0.txt
[Amiga]                    195     370  52.7% -lh5- accd Jul 23 12:12 BaseConv/gpl-3.0.txt.info
[Amiga]                   2191    4698  46.6% -lh5- 0932 Jul 23 12:12 BaseConv/ReadMe
[Amiga]                    193     370  52.2% -lh5- 6cdb Jul 23 12:12 BaseConv/ReadMe.info
[Amiga]                  46414   46414 100.0% -lh0- 0cb8 Jul 23 12:12 BaseConv_Src.lha
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         9 files   71833  102617  70.0%            Jul 23 22:07
Page generated in 0.03 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>