Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about TE and 8080 CPU. #9

Open
jayacotton opened this issue Oct 15, 2021 · 22 comments
Open

Question about TE and 8080 CPU. #9

jayacotton opened this issue Oct 15, 2021 · 22 comments
Labels
question Further information is requested

Comments

@jayacotton
Copy link

Hi Miguel:

I am interested to see if you have a version of this code that runs on at 8080 CPU. I am building
up my IMSAI 8080 computer (again) and want to use your editor.

I have the code downloaded here on a unix machine, I could have a go at building it with z88dk.
Do you know if that will have a chance of working? Is there a project already underway?

Tnx
Jc

@MiguelVis
Copy link
Owner

I use MESCC (my Small-C variant) and the ZSM assembler to build TE.

There are small fragments of code in Z80 assembler embedded in the C source but nothing exotic, so they should be easily converted to 8080 code.

But I don't think the TE code could be compiled under z88dk or other C compiler without some changes here and there because is Small-C in the end, not ANSI, not even fully K&R.

But it could be adapted, of course.

@MiguelVis MiguelVis added the question Further information is requested label Nov 25, 2021
@jayacotton
Copy link
Author

z88dk has at zcc -m8080 flag that will generate z80 opcodes but avoids z80 specific syntax.

I think we would benefit from a z88dk Makefile that builds the editor and tools. I will be glad to have
a go at that. Perhaps as soon as early december.

@jayacotton
Copy link
Author

jayacotton commented Nov 26, 2021

I have started on this project. I have a Makefile created, and have made a few small changes to the code. No joy yet
on the compiling due to syntax bugs. The parser seems to be tripping on 'int cpm_ver'

te.c:117:1: error: Missing token, expecting = got i
te.c:117:4: fatal error: Unknown symbol: int

This could be due to a parsing error up line.

missing semi color. That was my typo.

Looks like I will have to ANSI'fy' the code. I am using strict warnings and errors. So its finding stuff that is dodgy for
modern C compilers (uses the LLVM parser). I think when this is finished, we need to test it with the current build
batch files.

Making some progress, have not built a single .o file yet but I may get it to work by Sunday/Monday.

@jayacotton
Copy link
Author

jayacotton commented Jan 12, 2022 via email

@jayacotton
Copy link
Author

jayacotton commented Jan 12, 2022 via email

@jayacotton
Copy link
Author

jayacotton commented Jan 17, 2022 via email

@jayacotton
Copy link
Author

jayacotton commented Jan 28, 2022

At this time, the TE_ANSI editor is running for 8080/z80. I am holding off the total commitment until I can test the code
on my 8080, its about 10 hours drive south.

I have a github repo for my work. I don't know is anyone can see it, I made it a private project. https://github.com/jayacotton/miguels-vi

So, the work was to ansify the code and clean out z80isms in the assembly code. There where some issues with portability
that I had to fix up. Its now building clean.

This is only the one editor.

I created a Makefile that builds the code, the patch 'i.e. tecf' is running on my build machine with vcpm, a tool that comes
from https://github.com/durgadas311/cpnet-z80 project.

@ttpilot
Copy link

ttpilot commented Apr 29, 2022

At this time, the TE_ANSI editor is running for 8080/z80. I am holding off the total commitment until I can test the code on my 8080, its about 10 hours drive south.

I have a github repo for my work. I don't know is anyone can see it, I made it a private project. https://github.com/jayacotton/miguels-vi

So, the work was to ansify the code and clean out z80isms in the assembly code. There where some issues with portability that I had to fix up. Its now building clean.

This is only the one editor.

I created a Makefile that builds the code, the patch 'i.e. tecf' is running on my build machine with vcpm, a tool that comes from https://github.com/durgadas311/cpnet-z80 project.

Have you made the 8080 version of te available yet? I'd love to run it on my Altair. I don't care much for the other editors I've tried

@jayacotton
Copy link
Author

jayacotton commented Apr 30, 2022 via email

@ttpilot
Copy link

ttpilot commented Apr 30, 2022

I'd like to try them out. Think of me as a beta tester lol. I thought about going through Miguel's source code myself, but I haven't done any CP/M programming since the early 80s, and assembly since before that!

@jayacotton
Copy link
Author

jayacotton commented May 2, 2022 via email

@ttpilot
Copy link

ttpilot commented May 4, 2022

I'm using te on an Altair 8800c with TeraTerm as a VT100 terminal. Te seems to load okay and shows the editing screeh, but it doesn't respond to pressing ESC to get a menu. I just get a '?' character on the screen.. In fact pressing any control key or any non-printing key just gets me a '?'. I have to reboot to to get out of it. The teconf.com utility seems to load but not start. Have to reboot for that too

@jayacotton
Copy link
Author

jayacotton commented May 5, 2022 via email

@jayacotton
Copy link
Author

jayacotton commented May 6, 2022 via email

@ttpilot
Copy link

ttpilot commented May 6, 2022

Thanks. I'll give it a try

@ttpilot
Copy link

ttpilot commented May 7, 2022

I tried it out. It sets up correctly on the screen, and typing text works fine. Any text I 'Save' or 'save As' appears to write out to the disk, but the files are always empty. If I load a previous text file that has known content, a 'Save' or 'save As' also results in an empty file

@ttpilot
Copy link

ttpilot commented May 7, 2022

Never mind. Disk was full and produced no error message. Te is saving normally. Thanks much

@jayacotton
Copy link
Author

jayacotton commented May 7, 2022 via email

@ttpilot
Copy link

ttpilot commented May 8, 2022

Understood. I thought a bit about that today. It's been too long since I used a lot of control-key codes.

@MiguelVis
Copy link
Owner

Hi @jayacotton

Sorry about this sooooo late reply, but paid programming work was winning the last weeks and months over my hobby projects.

TE is released under the GNU license v2, so it's freeware.

In fact, you MUST publish the sources under the GPL if you distribute the binaries.

So add your copyright to your partial work over my original TE sources and just do it.

I have no problem publishing the sources of your / my work here at my GitHub repositories as already did for the RC2014 computer variants from Ladislau Szilagyi - ie:

https://github.com/MiguelVis/te-rc2014-128kb

@MiguelVis
Copy link
Owner

Cool. Keep me posted on any other issues. I am so used to VI that I really struggle with the control codes. Been thinking about a mode to make the arrow keys and page up/down work. jc

Which are the key codes emitted from your keyboard?

Maybe I can help on this.

@jayacotton
Copy link
Author

jayacotton commented May 8, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants