LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 10-15-2012, 09:53 PM   #1
lkraemer
Member
 
Registered: Aug 2008
Posts: 111

Rep: Reputation: 10
[HOWTO] - Z80 Emulator - Slackware 14



HOWTO: Z80 Emulator - Slackware 14


This HOWTO: will guide you through the process of getting MYZ80 by Simeon Cran running on Slackware 14 under DOSBox.

PREWORK:
1. Locate the myz80.zip, and extract the contents to a folder named Z80-Sim.
http://www.z80.de/myz80.zip

2. Install DOSBox via SlackBuilds.org

REF:
http://www.dosbox.com
http://dosbox.sourceforge.net/wiki

3. Read the Documentation in the Z80-Sim Subdirectory.

4. DOSBox - Command Summary
The following commands can be used in DOSBbox:
Quote:
intro
intro mount
intro cdrom
intro special
help
help /all

CNTL F11 Slow down Emulation - Decrease DOSBox Cycles
CNTL F12 Speed up Emulation - Increase DOSBox Cycles
ALT-ENTER Toggle to FULL Screen & Normal
There are several special commands that are shown on the help screens.


5. Testing DOSBox commands and methods.
Let's use this example as a guide for the commands we will need to use to mount and unmount the directory.

I had several recipes that were saved in C:\pw\2_LDK\Cookin on an old Dos machine. I copied the
complete C:\pw folder to /home/larry/C:/. This folder will be mounted as C: Drive in DOSBox so the
EXE, COM, or BAT files can be executed. To mount your C: drive, you will use the mount command to
mount the Linux folder as c and then change to Drive C:\> and execute your old DOS Program.

I executed DOSBox from the Slackware XFCE menu.

Start DOSBox via:
APPLICATIONS MENU -> SYSTEM -> DOSBox

When the dosbox window opened I typed the following to mount a SUBDIRECTORY as Drive C.
So, when I change to Drive C, I am really pointing at /home/larry/pw

DOSBox positions you at Drive z:

Code:
    mount c ~/C:
    C:
    dir/p
    cd pw
    pw
From within pw I just used a normal program exit.

Before you can un-mount the drive you must change back to drive z: then you can issue the un-mount command.
To un-mount C: and exit DOSBOX use the following commands:

Code:
    z:
    mount -u c
    exit
6. Running Z80 Emulator
Start DOSBox via:
APPLICATIONS MENU -> SYSTEM -> DOSBox

DOSBox will come up and you will be on Drive z:
(Type the following commands adjusting for the specific Emulator.)

Code:
    mount c ~/path/to/Z80-Sim
    c:
    dir /p
    myz80
There are two programs (IMPORT.COM & EXPORT.COM) that allow you to import and export files into the DSK
images. I wanted to use Nulu12 and Nsweep because those were not included. I found the files on the
Internet, but I needed to extract them from a LBR file. That led to a search for UNARC16.ARK. I found
the file and finally found instructions about just renaming it to UNARC16.COM, and then executing the
file since it was a Self Extracting type file. That allowed me to extract Nulu12 and Nsweep from some
of the ARC type files. Then I just imported Nsweep.com and Nulu12.com into the Z80 Emulator.
That allowed me to search more LBR files, including the myz80com.lbr file.

Other Z80 CP/M Commands:
Code:
dir
dir B:
user 1
dir B:
user 2
dir C:
user 0
dir
CNTL C is used to reload the Disk Directory
So, the whole world of CP/M is now available for your work or play. Be sure to check out all the
other nice utilities from the CP/M Days.

When you are finished with the Emulator use EXIT to exit. Then you need to un-mount the subdirectory
and exit the Terminal Window. Here are the commands.

Code:
    z:
    mount -u c
    exit
If your Terminal should hang, you can do the following to stop the process and close the Terminal.
Code:
top
q    or   CNTL C
Look for the Process number associated with DosBox. Assume 6545. Use the following command to Terminate
the Process.

Code:
kill -9 6545
REF: for CP/M Archives
http://z80cpu.eu/mirrors/oak.oakland.edu/


Thanks.

Larry
Attached Images
File Type: png z80-1.png (88.6 KB, 18 views)
File Type: png z80-2.png (23.2 KB, 22 views)
File Type: png z80-3.png (16.0 KB, 14 views)

Last edited by lkraemer; 10-19-2012 at 04:27 AM.
 
Old 10-16-2012, 08:37 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,383

Rep: Reputation: Disabled
Hi Larry

Would you consider adding this HOWTO as a new page in the Slackware Documentation Project? Possibly in a new "games" section? http://docs.slackware.com/howtos:start

Eric
 
Old 10-16-2012, 05:51 PM   #3
lkraemer
Member
 
Registered: Aug 2008
Posts: 111

Original Poster
Rep: Reputation: 10
Eric,
I'd be glad to add this [HOWTO], but I've never done anything like that yet. Is there information on how to proceed?

Are you sure you want it under Games? Wouldn't it be under Software or Application as it's CP/M (Control Program for Microprocessors).


Thanks.

Larry
 
Old 10-16-2012, 06:17 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,383

Rep: Reputation: Disabled
An emulators section would have been wiser to suggest :-) http://docs.slackware.com/howtos:emulators:z80 would be a good place to start editing.

You can always read the guides and other helpful texts at http://docs.slackware.com/slackdocs:tutorial or http://docs.slackware.com/slackdocs:styleguide or http://docs.slackware.com/wiki:syntax .
The first thing to do would be to create an account of course: http://docs.slackware.com/start?do=register

If you need help with getting the page off the ground initially, yell for help in the mailing list: http://lists.alienbase.nl/mailman/listinfo/slackdocs or just email me (or write a comment in your own thread here at LQ).

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: HOWTO: TI-83 Emulator on Linux LXer Syndicated Linux News 0 03-29-2012 05:40 AM
Could not start Android emulator in Slackware 13.1 kemsiro Slackware 9 02-10-2011 05:28 AM
LXer: Z80 inventor Zilog embraces ARM9, Linux LXer Syndicated Linux News 0 10-03-2008 04:30 AM
Terminal emulator for slackware? hottdogg Slackware 2 10-29-2006 11:08 PM
Z80 compiling alvin_garlic Programming 0 10-21-2006 10:08 PM


All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration