Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #3942

Re: Delete Key Handler for BASIC.SYSTEM

Newsgroups comp.sys.apple2.programmer
Date 2017-10-09 23:46 -0700
References <de32a087-4159-4df3-9420-9f8c80670cbf@googlegroups.com>
Message-ID <976fb56d-40af-449b-925f-90dc8b1996df@googlegroups.com> (permalink)
Subject Re: Delete Key Handler for BASIC.SYSTEM
From gids.rs@sasktel.net

Show all headers | View raw


On Monday, October 9, 2017 at 10:48:00 PM UTC-6, Bill Chatfield wrote:
> It always frustrated me that the Delete key did not work right. I've written a handler to fix it. It's not perfect yet. It breaks the escape key handling and the arrow keys. I'm still working on it.
> 
> https://github.com/gungwald/delhndlr
> 
> It assembles with Merlin.

This simple little routine should work for both Prodos and Dos3.3 but won't work with 80-col cards in a II+.

* FOR PRODOS
	LDA #<DELETE
	STA $BE32
	LDA #>DELETE
	STA $BE33
	RTS

* FOR DOS 3.3
	LDA #<DELETE
	STA $38
	LDA #>DELETE
	STA $39
	JMP $3EA

DELETE	BIT $C01F
	BMI COL80
	JSR FD0C
	BNE DEL2

COL80	JSR $C305

DEL2	CMP #$FF
	BNE RETURN
	LDA #$88
	JSR $FDED
	LDA #$A0
	JSR $FDED
	LDA #$88
RETURN	RTS

I am not totally sure of the Dos 3.3 method, it has been too long and my notes are not handy.

But I use this routine regularly under Prodos.  You can also add a routine to make sure THIS routine is re-enabled on RESET.

Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Delete Key Handler for BASIC.SYSTEM Bill Chatfield <billchatfield1@gmail.com> - 2017-10-09 21:47 -0700
  Re: Delete Key Handler for BASIC.SYSTEM James Davis <JPD.Enterprises@outlook.com> - 2017-10-09 22:57 -0700
    Re: Delete Key Handler for BASIC.SYSTEM James Davis <JPD.Enterprises@outlook.com> - 2017-10-09 23:47 -0700
      Re: Delete Key Handler for BASIC.SYSTEM "Mark D. Overholser" <marko@markoverholser.com> - 2017-10-10 09:57 -0700
      Re: Delete Key Handler for BASIC.SYSTEM Steve Nickolas <usotsuki@buric.co> - 2017-10-10 12:59 -0400
        Re: Delete Key Handler for BASIC.SYSTEM Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2017-10-12 00:59 -0500
    Re: Delete Key Handler for BASIC.SYSTEM Bill Chatfield <billchatfield1@gmail.com> - 2017-10-10 21:02 -0700
      Re: Delete Key Handler for BASIC.SYSTEM James Davis <JPD.Enterprises@outlook.com> - 2017-10-11 00:36 -0700
    Re: Delete Key Handler for BASIC.SYSTEM Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2017-10-12 00:53 -0500
      Re: Delete Key Handler for BASIC.SYSTEM James Davis <JPD.Enterprises@outlook.com> - 2017-10-12 00:37 -0700
      Re: Delete Key Handler for BASIC.SYSTEM mdj <mdj.mdj@gmail.com> - 2017-11-21 19:05 -0800
  Re: Delete Key Handler for BASIC.SYSTEM gids.rs@sasktel.net - 2017-10-09 23:46 -0700
    Re: Delete Key Handler for BASIC.SYSTEM "Mark D. Overholser" <marko@markoverholser.com> - 2017-10-10 09:59 -0700
      Re: Delete Key Handler for BASIC.SYSTEM gids.rs@sasktel.net - 2017-10-10 21:02 -0700
    Re: Delete Key Handler for BASIC.SYSTEM Bill Chatfield <billchatfield1@gmail.com> - 2017-10-10 21:21 -0700
      Re: Delete Key Handler for BASIC.SYSTEM gids.rs@sasktel.net - 2017-10-11 07:56 -0700
        Re: Delete Key Handler for BASIC.SYSTEM gids.rs@sasktel.net - 2017-10-11 08:02 -0700
      Re: Delete Key Handler for BASIC.SYSTEM gids.rs@sasktel.net - 2017-10-11 08:15 -0700
        Re: Delete Key Handler for BASIC.SYSTEM James Davis <JPD.Enterprises@outlook.com> - 2017-10-11 17:50 -0700
          Re: Delete Key Handler for BASIC.SYSTEM gids.rs@sasktel.net - 2017-10-11 20:42 -0700
            Re: Delete Key Handler for BASIC.SYSTEM James Davis <JPD.Enterprises@outlook.com> - 2017-10-12 00:09 -0700
              Re: Delete Key Handler for BASIC.SYSTEM gids.rs@sasktel.net - 2017-10-12 07:42 -0700
                Re: Delete Key Handler for BASIC.SYSTEM James Davis <JPD.Enterprises@outlook.com> - 2017-10-12 22:42 -0700
                Re: Delete Key Handler for BASIC.SYSTEM gids.rs@sasktel.net - 2017-10-13 13:14 -0700
                Re: Delete Key Handler for BASIC.SYSTEM Bill Chatfield <billchatfield1@gmail.com> - 2017-10-13 22:16 -0700
                Re: Delete Key Handler for BASIC.SYSTEM Michael Pohoreski <michael.pohoreski@gmail.com> - 2017-10-14 09:58 -0700
                Re: Delete Key Handler for BASIC.SYSTEM Michael J. Mahon <mjmahon@aol.com> - 2017-10-14 17:17 -0500
                Re: Delete Key Handler for BASIC.SYSTEM Michael Pohoreski <michael.pohoreski@gmail.com> - 2017-10-14 22:44 -0700
                Re: Delete Key Handler for BASIC.SYSTEM Michael J. Mahon <mjmahon@aol.com> - 2017-10-15 02:04 -0500
                Re: Delete Key Handler for BASIC.SYSTEM Anthony Ortiz <anthonypaulo@gmail.com> - 2017-10-15 08:22 -0700
                Re: Delete Key Handler for BASIC.SYSTEM Michael Pohoreski <michael.pohoreski@gmail.com> - 2017-10-16 09:43 -0700
                Re: Delete Key Handler for BASIC.SYSTEM gids.rs@sasktel.net - 2017-10-16 13:19 -0700
              Re: Delete Key Handler for BASIC.SYSTEM gids.rs@sasktel.net - 2017-10-12 21:30 -0700

csiph-web