68k-mbc Installing and Testing PASCAL+/MT
by coopzone in Circuits > Computers
1070 Views, 1 Favorites, 0 Comments
68k-mbc Installing and Testing PASCAL+/MT
Pascal offers an alternative programming language for the 68000 cp/m-68k system. In this example of how to use it i have used a 68k-mbc single board 68008, but it should work on any cp/m-68k platform. You will have to work out how to copy the files to the machine for your self.
You can find the software for Pascal+/MT here: http://www.cpm.z80.de/binary.html It's under the wrong section! it's been put in the cp/m 2.2 section about 1/3 way down the page, it says:
Pascal/MT+ 3.3 for CP/M-68K : 127K This set of files was extracted from a DEMO copy of Pascal MT+ v. 3.3 for cp/m68K. The DEMO copies were identical to the retail product but contain a sticker which reads "DEMO NOT FOR RESALE". This disk's serial number is 3170-000-000088 Copyright Digital Research, Inc. 1984.
These are from a package which had never been used. The link68 and lo68 are not included, as they were included on the CP/M-68 OS disks.
Note the reference to DEMO version, as far as I can tell it has no restrictions and is fully operational.
You will also need access to link68.68k and lo68.68k both of these are included on drive C: on the sd-card you boot from with the 68k-mbc.
Bellow are links to the files needed for this guide, including a ready to use DS0N06.DSK file that can replace the one on your SD-CARD (make a backup first!) this will save you the time in copying files using cpmtools.
pmt68kpg.pdf - User Guide for Pascal/MT cp/m-68k
https://drive.google.com/file/d/1gr7TGt9h3lv-MA3xK...
mtplus68.zip - the main distribution, this is a demo but has full functionality.
https://drive.google.com/file/d/1S2PSQ9okxcIXV_QnQ...
DS0N06.DSK - pre installed Drive G: when booted
https://drive.google.com/file/d/1HQMPIYDoU9tNr6vkp...
Have fun.
Supplies
You will need a micro-sd card reader.
If your computer does not have a SD-Card reader (not many do these days) you will need a USB-SD-card reader adaptor, normally only cost £2-£3 from online market sellers like ebay etc. Make sure you get one that accepts micro sd cards.
You will need version of cmptools for your OS.
Linux:
Most distros will let you install cpmtools from the package manager, for example:
apt install cpmtools
Windows:
Download the file: http://www.cpm8680.com/cpmtools/cpmtoolsWin32.zip...
Unzip it to a directory on your hardisk, I suggest you choose something simple like c:\cmptools, the zip file already has the directory "cmptools" as part of the archive. So when you unzip it you only need to specify C:\ as the destination. Otherwise you will end up with a double directory like C:\cpmtool\cpmtools.
Your will need a bootable sd-card for you 68k-mbc
I would recommend a spare sd-card or at least copy the contents of your card before you start - just in case.
Putting the Distribution Files on Your SD-Card
Once you have downloaded the zip file that contains Pascal/MT you need to un-zip the contents to a folder. This will be a working folder during the creation of your disk image file. Once you have finished with it you don't need to keep it.
Find the folder called "cpmtools" on your SD-CARD, copy the diskdefs file to the folder you put cpmtools into (see supplies section for windows / linux) or if your using linux (debian as an example) you need to put the file in /etc/cpmtools.
The original SD-CARD contains the following:
asm_demo cpm68.bin DS0N02.DSK DS0N06.DSK DS0N10.DSK DS0N14.DSK ehbasic_demo autoboot.bin cpmtools DS0N03.DSK DS0N07.DSK DS0N11.DSK DS0N15.DSK IOSVER.TXT cbasic_demo DS0N00.DSK DS0N04.DSK DS0N08.DSK DS0N12.DSK DS0NAM.DAT src ChangeLog.txt DS0N01.DSK DS0N05.DSK DS0N09.DSK DS0N13.DSK ebasic.bin
The files called DS0Nxx.DSK are the image files that end up as drive letters once booted on the 68k-mbc. See https://www.instructables.com/Z80-mbc2-Virtual-Dis... for a full intro / how_to_use on these files. We will be working with DS0N06.DSK (Drive G:) it's currently empty so makes a good place to start.
Windows:
Start a command prompt and cd into the temporary folder you unzipped Pascal/MT into.
Linux:
From a shell cd into the temporary folder you unzipped Pascal/MT into.
Confirm you can use cpmtools
Windows:
c:\cpmtools\cpmls -f 68kMBC-D0-15 F:DS0N00.DSK this will list the files that are on Drive A: the "F:" needs to be whatever drive letter windows gave your SD-CARD when you inserted it.
Linux:
mount /dev/sdc1 /x
cpmls -f 68kMBC-D0-15 /x/DS0N05.DSK this will list the files on Drive A:
Copy the Pascal/MT files to drive G:
Windows:
c:\cpmtools\cpmcp -f 68kMBC-D0-15 F:DS0N06.DSK * 0:
Linux:
cpmcp -f 68kMBC-D0-15 F:DS0N06.DSK * 0:
You can now umount /x or remove the SD-CARD on windows using eject.
Boot the System
Once you have copied your files to Drive G: You can boot your 68k-mbc and continue from there.
Confirm you have files on Drive G:
DIR G:
G: BDOS23 PAS : BDOS6 PAS : CHAIN1 PAS : CHAIN2 PAS : CPMGET S
G: CPMINI S : DEMOINLN PAS : DIS68 68K : FIBDEF LIB : FPREALS L68 G: FT1 PAS : FT2 PAS : FT3 PAS : FT4 PAS : FULLHEAP O G: HLT S : IOMOD S : MT68 000 : MT68 68K : MTERRS TXT G: PASLIB L68 : PEEKPOKE PAS : PPRIME PAS : READ ME : TEST1 PAS
Now you need to copy the linker command files from the C distribution on Drive C:
a:pip g:=c:link68.68k a:pip g:=c:lo68.68k
Sample Compile a Program
Fortunately the distribution files contain a TEST1.PAS program, a very simple pascal program, this is the file:
PROGRAM simple_example; VAR i : INTEGER; BEGIN WRITELN('This is just a test'); FOR i := 1 TO 10 DO WRITELN(i); WRITELN('All Done') END.
As you can see, it's very simple. So to compile it type:
G>mt68 test1 -------------------------------------------------- Pascal MT+68 Version 3.3 Serial No. 3170-0000-000088 All Rights Reserved Copyright (c) 1984 Digital Research, Inc. -------------------------------------------------- PASTEMP.TOK ROUTED TO DISK: @ SYNTAX SCAN COMPLETE SYMBOL TABLE INITIALIZATION AVAILABLE MEMORY: 357200 USER TABLE SPACE: 350436 RELEASE 3.3 -- PHASE 1 REMAINING MEMORY: 350236 RELEASE 3.3 -- PHASE 2 MT+68K SIMPLEEX 4 SIZE: 184 LINES : 11 ERRORS: 0 CODE : 188 BSS : 4 PASCAL/MT+68K COMPILATION COMPLETE
You only type mt68 test1, the rest is the compiler output!
Now it's time to link the program into a .68k executable
G>link68 test1,paslib.l68 -------------------------------------------------- LINK68 Overlay Linker Release 0.f Serial No. XXXX-0000 All Rights Reserved Copyright (c) 1983 Digital Research, Inc. -------------------------------------------------- test1,paslib.l68 <br>
You should not get any errors, the end result is a file called test1.68k. This can be run directly by typing:
G>test1 This is just a test 1 2 3 4 5 6 7 8 9 10 All Done<br>
Complete your pascal compiler is good to go. Now read the user guide!