Scheming with the Coco and Android

My dad used to say, “There’s the easy way, there’s the hard way, and then there’s Earl’s way that makes the hard way look easy.” I patched my input driver to replace “E” with ‘RUN”ED2’ in the input buffer. ED2 just says EXEC&H7C00. Hey, it works. lol.

Read more...

§799 · April 2, 2020 · CoCo, Urbane · 1 comment ·


I tried to squeeze the last line out of a bit of code that was rarely used. It didn’t work. I did it as simply as I could. It worked. While I was at it I saw that I had told my program that there were 26 alphanumeric chars instead of 36. Meant to be.

Read more...

§789 · April 1, 2020 · CoCo, Urbane · (No comments) ·


My latest problem was my fancy input driver which changed long names into pairs of characters changed hex numbers like &H7C00 into something like &AA. Boo. I fixed it in a way that fixed the output driver, too. Atta-boy Earl.

Read more...

§784 · March 28, 2020 · CoCo, Urbane · (No comments) ·


My program is designed for a 64k Coco 2. It runs in ROM mode and uses hi-ram and the top K of lo-ram for itself. At present, once you run it, it returns to Direct mode. Now all characters in names are significant. SAM=5:SAUL=6:?SAM returns 5. My next step is to integrate the editor.

Read more...

§780 · March 24, 2020 · CoCo, Urbane · (No comments) ·


Lines going up from the cursor now are shown in their crunched version. Going down they are shown in their uncrunched version.

Read more...

§777 · March 2, 2020 · CoCo, Urbane · (No comments) ·


LEFT ARROW MOVES LEFT. RIGHT MOVES RIGHT. SHIFT-LEFT IS BKSP. SHIFT-RIGHT IS DEL. UP MOVES UP. DOWN MOVES DOWN. SHIFT-UP EXITS. SHIFT-DOWN TOGGLES INSERT. ENTER OPENS A LINE. ALT ENTER DELETES A LINE. ALT IS SHIFT-CLEAR. ON VCC ALT IS SHIFT-HOME. ALT PRINTS NEXT CHARACTER.

Read more...

§774 · February 27, 2020 · CoCo, Urbane · (No comments) ·


So far I have a screen editor loosely based on FLEXIKEY. * LEFT ARROW MOVES LEFT. RIGHT MOVES RIGHT. SHIFT-LEFT IS BKSP. SHIFT-RIGHT IS DEL. * UP MOVES UP. SHIFT-DOWN TOGGLES INSERT. DOWN MOVES DOWN. SHIFT-UP EXITS. ENTER OPENS LINE. ALT THEN ENTER DELETES LINE. * ALT is SHIFT-CLEAR. ON Vcc it is SHIFT-HOME. * […]

Read more...

§768 · February 23, 2020 · CoCo, Urbane · (No comments) ·


April 16, 2016 I have discovered that you don’t actually have to close Vcc or all your PC editors in order to avoid errors when you work on a .DSK image file in CoCoDskUtil. You do need to navigate away from the folder in question in CoCoDskUtil, and open a different .DSK file in CoCoDskUtil. […]

Read more...

§740 · April 16, 2016 · Uncategorized · (No comments) ·


This Example responds to double <enter-key>s. In addition to the three Android classes used in the previous Example, it uses a MotionEvent. EmptyEnter.java import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; import android.support.v4.content.LocalBroadcastManager; import android.text.Editable; import android.text.TextWatcher; import android.util.Log; import android.view.inputmethod.EditorInfo; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.widget.EditText; public class […]

Read more...

§670 · April 24, 2013 · Android · (No comments) ·


A dependable way to respond to the <enter-key> in an EditText is with a TextWatcher, a LocalBroadcastManager, and a BroadcastReceiver. I think you need to add the v4 support library to use the LocalBroadcastManager. I use the tutorial at vogella.com: 7.3 “Local broadcast events with LocalBroadcastManager” because of its complete concise code Example. In onTextChanged […]

Read more...

§634 · April 21, 2013 · Android · (No comments) ·