CPCWiki forum

General Category => General Discussion - Introductions => Topic started by: Bytebreaker on 23:51, 25 March 17

Title: Stupid question - is there an overwrite mode for Basic prompt?
Post by: Bytebreaker on 23:51, 25 March 17
Hello,


the Locomotive Basic environment is mature and professional compared to many other Basic-based operating systems of the 80's.
Still, I sometimes miss the primitive way you could just overwrite letters as you did all the time for example on C64.


Is there any hotkey combination to switch between insert and overwrite mode on CPC? 
Title: Re: Stupid question - is there an overwrite mode for Basic prompt?
Post by: CraigsBar on 23:57, 25 March 17
Yes and no.... On a cpc464 with basic 1.0 you have to use the edit the line with the edit command.....

Edit 10

Will show the current content of line 10 in over type or editing mode.

On a cpc6128 you can also type auto which will cycle through each line of the program in over type or editing mode moving onto the next line with each time enter is pressed.
Title: Re: Stupid question - is there an overwrite mode for Basic prompt?
Post by: AMSDOS on 00:57, 26 March 17
I don't think there's an overwrite mode in BASIC, I guess if the Winape emulator is begin used, you could Read BASIC program into that and use the overwrite from the PC to do that.


@CraigsBar (http://www.cpcwiki.eu/forum/index.php?action=profile;u=482) mentioned the use of AUTO in BASIC 1.1, though earlier I typed in a program called easy-edit by John Keneally which ironically only works for BASIC 1.0, you can find that program here (http://www.cpc-power.com/index.php?page=detail&num=10894).
Title: Re: Stupid question - is there an overwrite mode for Basic prompt?
Post by: arnoldemu on 10:10, 26 March 17
Yes, press ctrl+tab to toggle it on or off.

EDIT: Before do "edit <line number>" to enter the editor though.

I'm not sure it works when entering lines.

EDIT: You can use ctrl+left, ctrl+right to go to start/end of edited line too.
EDIT: CTRL+CAPS LOCK toggles shift lock.

I have updated the wiki with the keys that can be used.
Title: Re: Stupid question - is there an overwrite mode for Basic prompt?
Post by: Bytebreaker on 02:16, 28 March 17
Great thanks for the info.


Btw. I managed to realize a 3D scene on CPC in Loco Basic, I ported it to C64 V2 Basic where I had, besides many other obstacles, to Use a custom line drawing routine because there is no appropriate basic command  and now I am about to translate all this to 6502 assembler while trying to find out how much raster time it will take to draw 15 lines during one frame and how I will cope with the calculation. Since a scroller and a Sprite starfield (yes, the only single advantage the c64 has vs CPC) need to be processed as well and also irq based music, the vector part must be tight. The screen memory of the c64 is not suitable for vector graphics so There must be a very fast plot/line routine and pre calculated coordinate tables I guess.


That was completely off topic sorry for that but I enjoy my CPC as leading machine for drafting and prototyping in the best 8 bit basic dialect there is.
Title: Re: Stupid question - is there an overwrite mode for Basic prompt?
Post by: AMSDOS on 10:27, 28 March 17
Quote from: Bytebreaker on 02:16, 28 March 17

Btw. I managed to realize a 3D scene on CPC in Loco Basic, I ported it to C64 V2 Basic where I had, besides many other obstacles, to Use a custom line drawing routine because there is no appropriate basic command  and now I am about to translate all this to 6502 assembler while trying to find out how much raster time it will take to draw 15 lines during one frame and how I will cope with the calculation. Since a scroller and a Sprite starfield (yes, the only single advantage the c64 has vs CPC) need to be processed as well and also irq based music, the vector part must be tight. The screen memory of the c64 is not suitable for vector graphics so There must be a very fast plot/line routine and pre calculated coordinate tables I guess.


That was completely off topic sorry for that but I enjoy my CPC as leading machine for drafting and prototyping in the best 8 bit basic dialect there is.


You might want to take a look at the 3D Space Chase I typed in on CPC-Power:
http://www.cpc-power.com/index.php?page=detail&num=9397


I typed it in a couple of years ago, so it's not as fresh now as when I typed it in. The Screenshots on CPC-Power don't really show the Space Crafts, but it rotates the INK palette to simulate the movement of Stars, which is the best approach in BASIC.


The other game I typed in from the Late AA Basically BASIC simulates a simple 3D style game you can find that here:
http://www.cpcwiki.eu/forum/programming/interesting-type-ins/msg128843/#msg128843
Title: Re: Stupid question - is there an overwrite mode for Basic prompt?
Post by: Bytebreaker on 19:20, 28 March 17
@ amsdos


Great stuff thanks for sharing.  :D
I will not publish yet anything here. When the c64 Intro is finished I will link it here and also post the Loco Basic prototype of the 3d scene.
Title: Re: Stupid question - is there an overwrite mode for Basic prompt?
Post by: freemac on 19:32, 28 March 17
You can also enter :
List 10
and use SHIFT+ARROWS, and COPY key :)
Powered by SMFPacks Menu Editor Mod