text stringlengths 0 99.6k |
|---|
To give your subroutine an appearently REMless title do the |
following: |
1) Enter the REM on desired line |
followed by a quote ("). |
2) Press <CR> |
3) Cursor up to that line and |
to the right of that quote |
turn on reverse mode (CTRL |
RVS-ON). |
4) Now press SHIFT M and SHIFT Q. |
5) Press the quote again then |
delete it. |
6) Enter the comment you wish to |
be entered as a REMark. |
7) Press quote and then delete |
it. |
8) RVS-ON. |
9) Next SHIFT Z. |
10) Finally, <CR>. |
That's all there is to it! I can't take credit for this one. It |
belongs to Luis Pistoia of Argentina. |
To produce the indentation effect found in certain PASCAL and C |
editors, use the colon (:). That's all! The following give examples of |
what I mean: |
---------- |
PROGRAM #1 |
---------- |
10 :FOR I = 1 TO 10 |
12 : FOR J = 1 TO 10 |
14 : FOR K = 1 TO 10 |
16 : PRINT |
18 : PRINT |
20 : PRINT |
22 : PRINT K, |
24 : PRINT J, |
26 : PRINT I |
28 : PRINT |
30 : PRINT |
32 : PRINT |
34 : NEXT K |
36 : NEXT J |
38 :NEXT I |
---------- |
PROGRAM #2 |
---------- |
10 :REM THIS IS AN EXAMPLE IN |
12 :REM STRUCTURED PROGRAM DESIGN |
14 :REM |
16 :BEGINNING=1: FINISH=12 |
18 :FOR LOOP = BEGINNING TO FINISH |
20 : PRINT "LOOP #"; LOOP |
22 : PRINT: PRINT: PRINT |
24 :NEXT LOOP |
99 :STOP |
Also, in PROGRAM #2 I use long variable names to make the program more |
readable. Naturally BASIC will only re the first two characters of |
the variable. For example the BASIC interpreter will refer to the |
variable BEGINNING as BE. |
I hope these hints are helpful. If they are, pass them on! |
Documentation for BASMOD |
------------------------ |
BASMOD is a modification by Joel Rubin |
of a program which appeared in the |
August 1983 COMPUTE! Gazette (Note 1) |
which adds four new graphics commands |
to your Commodore 64. It enables you |
to plot points on a high resolution |
screen with simple commands from |
BASIC. |
What the Program Does |
--------------------- |
Part of BASMOD consists of a machine |
language routine which copies the |
BASIC ROM (Read Only Memory), which |
interprets BASIC commands, into RAM |
(Random Access Memory). ROM is |
"permanent" memory - that is, the |
program stored in ROM is "burned" into |
the ROM memory chip so that it is not |
lost when power is removed from the |
'64. This "permanent" machine |
language program, and its counterpart, |
the KERNAL ROM, which oversees the |
general operation of the '64, are |
essential to the function of all BASIC |
programs; they tell the computer what |
it should do when it "sees" a BASIC |
command such as PRINT or LOAD, either |
in a program or typed in from the |
keyboard ("immediate" mode). |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.