If there were no way to save the program in the Editor buffer, you would have to retype it every time you wanted to use it. The Editor allows you both to read and to write files to any peripheral storage device (Disk Drive, Cassette, etc.) to save you all this trouble. To save a program in the Editor buffer, you must first put the cursor into the window which contains the file you want saved (if you are using only one window, you needn’t worry about this). Then you enter the command <CTRL><SHIFT>W In the message area you will see: Write? Simply type in the file name you want the program saved to, and press <RETURN>. The file name must be compatible with the DOS you are using. If you are not using a DOS, the file will consist only of a character representing the device (C for cassette, P for printer, etc.) followed by a colon. Reading a file into the Editor buffer is just as easy. Move the cursor to the line preceding the line where you want the file you're reading in to start, and enter the command <CTRL><SHIFT>R In the message area you will see: Read? Type in the name of the file you want read in, following the conventions outlined above. If you are using floppy disks, you can read the directory on a given disk by replying with the following to the "Read?" prompt in the message area: Read? ?1:*.*
the ACTION! Monitor’s RUN command in Chapter 2). You can also call the ACTION! Editor (described In Part II) or call the ACTION! Compiler (described in Part V). If you are using disk drives, you can even call the DOS (see the ACTION! monitor DOS command, mentioned in Chapter 2). Chapter 2: ACTION! Monitor Commands 2.1 BOOT - Restarting ACTION! Sometimes you need to restart ACTION! from the ACTION! Monitor. This might, occur after a fatal error or upon return from DOS, You can restart ACTION! by entering 'BOOT’, then pressing <RETURN>. Examples: BOOT <RETURN> B <RETURN> WARNING: text in the ACTION! Editor will be lost. Compiled programs and their program variables will also be lost. 2.2 COMPILE - Compiling Programs In ACTION!, a program must be processed by the ACTION! compiler before it can be run from the monitor. You can call the ACTION! compiler from the monitor, using: FORMAT: COMPILE "<filespec>'” The "<filespec>" is an option which allows you to compile programs which are stored on a peripheral device (disk, cassette, etc.). If no "<filespec>" is specified, then the contents of the Editor buffer is compiled. If you are using two windows, the file in the window which contained the cursor when you left the Editor is compiled. If the Compiler finds a syntax error while compiling the program, the error number and the line on which the error occurred are display in the Monitor's message area. The Compiler then returns control back to the Monitor. Examples r COMPILE <RETURN> (compile the program in the current Editor window.)
& bit-wise 'and % bit-wise 'or’ ! bit'-wise 'exclusive or' XOR same as “!” LSH left shift RSH right shift @ address of The first three compare numbers bit by bit and return a result dependent on the operator, as seen below. Table 1:Bit-Wise AND & compare the two bits, returning a value based on this table. Bit A Bit B Result 0 0 0 0 1 0 1 0 0 1 1 1 Example: 5 & 39 --- 00000101 (equals 5 decinial) 00100111 (equalH 39 decimal) & ------------ 00000101 (result of & is 5) Table 2:Bit-Wise OR % returns a value dependent on this table. Bit A Bit B Result 0 0 0 0 1 1 1 0 1 1 1 1 Example: 5 % 39 -- 00000101 (5) 00100111 (39) %------------- 00100111 (result of % is 39) Table 3:Bit Wise XOR ! returns a value based on this table. Bit A Bit B Result 0 0 0 0 1 1