Jump to content
IGNORED

Like solving puzzles? Any ideas on how to do this?


Recommended Posts

I would like to be able to copy a text selection on a Linux PC, and be able to virtually "paste" it over serial to real Atari hardware, as though the text was Keyboard input, on the Atari side.

 

I have an RS-232C port on my PC, and an 850 interface on the Atari. My SIO2PC was USB, and only worked under Windows, so I'm mainly considering how to have a serial datastream replace Atari Keyboard input, without explicitly using a terminal program, so that text can be entered into any Atari application that is looking for keyboard input. Is there any easy way to swap the handlers?

 

Any ideas?

 

 

Link to comment
Share on other sites

Yeah, but it will only work for applications where (1) the application properly uses the OS for input (2) you get a chance to load the handler before the program is loaded.

 

oh, and... (3) there's memory for your handler available.

Link to comment
Share on other sites

It depends on the application or language in use.

 

With Basic you're pretty much doing what you ask whenever you use ENTER <filespec> to load a program.

You can also get Basic to do the same thing by changing a couple of it's control variables.

 

ENTDTD $B4 (180 dec) controls which IOCB Basic is receiving input from. You can open a file containing a Listed program or bunch of commands on disk then change this location and Basic will act as if key input is coming from the file but the output will still go to the screen as normal.

 

LISTDTD $B5 (181 dec) controls which IOCB Basic sends output to.

 

So for Basic you can to an extent do what you want but a fair bit of user intervention is needed. To have the process mostly automated you'd need some customization at both ends.

 

Swapping handlers - the problem is that Atari uses E: handler which is a mix of K: and S: as well as some unique code. I'm fairly sure that you can't replace the K: or S: default handler with your own then have E: use it as well. The E: handler would likely have all calls to shared routines hard-coded rather than go through CIO.

 

What might work for you is just take over the E: handler. Have some hot key combination that's used for paste. Then your handler opens another IOCB that talks to the 850, grabs the text from your Linux box and treats it as input to E:

Link to comment
Share on other sites

If you want a way to get keystrokes into an A8 program no matter what, then a PC->XEGS keyboard interface would be the way to do it. You'd use a uC to buffer serial input and strobe the keyboard lines at the right times.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...