The following example programs are made available from various authors. Please refer to any enclosed documentation regarding copyright and distribution issues. A special thank you to all of the authors for allowing me to post their code.
EASyZONE game V1.0 by: Lee Davison
Game controls. Use [E] and [D] for left forward and reverse and [I] and [K] for right forward and reverse, [SPACE] to fire. Use [P] to start a game. [3] may be used to toggle between the green 2D and the red/blue 3D view. Note the 3D glasses should have the red lens on the left side. This version for Sim68K 3.2 or later
BitMap manipulator by: Lee Davison
This code shows how a bitmap can be rendered at any rotation and zoom just
using fixed point math. The bitmap is a 24bit colour 64 x 64 pixel image
rendered 256 x 256 using 4 x 4 pixel blocks.
[I] and [M] move the origin up and down, [J] and [K] move the origin left and
right. [W] zooms out, [Z] zooms in, [A] rotates the inage anticlockwise and [S]
rotates the image clockwise
EhBASIC - A complete BASIC interpreter
written for EASy68K. Includes support for graphics.
Be sure to check
Lee
Davison's page for any updates and BASIC programs.
This link is to a file on our server located
in Michigan, U.S.A. Lee's site is in the UK.
BASIC programs for EhBASIC.
Use the command LOAD "name.bas" in EhBASIC to load the program. Then RUN to start it.
graphics.bas
startrek.bas
Lee's Digital Clock - Written in assembly language. Way nicer than my example.
Lee's MHz benchmark for the EASy68k
simulator 2004/4/4
This code attempts to gauge the effective 68000 clock speed in MHz.
This
is not a serious benchmark test as there are too many factors to
take into
account when running in a multitasking environment. This is
demonstrated
by the, sometimes wildly, varying results. (Still a good example
program, thanks again Lee. CK)
Lee's Pseudo random number generator 2005/1/4
This code is an attempt to gauge the effectiveness of
variations on the
shift register type of pseudo random number generator. The PRNG code is
similar to that used in the RND() function in EhBASIC68.
Lee's Eight Eights Brain Teaser
2005/2/22 (requires Sim68K v2.9.6 or later)
Eight eights problem. on startup the hardware display
should be blank
except an eight in the rightmost digit, the aim is to
have all the eight
digits show eight. This can be done using the eight
switches below the
display, the shortest sequence to do this takes 45
switches.
(Prof Kelly: Lee had already removed all of his comments, I
went one step further and changed all his labels.)
Lee's
Volcano, demonstrates graphics with double
buffering.
Lee's
Flame (Mmmm! Toasty)
Lee's Rain2, rain drop patterns with
double buffering. (Now Even Faster!)
Other talented programmers who have donated example programs to EASy68K. Thank you all.
Paint by: Muhammad Ali Awan
Tetris style game by: Martin Wilson
Pong game by: Neil Richardson
Fast Floating Point Calculator for the
68000:
Submitted by Paul
Santa-Maria
CALC operations: + add, - subtract, negate, * multiply,
** power, / divide,
? compare, $ specify floating point number in hexadecimal,
( parenthesis, SQRT( square root, SIN( sine, COS( cosine,
TAN( tangent, EXP( exponent, LOG( logorithm, ATAN( arctangent
SINH( hyperbolic sine, COSH( hyperbolic cosine, TANH(
hyperbolic tangent
TST( test, NEG( negate, ABS( absolute value, INT( integer
The calculator will flag overflow, divide by zero, and negative square root
errors.
Conway's Life v3.2 - Nice
implementation. This version uses Structured Assembly. Load/Save patterns
Brick Out style game - Good demonstration of graphics and sound
Pellet Eater - Classic arcade game. Good
demonstration of graphics.
Evil - By: Emerson Williams
Follows mouse around on screen radiating
lines.
Keyboard - By: Emerson Williams
A musical keyboard
3D Wireframe Cube
- A simple example. Not very
optimized. Use arrow keys to move the cube. Shift + Up/Down arrows to zoom
in/out. Demonstrates use of Double Buffering for smoother graphics.
Printing Example - Demonstrates how to use Trap Task #10 to print from your 68000 program.
Structured Syntax Example - Determines if the user input number is prime. Used as an example of structured assembly.
Mouse Read & Window Size Example - Demonstrates reading the mouse and changing the size of the output window.
Student Projects Page - Programs written by students in CIS 268 Assembly Language and Computer Architecture.
Visitors Since
Apr-29-2004
Last Updated
July 11, 2008