You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
May. 1982. Issue 24 COMPUTEI 111<br />
May. 1982. Issue 24 COMPUTE! 111<br />
Equal as we would like. F. R. scratches his head<br />
and makes a note to fix x that up later somehow.<br />
All AH we have left is a bland PRINT statement<br />
on line 260. Print what? at' A Return character, r, off<br />
course, to end the line. F. R. knows that this characte<br />
r is a decimal thirteen or hexadecimal 00, so<br />
acter is a decimal thirteen or hexadecimal OD, so<br />
he codes LOA LDA ##$0D $00 to bring it into the A register<br />
and then JSR $FFO $FFDII to print it as before.<br />
The coding job's done, and F. R. notes ddown<br />
the last instruction: RTS, Return from Subroutine,<br />
the last instruction: RTS, Return from Subroutine,<br />
which will cause the machine language program to<br />
return to the BASIC program which called it. He<br />
sits back. Then he notices that he's scribbled the<br />
sits back. Then he notices that he's scribbled the<br />
whole thing on the back of his subscription renewal<br />
to COMPUTE! (the magazine gets a lot of programs<br />
to COMPUTE! (the magazine gets a lot of programs<br />
that way), and decides to make a copy.<br />
This is the program he transcribes onto a<br />
stenographer's note pad. The instructions are to<br />
the right off the vertical center line; the two notes,<br />
YLOOP and SKIP are just to the left. T he re's<br />
YLOOP and SKIP are just to the left. There's<br />
plenty of space to the left; he'll be using that later.<br />
Here is what his coding looks like:<br />
Here is what his coding looks like:<br />
LOX LDX #$30<br />
LOY LDY #$01<br />
YLOOP INX<br />
YLOOP<br />
INX<br />
CPX ##$3A<br />
BNE SKIP<br />
LDX LOX #$30<br />
SKIP<br />
TXA<br />
JSR $FFD2<br />
INY<br />
CPY $0300<br />
BCC YLOOP<br />
LOA LDA #$00 #$0D<br />
JSR<br />
$FFD2<br />
RTS<br />
You should be able to relate this program to the<br />
BASIC program previouslyp given. One important<br />
point: where the "#"" sign is used -— you may call it<br />
hash, h. nutnbers. numbers, or pounds sign -— we want thee progran1<br />
gram to use the actual value. Where it is not used. used, we<br />
want the program to use the contents of an address.<br />
The "#"" sign signals immediate iate addressing -— not<br />
really an address at all, , butthe the actual value.<br />
F. R. Vescent's Vescelll's program m is not readyy to run yet.<br />
He has written it in Source (or Assembler) language<br />
for his own convenience. nience. The computer can run<br />
onlyy Object (or Machine) language. He must translate<br />
from Source to Object language by knowing the<br />
codes. This s translation job is called assembly. We'll<br />
tackle it next time. ©<br />
(LABEL), Y (LABEL,X) LABEL + INDX-1<br />
6502 Assembler/Editor<br />
APPLE<br />
• ATARI<br />
PET<br />
• SYM<br />
you buy that off-brand AssemblerfText Editor. note that EHS is the only company that provides a<br />
Before you buy that off-brand Assembler/Text Editor, note that EHS is the only company that provides a<br />
line of compatible ASM/TED's ASM!TED's for the PET/APPLE/ATARI/SYM/KIM and other microcomputers.<br />
When you make the transition from one of these 6502-based microcomputers to another, you no longer<br />
When you make the transition from one of these 6502-based microcomputers to another, you no longer<br />
have to relearn peculiar Syntax's, pseudo ops, and commands_ commands. Not only that, EHS ASMfTED's ASM/TED's are the<br />
only resident 6502 Maao Macro Assemblers availiable and they have been available for several years. Thus you<br />
can be sure they work_ Our ASMfTED's may cost a little more but do the others provide these powerful<br />
can be sure they work. Our ASM/TED's may cost a little more but do the others provide these powerful<br />
features: Macros, Conditional Assembly, String Search and Replace, or even up to 31 characters per label?<br />
| Before you spend your money on that other ASM/TED, write for our free detailed spec sheet.<br />
MACRO ASM/TED<br />
MAE ASM!TED<br />
ASM/TED<br />
•<br />
•<br />
•<br />
•<br />
For APPLE/ATARI/PET/SYM/KIM<br />
APPLE/ATARIIPETISYM/KIM<br />
Other than our MAE, no other assembler is as powerful. Macros/Conditional Assembly. Extensive text editing features Long Labels<br />
•<br />
•<br />
•<br />
•<br />
•<br />
For APPLE/ATARI/PET<br />
The most powerful ASM/TED ASM!TED<br />
Macros/Conditional and Interactive Assembly<br />
Extensive text editing features<br />
Long Labels<br />
Control files<br />
• Long Labels • Control files<br />
• Designed for Cassette-based systems. • Designed for Disk-based Systems.<br />
Designed for Cassette-based systems.<br />
$49.95<br />
WSA'<br />
Designed for Disk-based Systems.<br />
$169.95<br />
EASTERN HOUSE SOFTWARE<br />
3239 RN<br />
Linda Drive PHONE O'RDERS ORDERS _<br />
ffi<br />
Winston-Salem, N.C. 27106 USA (919)924·2889 {919)924-2889<br />
(Dealer Inquiries Invited) (919) (gig) 748-8446<br />
.EN .BY .OS .BA<br />
[EB