13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

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.

The Assembly ListingAfter you have typed the assembly-language sample with the Editor, type Gfor Quit, select the Write option, and save the program in a disk file namedASMSUBS. If you only have one or two drives, you'll have to keep yourdeveloping program on one of the system disks. If you save your text andcodefiles on APPLEl:, you can put your listing files on APPLE2:.After you have saved your textfile, and with the system at the Commandlevel, type A to invoke the Assembler. The system loads the Assembler,which displays a prompt asking for the source textfile:Assembling ...Assemble what textfile C to exit) ?If your textfile is on the system disk, respond with APPLEl:ASMSUBS.Next, the Assembler asks you for the name to use for the assembled objectcodefile:To what codefile C for workfile) ?To save the codefile with the same name as the textfile, except for thesuffix, you may simply type a dollar sign($). It is usually convenient to usethe same filename for both versions of your program, and most commandscan use the suffix .TEXT or .CODE to choose the appropriate version. If youhave only one disk drive, you must use a file size specifier when you specifythe codefile filename, for example, $[ * ].Note: if the source textfile had been available in the system disk's workfileSYSTEM.WRK.TEXT or some other workfile that you designated using theFiler's Get command, the prompts shown above would not have appeared.Instead, the Assembler would have assembled the text workfile and wouldhave stored the object codefile as SYSTEM.WRK.CODE.Next the Assembler asks you where to send the assembly listing:Output file for assembler listing C for none):If you have a printer connected to your Apple, type PRINTER: to send theassembly listing to the printer. If you respond to the last prompt by typingCONSOLE:, the assembly listing will be sent to the monitor screen in placeof the Assembler's usual screen display. If you want the listing file to besaved, specify the filename where you want it sent; for example,APPLE2:ASUBS.LST. TEXT[*].After you specify the disposition of the listing, the assembly process willbegin. You will see the usual Assembler display: a dot for each line of thesource program, and messages that tell you how much memory space, inII-168Chapter 6: The Assembler

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

Saved successfully!

Ooh no, something went wrong!