Line Feed - Oric MCP40 demo at Solskogen

Want to discuss about Demos on the Oric, here you are !
Post Reply
User avatar
Dbug
Site Admin
Posts: 2299
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Line Feed - Oric MCP40 demo at Solskogen

Post by Dbug » Sun Jul 17, 2016 4:39 pm

Hello everybody,

last month somebody was selling a MCP40 on eBay, and on an impulse decided to buy it (I had one back in the days, always missed it, and I needed more of red and black stuff).

I also managed to source some new pens (and replacement gears for the mechanism), and on Friday since I had not prepared any prod for the party I decided to give a shot at coding a small something for it on the party place.

You can get it here:
YouTube
Pouet

The source code is actually on the Pouet page, just click on the NFO link on the top right.

Hope you like it :)

@Xeron: How difficult would it be to add a secondary window to Oricutron where we could "write" the actual output a printer? I'm willing to try to make a MCP40 renderer for it, I just need the base support. Also means we could have a practical way to output and visual information while it happens - like profile or debugging information!

User avatar
Chema
Game master
Posts: 1919
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Re: Line Feed - Oric MCP40 demo at Solskogen

Post by Chema » Sun Jul 17, 2016 5:30 pm

Very nice demo Dbug! It's great to see that printer working... Congrats.

User avatar
iss
Flight Lieutenant
Posts: 439
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Line Feed - Oric MCP40 demo at Solskogen

Post by iss » Sun Jul 17, 2016 8:59 pm

Nice demo. It's really very fun how MCP40 changes ink pens.
Why not to add some printer music like this one.... ;)

Else, about Oricturon - IMHO everything is doable, but here is a quick and dirty hack to
"intercept" LPRINT's output. Normally Oricutron writes all printer output to file named
'printer_out.txt'. Under *nix all is clear: just use '$mkfifo printer_out.txt' in Oricutron's
main directory and you are ready to read out the printers output from your program.

But I assume you are using mainly Windows which doesn't have the handy 'mkfifo' ...
We have to use Windows pipes:
1. Use HEX editor, open oricutron.exe and find first occurrence of the string 'printer_out.txt'
2. Replace the string with exactly this one: '\\.\\pipe\print' and save the modified exe.
3. Use the 'Test.exe' from the attached archive.
4. Start modified oricutron and LPRINT something - it should appear shortly in the Test.exe window.
In the attached archive you can find the source code 'main.cpp' which is actually taken from MS developper resources HERE and you can modify it to create MCP40's graphics language parser/interpreter or just to monitor LPRINTed debug values in 'real-time'. :)

screenshot.jpg
Source, oricutron, output, hex-editor.
Test_Windows_Pipes.zip
Test executable and source.
(15.07 KiB) Downloaded 91 times

Godzil
Squad Leader
Posts: 733
Joined: Sat May 21, 2011 7:21 pm
Location: Between UK and France
Contact:

Re: Line Feed - Oric MCP40 demo at Solskogen

Post by Godzil » Sun Jul 17, 2016 11:38 pm

iss wrote:Nice demo. It's really very fun how MCP40 changes ink pens.
Why not to add some printer music like this one.... ;)
That can't be done this way without replacing the printer electronics

User avatar
ibisum
Squad Leader
Posts: 834
Joined: Fri Apr 03, 2009 8:56 am

Re: Line Feed - Oric MCP40 demo at Solskogen

Post by ibisum » Tue Jul 19, 2016 10:58 am

Pushes my nostalgia button up to 11, very nice to see the old MCP printing away, and amazing how visceral the sound of the pen-change mechanism is to me, even today ..

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest