• Please review our updated Terms and Rules here

Powertran Cortex

now i need to figure out a way you can test the cdos 80x26 mode...

Dave.

Hi Jim,

Attached is a text file of a BASIC listing that will put the V9938 (and hopefully the F18A) into 80*26 mode and put a '*' in each corner. I can send you a .cas file if you like so that you don't need to type it in.

I tried to just paste it here but it kept being converted to lower case, so not sure how to inhibit that...?

Dave.
 

Attachments

  • text2.txt
    861 bytes · Views: 1
Hi all
My Cortex is still here looking for a good home, I don't think it helps that my posts seem to take up to a week to get past the moderator. By the time my posts get on the site you lot have moved on to the next page.
I have no objections to it going to America or even further. I have a business address so it can be collected during the day by a courier.
I have also found an a to d board that I don't think is quite finished and a few odd ic's (not 999 series) that can come with it.

Norvin
 
Hi Dave,
I couldn't get the text2.cas file to work, initialise the cortex and did load "text2" but it just says found ""
I downloaded diskimg.cas so i know the setup is ok.

Anyway, i renamed the text2.txt file to commands.txt and used the "send command file" option to "type" it onto the cortex.

Ran it and it certainly goes into 80 column but not 26 rows, i only got the * in the top corners.
A bit of code editing and i think it's only a 24 row mode, changing the y=25 to y=23 on lines 330 and 340 got all 4 *'s

Jim
 
Hi Dave,
I couldn't get the text2.cas file to work, initialise the cortex and did load "text2" but it just says found ""
I downloaded diskimg.cas so i know the setup is ok.

Anyway, i renamed the text2.txt file to commands.txt and used the "send command file" option to "type" it onto the cortex.

Ran it and it certainly goes into 80 column but not 26 rows, i only got the * in the top corners.
A bit of code editing and i think it's only a 24 row mode, changing the y=25 to y=23 on lines 330 and 340 got all 4 *'s

Jim

Thanks for trying, Jim. Bummer about that, grrrrrrr.

FYI, to load the .cas file just do LOAD"" rather than LOAD"TEXT2" as I didn't give it a name.

Dave.
 
Ah, i thought LOAD"" just showed you the name of the file it had found on the tape.

I changed line 260 to 260 MEM[D]=MOD[L,10] + ASC["0"] to make it easier to count the rows and columns.

I presume it was supposed to do 26 rows ?

Jim
 
Ah, i thought LOAD"" just showed you the name of the file it had found on the tape.

I changed line 260 to 260 MEM[D]=MOD[L,10] + ASC["0"] to make it easier to count the rows and columns.

I presume it was supposed to do 26 rows ?

Jim

Fair enough!

Yes, line 200 sets the LN bit of R9 in the V9938. This gives it 26.5 lines instead of 24. If I change the 080H to 0H, then I only get 24 lines. Sounds like he didn't implement that feature. No big deal but I would have to change the V9938 CDOS extensions to only use 24 lines if I buy a F18A. Luckily I have the source code!

Dave.
 
There isn't a lot of documentation with the F18A but i have a attached a copy of the register list.

Jim
 

Attachments

  • f18a_register_use.zip
    9.4 KB · Views: 1
I got the following reply from Matthew the F18A creator.

The 26.5 row support of the 9938 is a separate feature not directly
related to the 80-column mode, or any other mode. The F18A was designed
to be a 9918A replacement so the 9938 feature support is mostly limited
to 80-column mode and a few other minor features. However, the F18A does
support a 30-row setting that is available in the 80-column mode (and
other modes as well), so if you can patch the program you could enable
that to get more rows.

The 30 row mode sounds interesting, the 80 x 24 mode does give rather tall and thin characters.
I'm not sure if that's something the V9938 does or only the F18A, I've asked for more details.

Jim
 
I got the following reply from Matthew the F18A creator.



The 30 row mode sounds interesting, the 80 x 24 mode does give rather tall and thin characters.
I'm not sure if that's something the V9938 does or only the F18A, I've asked for more details.

Jim

That's very interesting. Maybe when you get the relevant register info, you can try patching the BASIC prog to see if it works?

If it does work OK, I might buy one and have a go at patching V9938 to drive it. Be nice to have the option of using an LCD monitor on the Cortex without the use of some sort of converter etc.

Thanks for the info,

Dave.
 
