Dice Disk 1 | Dice Disk 2
Dice Disk 3 | Dice Disk 4
Amiga Shopper 33 Disk
## ScuzzBlog: Diaries October 2022

## Entry 19th October 2022: Post 1: D I C E - Retrospective.

**D I C E - Retrospective.**
Has it really been fifteen years since I was busy toiling away
on the Yahoo groups adventuring into DICE. I recall the time very
well as I used the Amiga 4000 and good old 'dial-up' with Line-One
and Miami plus YAM to interact with a group of helpful Amiga C
guys. Took me a while to get my head round it but I feel in the
end I was getting somewhere.
Anyhoo I dragged out my old blogs from February 2007 and dusted
them off. I include also the very useful DICE disk images from the
Amiga Shopper book 'Complete Amiga C' by Cliff Ramshaw. Included
also is an old Amiga Shopper disk with some useful PD disks.

## EXTRA: February 2007

**Subject 01: DICE : My First Steps**
**Subject 02: DICE : Complete Amiga C**
**Subject 03: DICE : The Editor**
**Subject 04: DICE : Danger, Will Robinson! K&R syntax alert!**
**Subject 05: DICE : Failed ReturnCode 20**
**Subject 06: DICE : Analysing a Simple Program**
**Subject 07: DICE : Fun with Numbers**
**Subject 08: DICE : More Fun with those Numbers**
**Subject 09: DICE : Even More Fun with those Numbers**
**Subject 10: DICE : Floating Point**
**Subject 11: DICE : Decision Making**
**Subject 12: DICE : IF**
## Entry 0730: Blogs: 12

**
DICE RETROSPECTIVE: February 2007
**
## Entry 0730: Blog: 1

**
DICE: My First Steps
**
Here are some names for you..
Dave Baker, Matt Dillon, Andy Finkel, Bryce Nesbitt, John
Mainwaring , Mark Schnell and John Toebes.... reads like a
who's who Amiga side early 90's
Also in the batch was AmiTCP/IP by good old Village Tronic
plus disks. ...
Sana-II network device driver specification released by
Commodore Amiga Networking Group.

**
DICE RETROSPECTIVE: February 2007
**
## Entry 0730: Blog: 2

**
Complete Amiga C
**
Back to DICE tonight and a happy few hours with my Complete
Amiga C book, which comes with a registered version of DICE.
The four DD disks ( that's double density ) are copied as
XDCC1-4 on the hard drive and an assign written to the user-
startup. You are then ready to rock and roll. This book is
great cus it assumes you know nothing. And so tonight I have
been through:
What Complete Amiga C will teach you
How to use the book
What is DICE
Amiga libraries and includes
Processors and memory
Programming language
Functions and sub-routines
We then move on to the installation and preliminary usage...
Tomorrow me thinks. Amazing to think this is all on a few
DD disks. That's the great thing about the Amiga... it tends
to do what's written on the tin... and no messing. Straight
in at the deep end, and you pretty well get the whole package.

**
DICE RETROSPECTIVE: February 2007
**
## Entry 0730: Blog: 3

**
The Editor
**
Lesson 1 THE EDITOR
With DICE set up on the computer you can begin by calling up
the DICE editor from the SHELL with the line
dme

**
DICE RETROSPECTIVE: February 2007
**
## Entry 0730: Blog: 4

**
Danger, Will Robinson! K&R syntax alert!
**
Paul writes
> #include

**
DICE RETROSPECTIVE: February 2007
**
## Entry 0730: Blog: 5

**
Failed ReturnCode 20
**
> This is the very very small program I
> refer to in my next post...
>
> #include

**
DICE RETROSPECTIVE: February 2007
**
## Entry 0730: Blog: 6

**
Analysing a Simple Program
**
Tonight... Analysing a simple program
You are prompted to run the editor and enter the following...
#include

**
DICE RETROSPECTIVE: February 2007
**
## Entry 0730: Blog: 7

**
Fun with Numbers
**
Its fun with numbers tonight and variables. I got real stuck
... cus the compiler kept throwing up errors on every line
until I noticed I had put a full stop in the wrong place...
duh !
#include

**
DICE RETROSPECTIVE: February 2007
**
## Entry 0730: Blog: 8

**
More Fun with those Numbers
**
From the book...
If you try mixing several different operators on the same
line, you might notice some odd results. For one thing, there
is the consequence of the integer division as mentioned
earlier, meaning that the expression third/first (ie 42/23)
would give the result 1, rather than 1.826. To compensate
for this C provides an operator called the "modulus" that
will find the remainder. It is written as a percentage sign
and used just like the operators already discussed. For example
the expression 42%23 would give the result 19, the remainder
of 42 divided by 23.
That last bit was the confusing bit. I think however that you
are right. If the number was 88 and 88%23 applied I think the
result would be still 19... And yes if you divide 88 by 23
and times the sum beyond the decimal point by 23 you get 19.
Its a simple case of transposing equations.Thank goodness for
math...

**
DICE RETROSPECTIVE: February 2007
**
## Entry 0730: Blog: 9

**
Even More Fun with those Numbers
**
> Struggling with 42%23 giving 19 at the moment, the
> remainder of 42 divided by 23. I appreciate why
> 42/23 gives 1 and not 1.826 but the 42%23 that's
> confusing.
>
> Operators are your times by, divided by, added etc
> This % modulus which finds the remainder... As I
> say I can't see how 42%23 makes 19...
>
Idiots... Its not the remainder of 42 divided by 23... Its
the remainder times 23. Cus of whole numbers 42 divided by
23 gives 1 and not 1.826. To compensate C creates the modulus
which enables a figure to be achieved to represent this figure
42%23 which establishes the difference between the whole
number and the fraction thereof, in this instance .826 and
multiplies it by the 23 to give a value of 19. I get it now.
I just logged that into the program and ran it and I do
in fact get 1 for 42/23 and 19 for 42%23.
I am using Cygnus ED for writing my programs and then
compiling with the SHELL with the command dcc i.e. dcc total.c
I then check this by going into DOpus and executing the program.
I am also using the Right-Amiga shortcuts a lot...
RA-c copy
RA-x cut
RA-v paste
dme in the SHELL gives the DICE editor. I prefer CED.

**
DICE RETROSPECTIVE: February 2007
**
## Entry 0730: Blog: 10

**
Floating Point
**
Moving on with Amiga C I am now into floating point and also
linking the maths library.
Floating point allows C to handle real numbers with as you
would appreciate a floating point. This is defined by the
keyword 'float'
So now when we declare our variables we can add float to the
statement. Note that any number that is assigned needs the
decimal point. So 0 becomes 0.0
In the example below we also introduce the scanf which unlike
the printf requires an input from the user... So you enter a
number on request. To tell the scanf that it is dealing with
a floating point variable we use "%f" and the second parameter
to be stored must include the '&'
The additional complication here is that when compiling you
need to link the maths library. Now I mistook -lm to be -1m
( minus one m ) and I was an age sorting that out....
To compile you enter
dcc float.c -lm -o float
Where float is the name of the file you created... As below.
You can call it anything. Then when you run the program you
are asked to enter the values, and like magic the total is
the sum there of...
#include

**
DICE RETROSPECTIVE: February 2007
**
## Entry 0730: Blog: 11

**
Decision Making
**
Time for decision making.... and more important the concept
of true or false
This time by example of a program for a simple calculator...
#include

**
DICE RETROSPECTIVE: February 2007
**
## Entry 0730: Blog: 12

**
IF
**
Today I was looking at the IF statement and particularly the
two == next to each other.
#include ## D I C E - Retrospective.

*Last disk only as others are subject to copyright ... *

If you can only see this **CONTENT** window

then click the image above for the full site

*Last updated 19th October 2022*

*Chandraise Kingdom*

*Keep the Faith*

scuzzscink 2022