My opinion is that we can make the V2.0 release (V1.0 will be for the DemoBoard which will only get the instruction updates as we needed to fork the code). It is a simple matter for incremental releases.
We are implementing a number of undocumented instructions and it is only code utilising these that fail - am I correct in this assumption???
Other thoughts???
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Links to other interesting threads:
I don't think the problem is undocumented instructions - I think these are quite common ones. EX and EXX for instance are used extensively in BBC Basic.
The problem is we don't have a program to test them individually. At one stage I resorted to just picking random instructions and trying them. There are some IX and IY ones I'd like to test a bit more.
I should add that you might want to add the code to print the alternate registers. That is in the 'main' program and you need a printout of the alt registers if you are going to test them!
I have posted a RamBlade version of ZiCog (v150)on the RamBlade thread at the top. You can compile ZiCog for the TriBlade with a #define change - take a look at the xtal frequency as I think the TriBlade has it set for 6MHz.
The new *.DSK SD files are on my website www.cluso.bluemagic.biz. They are just ZICOG_dn.DSK renamed to ZICOG_d.DSK and I have included Drac's A & B drives plus Supercal and Vedit/Pascal (TurboPascal) disk files also. Do NOT copy any of the *.BIN files (PropCMD.BIN, TEST_RB.BIN, ZICOG150.BIN, BOOTPROP.BIN) as they are compiled for the RamBlade hardware!!!. The source for these are on the RamBlade thread. You can recompile with the TriBlade option selected if you wish.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Links to other interesting threads:
I'm deep inside coding some assembly, so giving a number of instructions a real workout. I'm still not 100% of my code here, but I don't seem to be getting any change to the registers with
ADC HL,DE (hex opcode ED5A)
I checked in the source code and this opcode has a * in front of it "'*ADC HL,DE ED5A"
So do some others that I know are not coded (and probably never need to be), but I note that the ADC series eg ADC HL,BC and also the 16 bit SBC series SBC HL,DE
Firstly, does the * mean these are not coded yet?
Could you have a look and test if these work?
The handful of 16 bit ADC and SBC instructions are very useful with 32 bit math routines in assembly.
Addit: more testing - ADD HL,DE works but ADC HL,DE does not work. Ditto ADD HL,BC works but not ADC HL,BC
There are 8 instructions in this group
ADC HL,BC
ADC HL,DE
ADC HL,HL
ADC HL,SP
SBC HL,BC
SBC HL,DE
SBC HL,HL
SBC HL,SP
More research:
the dispatch table jumps to 'double_add_hl_cy and double_sub_hl_cy
decrement_word sub data_16, #1
jmp #vect_3
double_add_hl_cy 'FIXME for Z80
'FIXME Should set most flags !
double_add_hl rdword alu, h_reg
double_add mov aux, alu 'Take a copy of alu before operation for AUX carry determination
add alu, data_16
test alu, mask_bit_16 wz
muxnz flags, #carry_bit
andn flags, #%00000010
xor aux, data_16
xor aux,alu 'Determine the auxillary carry flag
test aux, aux_bit_shifted wc
muxc flags, #aux_bit
mov data_16, alu
jmp #vect_3
aux_bit_shifted long (aux_bit << 8)
double_add_ixy rdword alu, xy_reg
jmp #double_add
double_sub_hl_cy 'FIXME for Z80
'FIXME Should set most flags !
Oh No!! No code in either of those.
Next problem, I'm out of longs and I think your code is pretty close too. So this would need to be overlay. How would such code work?
Dr_A: Hope you like the FIXME comments. Many years ago I was told about some guys looking for a bug in some contract software engineers code. Eventually they homed in on the problem and found the comment "Insert correct code here".
You have just found my version of that.
Re: the "*", a long time ago I was putting asterisks next to ops that have passed certain criteria. Have they been implemented at all, do they do basic thing that they should, do they set the flags correctly etc.
That * system broke down a long time ago as things were moved around, broken, unbroken etc etc. It's probably better to ignore / remove all those stars.
I'll try and have a look at this when I get home this evening.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
Re Cluso: "Drac: What programs are using these instructions?"
A/ the ones I'm writing!
; 16 plus 16 bit add DE+HL=DEHL
ADD16:
LD BC,0
OR A
ADC HL,DE
EX DE,HL
LD HL,0
ADC HL,BC
EX DE,HL
RET
But who knows, these are pretty useful instructions, as they are ADD but add the carry bit as well, so you can use that carry bit to cascade adds and hence do 16 or 32 or even higher bit math. So they are bound to crop up in other code as well.
Re heater. Yes, I had a chuckle when I traced through the code and found "FIXME" Thanks++ for having a look at this.
Better than a programmer I knew that put some "little red pills" as a test in a pharmaceutical companies computer and later saw a real order come out for some "little red pills". I think he was then in desperate need of some "heart attack pills" LOL
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Links to other interesting threads:
I'm thinking of trying your CP/M out using a RAMBLADE... Assuming I actually get it working... Where do you find CP/M software (like Wordstar and Basic) ?
Rayman: Most of the CP/M programs we have been playing with come from the huge collection that is all packaged up nicely on floppy images for the AltairZ80 simulator project here: www.schorn.ch/cpm/intro.php
Now ZiCog does not support that floppy format any more so we have to use the AltairZ80 simulator under Windows or Linux to copy all the files to the 8MB hard disk images that ZiCog uses. They are exactly the same format as the AltairZ80 so it's quite easy.
I keep meaning to create ZiCog HD images of all those AltairZ80 floppies and putting them on the net somewhere.
But when you get there just ask and one of us could do it for you.
Drac has since dug up some other things like BBC BASIC that can be copied to the HD images using cpmtools under Windows or Linux.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
I have an IMSAI 8080 with 2 Qume Datatrak-8 1.2MB 8" floppies on it. I've had it since it was new, but haven't fired it up in YEARS. Maybe it's time to dig it out and do a magnetic coercivity test on the floppies.
I've got FORTRAN compilers, COBOL, BASIC, Forth, C, PL/I, PL/M, assemblers, Wordmaster (much better for program editing that Wordstar), and quite a bunch of other stuff.
I downloaded Forth from the www.schorn. I am not sure how to get these two files from the PC to a free CPM Hdisk on the SDcard.
I can copy the files to the SDcard, but then CPM would not see these files. I see Drac created two disks. Is this done through the CPM BIOS ?
re CPM disk images for SD cards (in HDisk format for ZiCog CPM)...
On my website www.cluso.bluemagic.biz is a zip file of the images required for RamBlade. Be careful that the binary images are for RamBlade, not TriBlade/ProtoBlade/DracBlade. However, the .DSK files are identical for all the ..Blades as they are just cpm images.
The files there are the A drive we are using (CPM2.2) plus a VEDIT & TURBOPASCAL combined DSK, a SUPERCALC DSK, and 2 of Drac's CPM disks which include wordstar and xmodem, etc. There is a writeup in the RamBlade thread.
These should provide a great start. Just recompile with whatever DSK files you want. Copy them over using PIP if you wish. There are also blank DSK files for B,C,D,E,F,G,H drives. Note that G & H are not 8MB files (please ignore them for now). I made C 32MB but to use any more than 8MB·the hd parameter block needs changing.
Hope this helps
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Links to other interesting threads:
Thanks Ray, I have no problem with Wordstar and the rest of the stuff, I even used the BDS C compiler to compile and link small file, works fine.
But how do I get Forth or any CPM2.2 file (in 8Mb file format from www.schorn) from my PC to say B: drive on the CPM SDcard ??
Ron
Post Edited (Ron Sutcliffe) : 1/16/2010 3:18:24 AM GMT
1) via the altair simh
Create a new directory. Put some floppy simh .dsk images in there (I pretty much downloaded the whole site)
Create a batch file AltairAll.bat in notepad. In that file add one line
altairz80 all
Create the 'all' file. No extension. Use notepad. Put this text in:
d tracks[noparse][[/noparse]0-7] 254
attach dsk cpm2.dsk
attach dsk1 basic.dsk
attach dsk2 app.dsk
attach dsk3 sbasic.dsk
attach dsk4 bdsc160.dsk
attach dsk5 tools.dsk
attach dsk6 wordstar.dsk
attach hdsk0 i.dsk
attach hdsk1 j.dsk
attach hdsk2 k.dsk
attach hdsk3 l.dsk
set cpu 64k
set cpu noitrap
set cpu z80
set cpu altairrom
set cpu nonbanked
reset cpu
set sio ansi
set sio nosleep
boot dsk
bye
You can modify that as needed, and leave out attached floppies if you like. It does need cpm2.dsk and i.dsk
As an aside, this was my "super Z80 computer" that never existed in real life. I made this in 2008. Then heater and Cluso go and create it a year later!
To run the super computer, just click the batch file. I find it very helpful for quicker compiling etc.
There are programs called W.COM and R.COM to move files between the PC and the drives.
Now, to get files on and off you disk image on the propeller,
rename i.dsk as i.tmp
copy a.dsk from the sd card to the working directory
rename it i.dsk
copy files from the floppy images to drive I with PIP
rename i.dsk back to a.dsk
put it back on the sd card
rename i.tmp as i.dsk
2) What a pain that is!!!
So - do you have a copy of XMODEMF.COM
If not, see attached.
You need to get this program onto drive A. Maybe backup onto a few other CP/M drives. To get it onto the drive A, just once you will need to do step 1 above.
But - once it is on drive A, you can then use any terminal program to transfer files over.
Eg on CP/M
XMODEMF R MYFILE.TXT
where the command is R for receive and S for send
Then on teraterm, File/Transfer/Xmodem (don't use File/Send, it doesn't work)
XMODEM is great for transferring one or two files.
Disk images are great for transferring many files.
I am not sure if I pip'ed XMODEM over to the A drive. However, As I said, I included your latest drives A & B from a week or so ago so Xmodem is on there so it can be pip'ed to the A drive easily.
I am also working on using SphinxOS and the simple method of file xfer mpark used. The I hope to add this to ZiCog as well, but I will need your (Drac) help in getting it onto a cpm disk file. FAT16 is easy for me.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Links to other interesting threads:
Fine Ray
The SphinxOS sounds interesting, but for now I just want to get a few things going. ( Forth and Catalina etc) We leave Australia in couple of weeks time. I am not sure how much Internet access we will have for couple of months.
@Drac·el al
I did not get anywhere, with that. I have a folder with two files in it one·of which is Forth.dsk file.· I downloaded the folder from www.schorn. ·I somehow need to extract the individual files from this disk image so that I can move them down to cmp2 disk C:·· I don't have any problems using zmodemf to move files from my PC folder to cmp2 C: disk·, but I still cannot figure·how to extract the files from the disk image. I tried the batch file technique but no luck.
I could recompile Zilog and name the C: "forth.dsk"· but don't want to do that.
Ron
Post Edited (Ron Sutcliffe) : 1/16/2010 12:27:50 PM GMT
Recompiling zicog and naming c as forth.dsk won't work unfortunately as the forth.dsk is a floppy image and you want a hard disk image.
I did step 1 as above with a blank drive i, and did a PIP *.* and renamed it c.dsk. File is attached.
(we can get away with zip files of 8mb hard images with the max forum post of 2048kb, as almost all the file is E5 and zip compresses that with 97% efficiency or more.)
I would rename the old ZICOG_C.DSK something else. It is not a good idea to delete any files on the SD card as we require all files to be contiguous and this could break a file later. I suggest you use drive F for the substituted drive. C is likely to be a larger drive later.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Links to other interesting threads:
@cluso
Yes, Ray don't like in either, anyway it didn't work. Its just that I am not understanding something (or long forgotten CPM) so have a bit of reading to do. It will get sorted.
I must be able to extract the disc image file with my Altair PC simulator so that I can xmodem the files to Zilog_C.dsk. The lights are on but nobody is home ATM [noparse]:([/noparse]
Ron
Post Edited (Ron Sutcliffe) : 1/16/2010 11:54:25 PM GMT
@Drac
Thanks, Forth is up on cpm2. A little reading and your post·all·makes sense.·I think we need to make PC copies of· Cobol, Fortran, Lisp. Algol etc etc and post them on the net somewhere so that others can ·just do a xmodemf transfer to their prefered·cpm Hdisk.
Why not use the W command in SIMH and write the files to the PC and then use cpmcp that heater posted to copy the files to a zicog hard disk - pretty trivial to do.
Ok, looks like you have it working. Slight confusion re the drive names, I'm using A.DSK etc as it is the shortest name and I'm trying to save hub bytes on the dracblade. But I think others might use different names eg ZICOG_A.DSK. Just a matter of looking at the prop source code to see what it is loading up. They are the same file format (and the same as drive I.DSK and J.DSK on the Altair SIMH).
I looked at Forth - is this a Reverse Polish Notation language? My dad had a calculator that used RPN.
Have you got xmodemf and a terminal program yet?
Re making new drive images and "I think we need to make PC copies of Cobol, Fortran, Lisp...."
This is how I·recommend you get hdsk files to the SD card... (must be in hdsk format 8MB 4x128 per 512 byte sd sector)
Put uSD card into PC Laptop (using SD or USB converter) and use Windows Explorer to
Rename ZICOG_F.DSK to ZICOG_F.XXX
Copy the new disk file as ZICOG_F.DSK to the SD card
Put the uSD card back in TriBlade/RamBlade and boot as normal. You should now be able to do a DIR E: and the files should be there.
Now you can PIP them across to the A: or C: drive (rename if necessary). I would prefer to build a C: drive with all these extras, but your choice.
Syntax···· PIP C:XYZ.COM = F:XYZ.COM
What we are doing here is sacraficing the F: drive for a temporary transfer drive which sounds reasonable to me.
Otherwise you can use XMODEM and TeraTerm to get them across a serial link from the PC. XMODEM is available on the DRAC_A.DSK (or and it may already be on the ZICOG_A.DSK anyway. Use LS instead of DIR (it pauses and puts in alphabetical order).
Ron: You should have PropCMD on the uSD so you can also do a rename on the RamBlade.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Links to other interesting threads:
@Cluso the problem was that the that the Forth.dsk was not a hard disk img. So I had to extract the files using the PC emulator version of Altair80 and tthen use the Command W to copy the files to a folder on the PC. From there I did a xmodemf to my cpm2 c dsk.
@Drac (your Dad uses a HP cal ?) . I prefer to use the Forth/PASM combo in general. I used F83 for years.
I will add some extra stuff to you bat file when I get round to it or unless you do it first ---GRIN---
Its all working
Ron
Post Edited (Ron Sutcliffe) : 1/17/2010 11:37:49 PM GMT
Comments
My opinion is that we can make the V2.0 release (V1.0 will be for the DemoBoard which will only get the instruction updates as we needed to fork the code). It is a simple matter for incremental releases.
We are implementing a number of undocumented instructions and it is only code utilising these that fail - am I correct in this assumption???
Other thoughts???
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
The problem is we don't have a program to test them individually. At one stage I resorted to just picking random instructions and trying them. There are some IX and IY ones I'd like to test a bit more.
I should add that you might want to add the code to print the alternate registers. That is in the 'main' program and you need a printout of the alt registers if you are going to test them!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.smarthome.viviti.com/propeller
The new *.DSK SD files are on my website www.cluso.bluemagic.biz. They are just ZICOG_dn.DSK renamed to ZICOG_d.DSK and I have included Drac's A & B drives plus Supercal and Vedit/Pascal (TurboPascal) disk files also. Do NOT copy any of the *.BIN files (PropCMD.BIN, TEST_RB.BIN, ZICOG150.BIN, BOOTPROP.BIN) as they are compiled for the RamBlade hardware!!!. The source for these are on the RamBlade thread. You can recompile with the TriBlade option selected if you wish.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
I'm deep inside coding some assembly, so giving a number of instructions a real workout. I'm still not 100% of my code here, but I don't seem to be getting any change to the registers with
ADC HL,DE (hex opcode ED5A)
I checked in the source code and this opcode has a * in front of it "'*ADC HL,DE ED5A"
So do some others that I know are not coded (and probably never need to be), but I note that the ADC series eg ADC HL,BC and also the 16 bit SBC series SBC HL,DE
Firstly, does the * mean these are not coded yet?
Could you have a look and test if these work?
The handful of 16 bit ADC and SBC instructions are very useful with 32 bit math routines in assembly.
Addit: more testing - ADD HL,DE works but ADC HL,DE does not work. Ditto ADD HL,BC works but not ADC HL,BC
There are 8 instructions in this group
ADC HL,BC
ADC HL,DE
ADC HL,HL
ADC HL,SP
SBC HL,BC
SBC HL,DE
SBC HL,HL
SBC HL,SP
More research:
the dispatch table jumps to 'double_add_hl_cy and double_sub_hl_cy
Oh No!! No code in either of those.
Next problem, I'm out of longs and I think your code is pretty close too. So this would need to be overlay. How would such code work?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.smarthome.viviti.com/propeller
Post Edited (Dr_Acula) : 1/15/2010 12:21:10 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
You have just found my version of that.
Re: the "*", a long time ago I was putting asterisks next to ops that have passed certain criteria. Have they been implemented at all, do they do basic thing that they should, do they set the flags correctly etc.
That * system broke down a long time ago as things were moved around, broken, unbroken etc etc. It's probably better to ignore / remove all those stars.
I'll try and have a look at this when I get home this evening.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
A/ the ones I'm writing!
But who knows, these are pretty useful instructions, as they are ADD but add the carry bit as well, so you can use that carry bit to cascade adds and hence do 16 or 32 or even higher bit math. So they are bound to crop up in other code as well.
Re heater. Yes, I had a chuckle when I traced through the code and found "FIXME" Thanks++ for having a look at this.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.smarthome.viviti.com/propeller
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
Now ZiCog does not support that floppy format any more so we have to use the AltairZ80 simulator under Windows or Linux to copy all the files to the 8MB hard disk images that ZiCog uses. They are exactly the same format as the AltairZ80 so it's quite easy.
I keep meaning to create ZiCog HD images of all those AltairZ80 floppies and putting them on the net somewhere.
But when you get there just ask and one of us could do it for you.
Drac has since dug up some other things like BBC BASIC that can be copied to the HD images using cpmtools under Windows or Linux.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
I've got FORTRAN compilers, COBOL, BASIC, Forth, C, PL/I, PL/M, assemblers, Wordmaster (much better for program editing that Wordstar), and quite a bunch of other stuff.
--jc
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
I can copy the files to the SDcard, but then CPM would not see these files. I see Drac created two disks. Is this done through the CPM BIOS ?
Ron
On my website www.cluso.bluemagic.biz is a zip file of the images required for RamBlade. Be careful that the binary images are for RamBlade, not TriBlade/ProtoBlade/DracBlade. However, the .DSK files are identical for all the ..Blades as they are just cpm images.
The files there are the A drive we are using (CPM2.2) plus a VEDIT & TURBOPASCAL combined DSK, a SUPERCALC DSK, and 2 of Drac's CPM disks which include wordstar and xmodem, etc. There is a writeup in the RamBlade thread.
These should provide a great start. Just recompile with whatever DSK files you want. Copy them over using PIP if you wish. There are also blank DSK files for B,C,D,E,F,G,H drives. Note that G & H are not 8MB files (please ignore them for now). I made C 32MB but to use any more than 8MB·the hd parameter block needs changing.
Hope this helps
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
But how do I get Forth or any CPM2.2 file (in 8Mb file format from www.schorn) from my PC to say B: drive on the CPM SDcard ??
Ron
Post Edited (Ron Sutcliffe) : 1/16/2010 3:18:24 AM GMT
1) via the altair simh
Create a new directory. Put some floppy simh .dsk images in there (I pretty much downloaded the whole site)
Create a batch file AltairAll.bat in notepad. In that file add one line
altairz80 all
Create the 'all' file. No extension. Use notepad. Put this text in:
You can modify that as needed, and leave out attached floppies if you like. It does need cpm2.dsk and i.dsk
As an aside, this was my "super Z80 computer" that never existed in real life. I made this in 2008. Then heater and Cluso go and create it a year later!
To run the super computer, just click the batch file. I find it very helpful for quicker compiling etc.
There are programs called W.COM and R.COM to move files between the PC and the drives.
Now, to get files on and off you disk image on the propeller,
rename i.dsk as i.tmp
copy a.dsk from the sd card to the working directory
rename it i.dsk
copy files from the floppy images to drive I with PIP
rename i.dsk back to a.dsk
put it back on the sd card
rename i.tmp as i.dsk
2) What a pain that is!!!
So - do you have a copy of XMODEMF.COM
If not, see attached.
You need to get this program onto drive A. Maybe backup onto a few other CP/M drives. To get it onto the drive A, just once you will need to do step 1 above.
But - once it is on drive A, you can then use any terminal program to transfer files over.
Eg on CP/M
XMODEMF R MYFILE.TXT
where the command is R for receive and S for send
Then on teraterm, File/Transfer/Xmodem (don't use File/Send, it doesn't work)
XMODEM is great for transferring one or two files.
Disk images are great for transferring many files.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.smarthome.viviti.com/propeller
Now that makes sense.
I will give it a go.
Ron
I am not sure if I pip'ed XMODEM over to the A drive. However, As I said, I included your latest drives A & B from a week or so ago so Xmodem is on there so it can be pip'ed to the A drive easily.
I am also working on using SphinxOS and the simple method of file xfer mpark used. The I hope to add this to ZiCog as well, but I will need your (Drac) help in getting it onto a cpm disk file. FAT16 is easy for me.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
The SphinxOS sounds interesting, but for now I just want to get a few things going. ( Forth and Catalina etc) We leave Australia in couple of weeks time. I am not sure how much Internet access we will have for couple of months.
Ron
I did not get anywhere, with that. I have a folder with two files in it one·of which is Forth.dsk file.· I downloaded the folder from www.schorn. ·I somehow need to extract the individual files from this disk image so that I can move them down to cmp2 disk C:·· I don't have any problems using zmodemf to move files from my PC folder to cmp2 C: disk·, but I still cannot figure·how to extract the files from the disk image. I tried the batch file technique but no luck.
I could recompile Zilog and name the C: "forth.dsk"· but don't want to do that.
Ron
Post Edited (Ron Sutcliffe) : 1/16/2010 12:27:50 PM GMT
I did step 1 as above with a blank drive i, and did a PIP *.* and renamed it c.dsk. File is attached.
(we can get away with zip files of 8mb hard images with the max forum post of 2048kb, as almost all the file is E5 and zip compresses that with 97% efficiency or more.)
So, give this attachment a try.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.smarthome.viviti.com/propeller
Is the correct?
Ron
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
Yes, Ray don't like in either, anyway it didn't work. Its just that I am not understanding something (or long forgotten CPM) so have a bit of reading to do. It will get sorted.
I must be able to extract the disc image file with my Altair PC simulator so that I can xmodem the files to Zilog_C.dsk. The lights are on but nobody is home ATM [noparse]:([/noparse]
Ron
Post Edited (Ron Sutcliffe) : 1/16/2010 11:54:25 PM GMT
Thanks, Forth is up on cpm2. A little reading and your post·all·makes sense.·I think we need to make PC copies of· Cobol, Fortran, Lisp. Algol etc etc and post them on the net somewhere so that others can ·just do a xmodemf transfer to their prefered·cpm Hdisk.
Ron
Why not use the W command in SIMH and write the files to the PC and then use cpmcp that heater posted to copy the files to a zicog hard disk - pretty trivial to do.
Ok, looks like you have it working. Slight confusion re the drive names, I'm using A.DSK etc as it is the shortest name and I'm trying to save hub bytes on the dracblade. But I think others might use different names eg ZICOG_A.DSK. Just a matter of looking at the prop source code to see what it is loading up. They are the same file format (and the same as drive I.DSK and J.DSK on the Altair SIMH).
I looked at Forth - is this a Reverse Polish Notation language? My dad had a calculator that used RPN.
Have you got xmodemf and a terminal program yet?
Re making new drive images and "I think we need to make PC copies of Cobol, Fortran, Lisp...."
is that "we" as in "you"? or me? *grin*
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.smarthome.viviti.com/propeller
That exactly what I did in the end but I had not seen heaters post.
Drac pointed out the W command and that pointed the way.
Ron
Put uSD card into PC Laptop (using SD or USB converter) and use Windows Explorer to
Put the uSD card back in TriBlade/RamBlade and boot as normal. You should now be able to do a DIR E: and the files should be there.
Now you can PIP them across to the A: or C: drive (rename if necessary). I would prefer to build a C: drive with all these extras, but your choice.
Syntax···· PIP C:XYZ.COM = F:XYZ.COM
What we are doing here is sacraficing the F: drive for a temporary transfer drive which sounds reasonable to me.
Otherwise you can use XMODEM and TeraTerm to get them across a serial link from the PC. XMODEM is available on the DRAC_A.DSK (or and it may already be on the ZICOG_A.DSK anyway. Use LS instead of DIR (it pauses and puts in alphabetical order).
Ron: You should have PropCMD on the uSD so you can also do a rename on the RamBlade.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
@Drac (your Dad uses a HP cal ?) . I prefer to use the Forth/PASM combo in general. I used F83 for years.
I will add some extra stuff to you bat file when I get round to it or unless you do it first ---GRIN---
Its all working
Ron
Post Edited (Ron Sutcliffe) : 1/17/2010 11:37:49 PM GMT