Hi all
My Cortex is still here looking for a good home, I don't think it helps that my posts seem to take up to a week to get past the moderator. By the time my posts get on the site you lot have moved on to the next page.
I have no objections to it going to America or even further. I have a business address so it can be collected during the day by a courier.
I have also found an a to d board that I don't think is quite finished and a few odd ic's (not 999 series) that can come with it.

Norvin

Is it just me or has anybody else only just had notification that this message was posted ?, i'm sure it wasn't there on the 27th when it says it was posted.

I didn't think this forum was moderated, if you are registered the messages get posted straight away ?

Jim
 
Is it just me or has anybody else only just had notification that this message was posted ?, i'm sure it wasn't there on the 27th when it says it was posted.

I didn't think this forum was moderated, if you are registered the messages get posted straight away ?

Jim

I don't Know if it is a junior member thing but I am registered and it always takes about a week for my posts to get on the forum but when they do go up the seem to be inserted back in date order for the time I sent them. but never mind please don't forget about my Cortex where is it going. I am starting to get my ear bent about it so need to get it sorted. I am posting this at 18;00 uk time on 2nd December.

Norvin
 
Is it just me or has anybody else only just had notification that this message was posted ?, i'm sure it wasn't there on the 27th when it says it was posted.

I didn't think this forum was moderated, if you are registered the messages get posted straight away ?

Jim

I've had a few emails saying "Norv has just replied..." and when I come here to take a look, there's no evidence of his post! I didn't realize that there seems to be some bizarre delay/lag. Very weird...

Dave.
 
Hi all
My Cortex is still here looking for a good home, I don't think it helps that my posts seem to take up to a week to get past the moderator. By the time my posts get on the site you lot have moved on to the next page.
I have no objections to it going to America or even further. I have a business address so it can be collected during the day by a courier.
I have also found an a to d board that I don't think is quite finished and a few odd ic's (not 999 series) that can come with it.

Norvin

@Norvin, I would definitely be interested in the Cortex, then. I've been resurrecting the layouts for various Cortex boards, so the A/D board would be most interesting.

@Stuart, if you are willing to do the pickup and ship it to me, I would greatly appreciate it--just let me know if you can do it.

@Jim, I haven't seen Norvin's post prior to today either--or the previous one where he notes that it is fine with him if it comes to this side of the Pond. Definitely something strange going on with the board. . .
 
I don't Know if it is a junior member thing but I am registered and it always takes about a week for my posts to get on the forum but when they do go up the seem to be inserted back in date order for the time I sent them. but never mind please don't forget about my Cortex where is it going. I am starting to get my ear bent about it so need to get it sorted. I am posting this at 18;00 uk time on 2nd December.

Norvin

Hi Norv,

For the record, I got email notification of your post @11:20 EST (16:20 GMT) today, December 5.

Dave.
 
I've also just had notification of Norvins last post (#572), 3 days late.

I'm posting this 18:44 on 5th.


And it appears instantly, very strange.

Jim
 
Last edited:
@Norvin, I would definitely be interested in the Cortex, then. I've been resurrecting the layouts for various Cortex boards, so the A/D board would be most interesting.

I've actually already tried scrounging the A/D board as well by PM though i'm not sure if Norvin has got it.
But i'd be happy enough with some photos and buying a pcb from you once it's reverse engineered.

Jim
 
Porting ancient unix

Porting ancient unix

Hello all,

Background

About a month ago I came across this thread and I have read it with much interest. I had never heard of the Cortex before reading this thread, but I do own a 99/4a. I powered it up about two years ago and was overjoyed to see it still work. Back in the day I had expanded it with 32K RAM on the 16 bit bus, and built an EPROM programmer and a 5.25" floppy disk driver for it, both from scratch. 30 years ago I wanted to put a mini unix on it, but that never materialised. That dream kept itching and was the driver for reviving the 99/4a. However, including an old telly it is too big a setup to be practical. Still, a 9900 plus 64K RAM should be enough to run Xinu and LSX unix. With a MMU and 256K it should be enough for Version 6 ("Lion's") unix. A 99105 or 99110 (having separate I/D spaces) should be enough for Version 7 and perhaps even BSD 2.11.

Via Dave's website I discovered the Cortex, Marinchip and the MDEX software. What an interesting read. By the way, Dave, your site lacks the general MDEX manual, but it is available on Jim Hearn's pages. Perhaps a forgotten item? Very impressed with the Cortex emulator by the way.

