 |
|
 |
| Parallax Forums > Public Forums > Propeller Chip > TriBladeProp PCB: Uses 3 Propeller ICs for a Single Board Computer (SBC) | Forum Quick Jump
|
        |  Dr_Acula Registered Member

       Date Joined Dec 2008 Total Posts : 606 | Posted 9/16/2009 3:19 AM (GMT -8) |   | Attached image of BDS C in a hard drive image.
Finding some bugs though. Like Wordstar, CLINK is also crashing the zicog, but is working fine on the Altair SIMH.
I wrote a tiny program in Notepad called HELLO.C (see attached)
#include <stdio.h>
main() { printf("Hello World\n"); }
Copied it into the SIMH with R HELLO.C
and ran the compiler
C:\N8VEM\BDSC>altairz80 all
Altair 8800 (Z80) simulator V3.7-3 build 1016 (scp created Apr 20 2008 at 13:01: 09 with gcc 4.2.3)
64K CP/M Version 2.2 (SIMH ALTAIR 8800, BIOS V1.25, 2 HD, 15-Jan-07)
A>C: C>TYPE HELLO.C #include <stdio.h>
main() { printf("Hello World\n"); }
C>CC HELLO BD Software C Compiler v1.60 (part I) 36K elbowroom BD Software C Compiler v1.60 (part II) 33K to spare C>CLINK HELLO -SW BD Software C Linker v1.60 0D56 ISDIGIT 087F MAIN 089B PRINTF 0E12 PUTCHAR 0DDD STRLEN 0D82 _GV2 08BB _SPR 0CB7 _USPR
Last code address: 0E47 Externals start at 0E48, occupy 0006 bytes, last byte at 0E4D Top of memory: E405 Stack space: D5B8 Writing output... 45K link space remaining
C>HELLO Hello World
C>
Downloaded HELLO.C with XMODEMP R HELLO.C as it is quicker than pulling out the sd card. (Note that xmodem by default puts all downloads on drive A, so you need to do a PIP C:=A:HELLO.C to copy it to drive C)
On the triblade, CC.COM works but CLINK crashes after printing the first line - it then prints about 20 copies of the Z80 registers and then hangs. I'm not sure how to debug that sort of thing. But it is a similar crash to the Wordstar crash. Addit - BDS C is apparantly written in 8080 rather than Z80, as (probably) is Wordstar. Not sure if that helps narrowing down the bug. Even more strange is that BDS C and Wordstar were both working fine back in the mid August version of the zicog.
Now that heater has a ram chip... www.smarthome.viviti.com/buildPost Edited (Dr_Acula) : 9/16/2009 11:47:34 AM GMT
File Attachment : Zicog_c0.zip 490KB (application/zip)This file has been downloaded 18 time(s). File Attachment : HELLO.C 0KB (application/octet-stream)This file has been downloaded 11 time(s). | | Back to Top | | |
  |  Dr_Acula Registered Member

       Date Joined Dec 2008 Total Posts : 606 | Posted 9/16/2009 5:56 AM (GMT -8) |   | | | |
  |  Dr_Acula Registered Member

       Date Joined Dec 2008 Total Posts : 606 | Posted 9/16/2009 1:42 PM (GMT -8) |   | Sorry about the delay, running the exerciser is an overnight job. It fell over at this point. There is a small chance due to CRLF issues that it may be the instruction after this one.
Not sure how to test this quicker.
Also - maybe there is a file access issue as well - both CLINK and Wordstar start off by reading files off the disk.
Re "In both files ?" - which other file?
A>exz80doc Z80 instruction exerciser Undefined status bits NOT taken into account <adc,sbc> hl,<bc,de,hl,sp>....( 71,680) cycles ERROR **** crc expected:f39089a 0 found:70201f28 add hl,<bc,de,hl,sp>..........( 35,840) cycles OK add ix,<bc,de,ix,sp>..........( 35,840) cycles OK add iy,<bc,de,iy,sp>..........( 35,840) cycles OK aluop a,nn....................( 45,056) cycles OK aluop a,<b,c,d,e,h,l,(hl),a>..(753,664) cycles OK aluop a,<ixh,ixl,iyh,iyl>.....(376,832) cycles PC=253D AF=38C5 BC=C035 DE=22DD HL=2847 IX=ACCF IY=C76E SP=234B
www.smarthome.viviti.com/build | | Back to Top | | |
 |  TrapperBob Registered Member
        Date Joined Sep 2004 Total Posts : 38 | Posted 9/16/2009 3:46 PM (GMT -8) |   | Hi All,
I have a question on the SD file structure for zicog_cpm_rc5.5b_rr118 .
Would either you Cluso99 or Dr. A or heater create a batch file script to do the formating and writing of the files on the SD card for the releases? I realize it is early (pre V1.0 release) but it would help all those of us who are "silently" trying to follow along without waiting to V1.0 . I believe this sort of script would be helpful if it were part of the package of files in each release to somewhat automate or to give a template for how to automate this process.
Thanks TrapperBob | | Back to Top | | |
   |  heater Registered Member

       Date Joined Feb 2008 Total Posts : 1832 | Posted 9/16/2009 7:42 PM (GMT -8) |   | Dr_A: I see the problem here.
