03.03.2013 Views

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

DIGITAL RESEARCH(r) CP/M Plus TM (CP/M Version 3) Operating ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.4 Basic Editing Commands <strong>CP</strong>/M 3 User's Guide<br />

6.4.1 Moving the Character Pointer<br />

This section describes commands that move the character pointer in useful increments<br />

but do not display the destination line. Although ED is used primarily to<br />

create and edit program source files, the following sections present a simple text as<br />

an example to make ED easier to learn and understand.<br />

The B (Beginning[Bottom) Command<br />

The B command moves the <strong>CP</strong> to the beginning or bottom of the memory buffer.<br />

The B command takes the following forms:<br />

B, -B<br />

-B moves the <strong>CP</strong> to the end or bottom of the memory buffer; B moves the <strong>CP</strong> to the<br />

beginning of the buffer.<br />

The C (Character) Command<br />

The C command moves the <strong>CP</strong> forward or backward the specified number of<br />

characters. The C command takes the following forms:<br />

nC, -nC<br />

when n is the number of characters the <strong>CP</strong> is to be moved. A positive number moves<br />

the <strong>CP</strong> towards the end of the line and the bottom of the buffer. A negative number<br />

moves the <strong>CP</strong> towards the beginning of the line and the top of the buffer. You can<br />

enter an n large enough to move the <strong>CP</strong> to a different line. However, each line is<br />

separated from the next by two invisible characters: a carriage return and a line-feed,<br />

represented by . You must compensate for their presence. For example, if<br />

the <strong>CP</strong> is pointing to the beginning of the line, the command 30C moves the <strong>CP</strong> to<br />

the next line:<br />

Emily Dickinson said,<br />

"I fin^d ecstasy in living -<br />

6-10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!