All in all, a Cortex with the disk hardware installed should be able to run LSX unix. This may sound unrealistic, but some Russian hackers have it running on a BK0010, a Russian home computer from the 1980's that uses a single chip PDP11 derivative as its CPU, and has 48K RAM. The software repo for it is over on Sourceforge.

I have no intention of building or owning a Cortex, but Stuart's breadboard projects look like a practical start to get my 30 year old project speeded up a bit.

Hardware

Stuart, thank you for these captivating designs and excellent web pages. You are getting quite a following: http://www.vaxman.de/projects/tms99xx/

I've just build the 9995 breadboard and it works like a charm. The CPU and UART came from G&C supermarket at eBay, which sells them for 7 and 3 euro respectively, free shipping via mail. The parts arrived after 19 and 28 days and turned out to be genuine. By mistake I ordered a 9902 instead of a 9902A, but it still works. I compared the datasheets and saw no obvious differences. Does anybody know the difference between the two?

I left out the MAX232 level shifter and hooked up the 9902 to a FTDI232 chip right away, using the Elektor/Circuit Cellar breakout board. http://www.elektor.com/magazines/2011/september/ft232r-usb-serial-bridge-bob.1912360.lynkx
This way I can use the USB port as a power source and the system becomes a handy A5 sized USB peripheral. I also changed the LS04 to a LS14 (hex inverting schmitt-trigger) and used two inverters to make a (power-on) reset circuit. I have found that the LS138 is not actually needed: if one connects an inverted /MEMEN signal to the 9902 chip select it works equally well. Other adaptations are the use of an EEPROM and a 512K RAM chip. What results is a 6 chip fully functional computer (CPU, UART, RAM, ROM, LS14 and LS32).

Somebody suggested that the ROM should be bankable and that writes could always go to the RAM. I haven't tried this yet, but I think the following should work: if the RAM chip select is hooked up to /MEMEN it covers the full 64K. Its output enable becomes the OR of /DBIN and the inverted /ROM_CE. That latter becomes the OR of the original /ROM_CE and a new signal MAP. When MAP is low, the lower 32K are read from ROM, when MAP is high the ROM is disabled resulting in 64K of RAM.

Another modification I would like to try is adding the single stepping hardware. I think the Cortex circuit for this could work: decoding the external instructions with a LS138 and generating a /NMI signal with three flip-flops (two LS74's). The CKON/CKOFF instructions and the fourth flip-flop could be used to generate the MAP signal for above bank switching. This would take it from a 6 chip system to a 9 chip system, but still fitting on two strips of breadboard.

For disk I'm thinking about a microcontroller hooked up to an SD memory card, but that is for another day. Also for another day is building the 99105/99110 project.

Questions:
- any suggestions?
- connecting READY to /RESET should eliminate the automatic wait state. Has anybody done the recalculation work for the baud rate table?
- the only 99xxx I can find is a 50 euro part sold by 'timeline' on eBay, a UK source. Is that a known good source? Are there better alternatives?
- what is the best way to get software downloaded? 'Typing' a file from the terminal emulator to the breadboard seems a good way, but currently this overflows; I guess I need to hook up the hardware flow control signals.

Software

With convenient hardware now almost sorted, the next step is getting a good 9900 C compiler. This is what I lacked 30 years ago and I am still not there yet. These are the options I'm aware of:

- Clint Pulley's C99 for the 99/4a. This one is too limited for my purposes.

- Allan Beard's TI-C for the Geneve 9640. This one is based on Matthew Brandt's compiler for the 68K which is open source. A compiled version of TI-C for the 9640 is on whtech, but alas no sources. I'm trying to locate Allan Beard, but have not found him yet.

- Port the original Ritchie C compiler from PDP-11 to 9900. This is my current preferred route. With the 9900 similar to the PDP-11 in philosophy this should be feasible. I ported the version 6 compiler to modern C some 4 years ago (and the BK0010 project has done the BSD2.11 compiler). Already ported the assembler to 9900.

- Dave Pitt's GCC port. I couldn't get this to work out of the box and using GCC kinda kills the 'retro' attraction for me, as it could never run natively on a 16 bit machine.

Did the Cortex ever have a C compiler? Any other suggestions?

Thanks everybody for the wonderful preservation work!

Paul
 
Back
Top