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

misc/emu/spectrum-1.8wip_src.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Sinclair ZX Spectrum Emulator (source)
Author:Peter McGavin
Uploader:amigasourcecodepreservation gmail com
Type:misc/emu
Version:1.8wip
Architecture:generic
Date:2017-04-11
Download:http://aminet.net/misc/emu/spectrum-1.8wip_src.lha - View contents
Readme:http://aminet.net/misc/emu/spectrum-1.8wip_src.readme
Downloads:1317

Source code 1.8wip for the Sinclair ZX Spectrum Emulator by Peter McGavin.
Binaries: For you to compile and update.
Uploaded to aminet for historical preservation.
Many thanks to Peter McGavin for releasing the source code.

This is a SNAPSHOT of the WORK-IN-PROGRESS that what was intended to become 
version 1.8 of the emulator (with 128k support etc) - and it was supposed
to be updated further.

Author notes (taken from 1.7, so might not be totally accurate):
============

There is a top level script, build.script, which invokes
compile.script and link.script to make all four standard versions of
of the emulator.

The source files are all assembled with Macro68 Release 2.129 and linked with
blink version 7.2.  I used A68k version 2.71a until about December 1991 (i.e,
Spectrum version v1.0).  I did not have the C= include files until I purchased
Macro68, and there are still many definitions that should be changed to use the
official includes.  Macro68 has all the C= include files preloaded, so
"include" statements are not necessary.