The test "aluop a,<ixh,ixl,iyh,iyl>.....(376,832) cycles" is testing instructions like "ld a, xh", "ld a, xl" etc. Where "xl" is the low byte of the X register etc.
Just so happens that ZiCog does not implement those instruction !!!
Why not you might ask?
Well those instructions do not exist in my MOSTEK Z80 Technical Manual or my Zilog Z80 Family Users Manual. I'm not sure why EXZ80DOC is testing them.
But this gets more serious and weird. There is a bunch of instructions that use an index register plus an offset e.g. "LD r,(IX + d)" which we also do not implement.
Turns out these are in my Z80 documents but in this case EXZ80DOC doe not test them.
This will take a little research to sort out. Seems my original op-code list was a bit off.
Mean while, actually why not set CPU_8080 when building ZiCog. WordStar and BDSC should detect a 8080 and behave correctly. N.B. EX8080 will fail in this case as we still set some flags like a Z80 when in 8080 mode. For me, the past is not over yet. | | Back to Top | | |
    |  TrapperBob Registered Member
        Date Joined Sep 2004 Total Posts : 38 | Posted 9/17/2009 4:02 AM (GMT -8) |   | heater : I understand your situation with resources. I would like a copy of a bash script though. I am looking to move back to a Linux based environment from the PC. Step-by-step instructions would be helpful to many.
Cluso99: I know the process itself is very simple. The details do get confusing at times. I have always managed to work my way through getting the right files on the SD card. The issue has been with the exact file names on the SD card versus the filenames in the zip archive throughout the history of the project. These have been in a state of flux. Also exactly which files need to go on the SD card and in what order. Having said this the most important reason for me is that I find scripts much easier to deal with over time than having to repetitively do things like copy & paste in a gui.
I (we) appreciate all your efforts on this project. I am sharing this project and its ongoing development with a number of junior high and high school children in our robotics group. They are eager to learn and enjoy learning about the "old days" meaning pre Windows XP for most. CPM and what can be accomplished with this "little board" (TriBladeProp) and the Propeller in general has very much caught their interest. I am sure you would agree.
Thanks TrapperBob | | Back to Top | | |
   |  Dr_Acula Registered Member

       Date Joined Dec 2008 Total Posts : 606 | Posted 9/17/2009 6:01 AM (GMT -8) |   | TrapperBob - do you have a triblade soldered up and ready to go? And do you have a micro sd card with some sort of reader device? If so, you are only a few minutes away from getting it working. First step is to reformat the sd card on your reader device with a right click on the drive then "reformat" with fat16. Then copy the .dsk files onto the sd card. Have you got that far?
To Cluso/Heater - something is seriously wrong with this version. It can't run a number of programs that work fine on the Aug30 version.
I have been running off just drive A, and downloading programs via xmodem so they cleanly go onto the drive. Also tried copying to a sd card image and moving that over. Same error either way. Wordstar seems to restart about 10x before it gets to the prompt.
Wordstar package attached.
I tried mbasic reading and writing a file to disk and that works. As do simple mbasic programs.
I wonder if it is the autoexec thing? I remember with the N8VEM it took me about a week to get the autoexec working. It was extremely complicated, yet seemed a simple thing to do. The errors were similar - endless restarts under certain circumstances. I'm trying to find where the autoexec bit is so I can try temporarily disabling it. Not in spin. It is coming up though in the ZIPM2_64.DSK image. How was this built, and is it possible to get a version without any autoexec?
capture of the text coming back from a wordstar startup. Eventually it progresses
A>ws
[H[J[0m WordStar, CP/M Edition, Release 4.00 #21 Copyright (C) 1979, 1987 MicroPro International Corporation All rights reserved.
iƄved.
i04, 8 HD, 10-Sep-2009)
SuperSUB V1.1
A>; AUTOEXEC.SUB; PLACE INITIAL BOOT COMMANDS HERE A>ws
[H[J[0m WordStar, CP/M Edition, Release 4.00 #21 Copyright (C) 1979, 1987 MicroPro International Corporation All rights reserved.
i04, 8 HD, 10-Sep-2009)
SuperSUB V1.1
A>; AUTOEXEC.SUB; PLACE INITIAL BOOT COMMANDS HERE A>ws
[H[J[0m WordStar, CP/M Edition, Release 4.00 #21 Copyright (C) 1979, 1987 MicroPro International Corporation All rights reserved.
i04, 8 HD, 10-Sep-2009)
SuperSUB V1.1
A>; AUTOEXEC.SUB; PLACE INITIAL BOOT COMMANDS HERE A>ws
[H[J[0m WordStar, CP/M Edition, Release 4.00 #21 Copyright (C) 1979, 1987 MicroPro International Corporation All rights reserved.
i04, 8 HD, 10-Sep-2009)
SuperSUB V1.1
A>; AUTOEXEC.SUB; PLACE INITIAL BOOT COMMANDS HERE A>ws
[H[J[0m WordStar, CP/M Edition, Release 4.00 #21 Copyright (C) 1979, 1987 MicroPro International Corporation All rights reserved.
i04, 8 HD, 10-Sep-2009)
www.smarthome.viviti.com/buildPost Edited (Dr_Acula) : 9/17/2009 2:07:24 PM GMT
File Attachment : wordstar.zip 107KB (application/zip)This file has been downloaded 9 time(s). | | Back to Top | | |
  | 848 posts in this thread. Viewing Page : | | Forum Information | Currently it is Friday, November 20, 2009 10:16 PM (GMT -8) There are a total of 393,733 posts in 55,521 threads. In the last 3 days there were 83 new threads and 703 reply posts. View Active Threads
| | Who's Online | This forum has 17687 registered members. Please welcome our newest member, mark09. 55 Guest(s), 4 Registered Member(s) are currently online. Details Zoot, Chris Savage (Parallax), Nick McClick, Highlandtinker |
Forum powered by dotNetBB v2.42EC SP2.02 dotNetBB © 2000-2009 |
|
|