I Love ED on CP/M

  Рет қаралды 4,303

TechTinkering

TechTinkering

Күн бұрын

A demonstration of ED, the standard editor for CP/M, being used properly.
techtinkering.com/articles/i-...
00:00 Introduction
00:33 File size
01:02 Opening a file
03:20 Loading source file into memory buffer
04:14 Paging and moving through file
05:32 Moving Character Pointer (CP)
07:19 Insert text
09:06 Finding text
10:00 Macro to find text
11:04 Substituting text using a macro
12:47 Juxtapose command
13:48 Copy and pasting
17:08 Handling big files
21:29 Splitting and joining lines
22:47 Please subscribe and leave comments below

Пікірлер: 25
@TechTinkering
@TechTinkering 3 жыл бұрын
The search and replace macro could also be written: MFCPM^Z0TT6Z-3DICP/M^Z This makes used of the inline insert version of the 'I' command.
@Silvertone58
@Silvertone58 6 ай бұрын
A lot to remember which is why I’m putting together a cheat sheet based on your excellent video.
@nathanaelculver5308
@nathanaelculver5308 3 жыл бұрын
I have fond memories of learning ED from the actual DR manual. You’d never find gems like this in a Microsoft Word user’s manual. It’s enough to reduce a Gen-Xer to tears. _...the following action [is] applied n times to the memory buffer: search from the current CP for the next occurrence of the string c1c2...ck. If found, insert the string d1,d2...,dm, and move CP to follow dm. Then delete all characters following CP up to (but not including) the string e1,e2...,eq, leaving CP directly after dm._
@first-thoughtgiver-of-will2456
@first-thoughtgiver-of-will2456 Жыл бұрын
Thank you for sharing this otherwise scarce information. Great video.
@randyjackson7584
@randyjackson7584 Жыл бұрын
Thanks for this, just the right information i was looking for
@edgeeffect
@edgeeffect 2 жыл бұрын
At college we used WordStar in non-document mode for source code... just to avoid ED. ;) Gotta look at some of your other CP/M videos.... they'll take me back to my youth.
@lucius1976
@lucius1976 2 жыл бұрын
I guess in comparison to ED Wordstar was lightyears ahead
@SKraus-pb1ii
@SKraus-pb1ii 2 жыл бұрын
Very helpful, thanks
@xav500011
@xav500011 3 жыл бұрын
This was a useful tutorial to help me use the Z80-MBC2 homebrew computer with CPM 3 that has only the ED editor.
@xav500011
@xav500011 3 жыл бұрын
I found Wordstar on the E: I am having to unlearn MS-DOS a bit. The CP/M 3 I am using on the Z80-MBC has virtual drives from A: to P: that are each limited to 8MB in size.
@simpleprogrammingcodes
@simpleprogrammingcodes 3 жыл бұрын
Great video. I also learned some commands of ED by using CCP/M-86. I really like it. I don't understand why there is no clone for DOS and Linux... Perhaps it's possible to disassemble it and convert it to C or something...
@TechTinkering
@TechTinkering 3 жыл бұрын
Thanks. I have thought about creating ED for Linux. There is Edlin on DOS and ED/EX on Unix which are ok but I much prefer the CP/M editor.
@CarlesOriol
@CarlesOriol 2 жыл бұрын
I like your video. I watched it because I hated ED, and after viewing it, I hate ED even more. Thanks I've learned a lot
@TechTinkering
@TechTinkering 2 жыл бұрын
LOL - I'm glad you liked the video. At least you learned a few more reasons to hate ED 🙂
@user-qf6yt3id3w
@user-qf6yt3id3w 2 жыл бұрын
So you're reading in the first part of a file, inserting characters, and then saving. How does that work? It seems like you'd need to have the whole file in memory to be able to do insertions. I remember I had a Windows file editor that had a 'large file' mode where it would default to binary and overwrite mode. If you switched to insert it would be forced to load the whole file. If it was bigger than available memory Windows would start to swap badly.
@TechTinkering
@TechTinkering 2 жыл бұрын
It uses a buffer and when it comes to save the file/buffer it copies the original file to a temporary file, updates the temporary file and then renames it to the original filename. The whole process works very well.
@Mythologos
@Mythologos 2 жыл бұрын
Is this a port of the Unix ED?
@TechTinkering
@TechTinkering 2 жыл бұрын
There are some similarities because there were lots of line editors for various platforms at one time. However, ED on Unix is unrelated to the ED on CP/M and in fact while CP/M's ED is often referred to as a line editor it could probably be thought of as a character editor because of the fine grain control that it provides.
@tomjscott
@tomjscott Жыл бұрын
Wow, I watched this in the hopes that I was wrong about this editor and maybe I could actually be productive with it. Instead, I now have confirmation on just how ridiculously bad this editor is.
@BrunoRegno
@BrunoRegno 20 күн бұрын
And people blast me for loving and using VI instead of modern IDEs... 😂
@chromosundrift
@chromosundrift 3 жыл бұрын
boomer code is so shouty
@nathanaelculver5308
@nathanaelculver5308 3 жыл бұрын
Triggered? :>
The Pilot Programming Language on CP/M
26:25
TechTinkering
Рет қаралды 1 М.
Z80 Retro #24 - CP/M Introduction
1:16:44
John's Basement
Рет қаралды 19 М.
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 91 МЛН
Каха и суп
00:39
К-Media
Рет қаралды 3,5 МЛН
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 21 МЛН
Programming in C and ASM on CP/M - Small Computer Central
43:59
Lil' Bits
Рет қаралды 1,6 М.
Word Processors on the VIC-20
23:31
TechTinkering
Рет қаралды 1,6 М.
Altair 8800 - Video #17 - CP/M Programming Environment
18:57
deramp5113
Рет қаралды 26 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 327 М.
Ed text editor
4:45
LoomisTook
Рет қаралды 13 М.
Downloading and using CP/M software on the Z80 Playground
10:25
John Squires
Рет қаралды 7 М.
The Computer Chronicles - UNIX (1985)
28:12
The Computer Chronicles
Рет қаралды 143 М.
First Microcomputer OS: CP/M - Computerphile
9:42
Computerphile
Рет қаралды 62 М.
Programming in Assembly with VICMON on the VIC-20
24:02
TechTinkering
Рет қаралды 4,4 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 8 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 24 МЛН
Как правильно выключать звук на телефоне?
0:17
Люди.Идеи, общественная организация
Рет қаралды 583 М.
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 1,7 МЛН