Source files are as follows:

	arp.i		Offsets for arp.library
	common.i	Common definitions (included by all #?.a files)
	z80data.i	Structures used by z80 emulator
	z80macros.i	Macros used by z80 emulator
	checkproc.a	Determine and test processor type
	common.a	Data for common definitions
	debug.a		Z80 monitor
	display.a	Handles all screen output
	help.a		Reads and displays IFF help file
	input.a		Handles keyboard and other IDCMP events
	joystick.a	Handles joystick
	loader.a	Tape loader and disk LOAD/MERGE/SAVE
	loadsave.a	Snapshot loader and saver
	main.a		Main line of program
	ports.a		Like AMIGA.LIB CreatePort() and DeletePort()
	request.a	Handles simple requesters and file requesters
	rom.a		Reads ROM from disk file
	sound.a		Handles audio BEEPs
	tasks.a		Like AMIGA.LIB CreateTask() and DeleteTask()
	window.a	Opens intuition screen, window and menus
	z80.a		The z80 emulator
	z80data.a	Data used by the z80 emulator

	compile.script	CLI "execute" script to assemble all the source files
	link.script	CLI "execute" script to link the executable
	backup.script	CLI "execute" script to back up sources to floppy

In the z80#? files, I used ideas from Ulf Nordquist's CP/M emulator on Fred
Fish disk 165.  I have fixed a few bugs (and probably introduced some new
ones), eliminated self-modifying code, added some instructions that were
missing, implemented interrupts, and generally sped up the code by reorganising
flag and register usage.  There still seem to be a few bugs.

Before assembling you should edit common.i to change a few equates.  If you
look there you will see lots of different options you can select.

Assembling and linking are done from the CLI or SHELL.  Make sure Macro68 and
Blink are installed, cd to the directory with all the source files, then
"execute compile.script" and "execute link.script".  This takes about 35
seconds on an A3000.

If you change only a single ".a" file, you don't need to re-assemble
everything.  Just "macro68 the_changed_file.a -o the_changed_file.o", then
"execute link.script".

If you change a ".i" file, you have to re-assemble all the ".a" files that
include it, directly or indirectly.  It's best just to re-assemble everything.


License
=======
Sinclair ZX Spectrum Emulator is distributed under the terms of the GNU General Public License,
version 2 or later. See the COPYING file for details.

Cheers!
https://twitter.com/AmigaSourcePres


  _____ ___   _   __  __     _   __  __ ___ ___   _   
 |_   _| __| /_\ |  \/  |   /_\ |  \/  |_ _/ __| /_\  
   | | | _| / _ \| |\/| |  / _ \| |\/| || | (_ |/ _ \ 
  _|_| |___/_/ \_\_|_ |_|_/_/_\_\_|__|_|___\___/_/_\_\
 / __|/ _ \| | | | _ \/ __| __|  / __/ _ \|   \| __|  
 \__ \ (_) | |_| |   / (__| _|  | (_| (_) | |) | _|   
 |___/\___/_\___/|_|_\\___|___|__\___\___/|___/|___|_ 
 | _ \ _ \ __/ __| __| _ \ \ / /_\_   _|_ _/ _ \| \| |
 |  _/   / _|\__ \ _||   /\ V / _ \| |  | | (_) | .` |
 |_| |_|_\___|___/___|_|_\ \_/_/ \_\_| |___\___/|_|\_|
                                                      


Contents of misc/emu/spectrum-1.8wip_src.lha
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
-rw-r--r--  1000/1000    12597   35147  35.8% -lh5- 7994 Feb 25 14:05 COPYING.txt
-rw-r--r--  1000/1000     2000    4280  46.7% -lh5- 1bbc Apr 11 09:42 spectrum-1.8wip_src.readme
drwxrwxrwx  1000/1000        0       0 ****** -lhd- 0000 Apr 11 09:27 src/
-rw-rw-rw-  1000/1000      138     302  45.7% -lh5- f430 Dec  7  2001 src/Spectrum-00.info
-rw-rw-rw-  1000/1000      137     302  45.4% -lh5- 81ba Dec  7  2001 src/Spectrum-10.info
-rw-rw-rw-  1000/1000      139     302  46.0% -lh5- b431 Dec  7  2001 src/Spectrum-20.info
-rw-r--r--  1000/1000     1698    4743  35.8% -lh5- 5973 Apr 11 06:54 src/ay-3-8912.a
-rw-r--r--  1000/1000      538    1020  52.7% -lh5- b29d Apr 11 06:54 src/ay-3-8912.h
-rw-r--r--  1000/1000     1508    4722  31.9% -lh5- 721d Apr 11 06:54 src/clock.c
-rw-r--r--  1000/1000      501    1004  49.9% -lh5- 9c02 Apr 11 06:54 src/clock.h
-rw-r--r--  1000/1000     7924   34822  22.8% -lh5- 9996 Apr 11 06:54 src/display.a
-rw-r--r--  1000/1000      563    1331  42.3% -lh5- 93ba Apr 11 06:54 src/display.h
-rw-r--r--  1000/1000      978    2142  45.7% -lh5- b07b Apr 11 06:54 src/displaycpu.c
-rw-r--r--  1000/1000      525    1089  48.2% -lh5- b412 Apr 11 06:54 src/displaycpu.h
-rw-r--r--  1000/1000     1162    3375  34.4% -lh5- 7601 Apr 11 06:54 src/displaytask.c
-rw-r--r--  1000/1000      457     819  55.8% -lh5- 113d Apr 11 06:54 src/displaytask.h
-rw-r--r--  1000/1000     1478    2559  57.8% -lh5- 5b21 Jul 29  2003 src/fill3.z80
-rw-r--r--  1000/1000     3053   11148  27.4% -lh5- e3b2 Apr 11 06:54 src/help.c
-rw-r--r--  1000/1000      454     816  55.6% -lh5- dfb3 Apr 11 06:54 src/help.h
-rwxrwxrwx  1000/1000   155606  315806  49.3% -lh5- ac3e Dec  9  2001 src/includes.gst
-rw-r--r--  1000/1000      750    1891  39.7% -lh5- b92d Apr 11 06:54 src/includes.h
-rwxrwxrwx  1000/1000   162478  332843  48.8% -lh5- 7c6e Dec  9  2001 src/includes128.gst
-rw-r--r--  1000/1000     1384    4074  34.0% -lh5- 4a1e Apr 11 06:54 src/joystick.c
-rw-r--r--  1000/1000      486     883  55.0% -lh5- cd8f Apr 11 06:54 src/joystick.h
-rw-r--r--  1000/1000     2018    7664  26.3% -lh5- 288b Apr 11 06:54 src/keyboard.c
-rw-r--r--  1000/1000      488     933  52.3% -lh5- 02ea Apr 11 06:54 src/keyboard.h
-rw-r--r--  1000/1000     6358   28326  22.4% -lh5- 1b60 Apr 11 06:54 src/main.c
-rw-r--r--  1000/1000     1949    7997  24.4% -lh5- d594 Apr 11 06:54 src/menus.c
-rw-r--r--  1000/1000      529    1057  50.0% -lh5- 2ff3 Apr 11 06:54 src/menus.h
-rw-r--r--  1000/1000     2228    9268  24.0% -lh5- 6f32 Apr 11 06:54 src/mmu.c
-rw-r--r--  1000/1000      612    1446  42.3% -lh5- 52ad Apr 11 06:54 src/mmu.h
-rwxrwxrwx  1000/1000      218     735  29.7% -lh5- 5fc0 May 26  2002 src/notes.txt
-rw-r--r--  1000/1000     1068    9500  11.2% -lh5- e891 Apr 11 06:54 src/public.c
-rw-r--r--  1000/1000     2643    7364  35.9% -lh5- e8b9 Apr 11 06:54 src/public.h
-rw-r--r--  1000/1000     2686    7122  37.7% -lh5- 6679 Apr 11 06:54 src/public.i
-rw-r--r--  1000/1000     1781    5862  30.4% -lh5- b7f7 Apr 11 06:54 src/remap.a
-rw-r--r--  1000/1000      557    1214  45.9% -lh5- 4d6d Apr 11 06:54 src/remap.h
-rw-r--r--  1000/1000     1488    4268  34.9% -lh5- 0eb4 Apr 11 06:54 src/request.c
-rw-r--r--  1000/1000      577    1077  53.6% -lh5- 59f9 Apr 11 06:54 src/request.h
-rw-r--r--  1000/1000      903    1870  48.3% -lh5- ee16 Apr 11 06:54 src/rom.c
-rw-r--r--  1000/1000      525    1044  50.3% -lh5- b7f4 Apr 11 06:54 src/rom.h
-rwxrwxrwx  1000/1000     1465    7451  19.7% -lh5- 8523 Dec  7  2001 src/smakefile
-rw-r--r--  1000/1000     3498   14100  24.8% -lh5- 1476 Apr 11 06:54 src/snapshots.c
-rw-r--r--  1000/1000      494     947  52.2% -lh5- b81b Apr 11 06:54 src/snapshots.h
-rw-r--r--  1000/1000     1612    4545  35.5% -lh5- 391e Apr 11 06:54 src/sound.c
-rw-r--r--  1000/1000      516    1063  48.5% -lh5- 75f0 Apr 11 06:54 src/sound.h
-rw-rw-rw-  1000/1000      140     302  46.4% -lh5- 2c27 Dec  7  2001 src/spec128-20.info
-rw-r--r--  1000/1000     2070    4435  46.7% -lh5- 770f Apr 11 09:22 src/spectrum-1.8wip_src.readme
-rwxrwxrwx  1000/1000    28901  194831  14.8% -lh5- 081e Apr 11 09:38 src/z80.a
-rw-r--r--  1000/1000      546    1415  38.6% -lh5- 7c87 Apr 11 06:54 src/z80.h
-rw-r--r--  1000/1000     7308   38595  18.9% -lh5- 7ae1 Apr 11 06:54 src/z80macros.i
-rw-r--r--  1000/1000      951    2446  38.9% -lh5- c237 Apr 11 06:54 src/z80task.c
-rw-r--r--  1000/1000      458     815  56.2% -lh5- 4199 Apr 11 06:54 src/z80task.h
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total        53 files  431141 1133112  38.0%            Apr 11 20:31

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>