Home » Archimedes archive » Acorn User » AU 1997-10 A.adf » Extras » Apple][e/PD/PIC/!PICbasic/Docs/Fixed
Apple][e/PD/PIC/!PICbasic/Docs/Fixed
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1997-10 A.adf » Extras |
Filename: | Apple][e/PD/PIC/!PICbasic/Docs/Fixed |
Read OK: | ✔ |
File size: | 09C4 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
The following have been altered since V0.90 =========================================== The keyword DIM to reserve memory for the resulting machine code used to have to have at least one space between the variable name and the number of bytes to reserve and the number of bytes to reserve used to HAVE to be a numerical constant,so before: DIMpicchipbytes% 1024 WAS ACCEPTABLE DIMpicchipbytes%1024 WAS NOT ACCEPTABLE DIMpicchipbytes% space% WAS NOT ACCEPTABLE DIMpicchipbytes%space% WAS NOT ACCEPTABLE Now all four variants are acceptable When DIMing memory,your estimate should be based on the number of 14 bit words you'll require because the 14 bit .v. 8 bit difference is now handled internally. Problems assigning labels now stop assembly,so for example: <code here> .naughty$ <more code> WILL NOW SHOW 'Type Mismatch' The expression substituter has been improved so now those involving binary numbers or hex numbers that contain 'ABCDEF' characters are now evaluated properly.In the case of binary,the WHOLE of the rest of the line is taken as the number,see the rules for binary interpretation elsewhere. The error 'Missing #' has been added to signify that an instruction which uses a literal value to alter the W register has no number after it,and the error 'Missing ," or "No such variable" tells you that an instruction is short of some of its parameters. The object code is now shown too when assembling with OPT bit 0 set,and comments have been separated on new lines.Also,the line labels are shown too if OPT bit 0 is set. The STEP in a FOR...NEXT loop will now be assumed to be 1 if it is missed off, and the control variables either side of the 'TO' statement may now be in terms of other variables,ie.before: FOR loop = here TO there STEP thismuch WAS UNACCEPTABLE FOR loop = here TO there WAS UNACCEPTABLE FOR loop = 7*8 TO &FF STEP thismuch WAS UNACCEPTABLE Now all 3 variants are allowed. The LIST command has been extended to support "LIST ," and LISTing in general has been sped up. Optional parameters after a 'NEXT' command are no longer ignored.So now NEXT <variable> NEXT, are both noticed,and generate appropriate errors if not used properly Keywords STOP and CLS are now understood inside a program and at the command line in direct mode.The keyword END is now understood inside a program only. Attempting to nest FOR...NEXT loops now results in the 'Too many FORs' error.
00000000 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 68 61 |The following ha| 00000010 76 65 20 62 65 65 6e 20 61 6c 74 65 72 65 64 20 |ve been altered | 00000020 73 69 6e 63 65 20 56 30 2e 39 30 0a 3d 3d 3d 3d |since V0.90.====| 00000030 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |================| * 00000050 3d 3d 3d 3d 3d 3d 3d 0a 0a 54 68 65 20 6b 65 79 |=======..The key| 00000060 77 6f 72 64 20 44 49 4d 20 74 6f 20 72 65 73 65 |word DIM to rese| 00000070 72 76 65 20 6d 65 6d 6f 72 79 20 66 6f 72 20 74 |rve memory for t| 00000080 68 65 20 72 65 73 75 6c 74 69 6e 67 20 6d 61 63 |he resulting mac| 00000090 68 69 6e 65 20 63 6f 64 65 20 75 73 65 64 20 74 |hine code used t| 000000a0 6f 20 68 61 76 65 20 0a 74 6f 20 68 61 76 65 20 |o have .to have | 000000b0 61 74 20 6c 65 61 73 74 20 6f 6e 65 20 73 70 61 |at least one spa| 000000c0 63 65 20 62 65 74 77 65 65 6e 20 74 68 65 20 76 |ce between the v| 000000d0 61 72 69 61 62 6c 65 20 6e 61 6d 65 20 61 6e 64 |ariable name and| 000000e0 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 62 | the number of b| 000000f0 79 74 65 73 20 0a 74 6f 20 72 65 73 65 72 76 65 |ytes .to reserve| 00000100 20 61 6e 64 20 74 68 65 20 6e 75 6d 62 65 72 20 | and the number | 00000110 6f 66 20 62 79 74 65 73 20 74 6f 20 72 65 73 65 |of bytes to rese| 00000120 72 76 65 20 75 73 65 64 20 74 6f 20 48 41 56 45 |rve used to HAVE| 00000130 20 74 6f 20 62 65 20 61 20 6e 75 6d 65 72 69 63 | to be a numeric| 00000140 61 6c 20 0a 63 6f 6e 73 74 61 6e 74 2c 73 6f 20 |al .constant,so | 00000150 62 65 66 6f 72 65 3a 20 0a 44 49 4d 70 69 63 63 |before: .DIMpicc| 00000160 68 69 70 62 79 74 65 73 25 20 31 30 32 34 20 20 |hipbytes% 1024 | 00000170 20 20 20 20 20 20 57 41 53 20 41 43 43 45 50 54 | WAS ACCEPT| 00000180 41 42 4c 45 0a 44 49 4d 70 69 63 63 68 69 70 62 |ABLE.DIMpicchipb| 00000190 79 74 65 73 25 31 30 32 34 20 20 20 20 20 20 20 |ytes%1024 | 000001a0 20 20 57 41 53 20 4e 4f 54 20 41 43 43 45 50 54 | WAS NOT ACCEPT| 000001b0 41 42 4c 45 0a 44 49 4d 70 69 63 63 68 69 70 62 |ABLE.DIMpicchipb| 000001c0 79 74 65 73 25 20 73 70 61 63 65 25 20 20 20 20 |ytes% space% | 000001d0 20 20 57 41 53 20 4e 4f 54 20 41 43 43 45 50 54 | WAS NOT ACCEPT| 000001e0 41 42 4c 45 0a 44 49 4d 70 69 63 63 68 69 70 62 |ABLE.DIMpicchipb| 000001f0 79 74 65 73 25 73 70 61 63 65 25 20 20 20 20 20 |ytes%space% | 00000200 20 20 57 41 53 20 4e 4f 54 20 41 43 43 45 50 54 | WAS NOT ACCEPT| 00000210 41 42 4c 45 0a 4e 6f 77 20 61 6c 6c 20 66 6f 75 |ABLE.Now all fou| 00000220 72 20 76 61 72 69 61 6e 74 73 20 61 72 65 20 61 |r variants are a| 00000230 63 63 65 70 74 61 62 6c 65 0a 0a 57 68 65 6e 20 |cceptable..When | 00000240 44 49 4d 69 6e 67 20 6d 65 6d 6f 72 79 2c 79 6f |DIMing memory,yo| 00000250 75 72 20 65 73 74 69 6d 61 74 65 20 73 68 6f 75 |ur estimate shou| 00000260 6c 64 20 62 65 20 62 61 73 65 64 20 6f 6e 20 74 |ld be based on t| 00000270 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 31 34 20 |he number of 14 | 00000280 62 69 74 0a 77 6f 72 64 73 20 79 6f 75 27 6c 6c |bit.words you'll| 00000290 20 72 65 71 75 69 72 65 20 62 65 63 61 75 73 65 | require because| 000002a0 20 74 68 65 20 31 34 20 62 69 74 20 2e 76 2e 20 | the 14 bit .v. | 000002b0 38 20 62 69 74 20 64 69 66 66 65 72 65 6e 63 65 |8 bit difference| 000002c0 20 69 73 20 6e 6f 77 20 68 61 6e 64 6c 65 64 0a | is now handled.| 000002d0 69 6e 74 65 72 6e 61 6c 6c 79 2e 0a 0a 50 72 6f |internally...Pro| 000002e0 62 6c 65 6d 73 20 61 73 73 69 67 6e 69 6e 67 20 |blems assigning | 000002f0 6c 61 62 65 6c 73 20 6e 6f 77 20 73 74 6f 70 20 |labels now stop | 00000300 61 73 73 65 6d 62 6c 79 2c 73 6f 20 66 6f 72 20 |assembly,so for | 00000310 65 78 61 6d 70 6c 65 3a 0a 3c 63 6f 64 65 20 68 |example:.<code h| 00000320 65 72 65 3e 0a 2e 6e 61 75 67 68 74 79 24 0a 3c |ere>..naughty$.<| 00000330 6d 6f 72 65 20 63 6f 64 65 3e 20 20 20 20 20 20 |more code> | 00000340 20 20 20 20 20 20 20 20 20 20 20 20 57 49 4c 4c | WILL| 00000350 20 4e 4f 57 20 53 48 4f 57 20 27 54 79 70 65 20 | NOW SHOW 'Type | 00000360 4d 69 73 6d 61 74 63 68 27 0a 0a 54 68 65 20 65 |Mismatch'..The e| 00000370 78 70 72 65 73 73 69 6f 6e 20 73 75 62 73 74 69 |xpression substi| 00000380 74 75 74 65 72 20 68 61 73 20 62 65 65 6e 20 69 |tuter has been i| 00000390 6d 70 72 6f 76 65 64 20 73 6f 20 6e 6f 77 20 74 |mproved so now t| 000003a0 68 6f 73 65 20 69 6e 76 6f 6c 76 69 6e 67 20 62 |hose involving b| 000003b0 69 6e 61 72 79 20 0a 6e 75 6d 62 65 72 73 20 6f |inary .numbers o| 000003c0 72 20 68 65 78 20 6e 75 6d 62 65 72 73 20 74 68 |r hex numbers th| 000003d0 61 74 20 63 6f 6e 74 61 69 6e 20 27 41 42 43 44 |at contain 'ABCD| 000003e0 45 46 27 20 63 68 61 72 61 63 74 65 72 73 20 61 |EF' characters a| 000003f0 72 65 20 6e 6f 77 20 65 76 61 6c 75 61 74 65 64 |re now evaluated| 00000400 0a 70 72 6f 70 65 72 6c 79 2e 49 6e 20 74 68 65 |.properly.In the| 00000410 20 63 61 73 65 20 6f 66 20 62 69 6e 61 72 79 2c | case of binary,| 00000420 74 68 65 20 57 48 4f 4c 45 20 6f 66 20 74 68 65 |the WHOLE of the| 00000430 20 72 65 73 74 20 6f 66 20 74 68 65 20 6c 69 6e | rest of the lin| 00000440 65 20 69 73 20 74 61 6b 65 6e 0a 61 73 20 74 68 |e is taken.as th| 00000450 65 20 6e 75 6d 62 65 72 2c 73 65 65 20 74 68 65 |e number,see the| 00000460 20 72 75 6c 65 73 20 66 6f 72 20 62 69 6e 61 72 | rules for binar| 00000470 79 20 69 6e 74 65 72 70 72 65 74 61 74 69 6f 6e |y interpretation| 00000480 20 65 6c 73 65 77 68 65 72 65 2e 0a 0a 54 68 65 | elsewhere...The| 00000490 20 65 72 72 6f 72 20 27 4d 69 73 73 69 6e 67 20 | error 'Missing | 000004a0 23 27 20 68 61 73 20 62 65 65 6e 20 61 64 64 65 |#' has been adde| 000004b0 64 20 74 6f 20 73 69 67 6e 69 66 79 20 74 68 61 |d to signify tha| 000004c0 74 20 61 6e 20 69 6e 73 74 72 75 63 74 69 6f 6e |t an instruction| 000004d0 20 77 68 69 63 68 0a 75 73 65 73 20 61 20 6c 69 | which.uses a li| 000004e0 74 65 72 61 6c 20 76 61 6c 75 65 20 74 6f 20 61 |teral value to a| 000004f0 6c 74 65 72 20 74 68 65 20 57 20 72 65 67 69 73 |lter the W regis| 00000500 74 65 72 20 68 61 73 20 6e 6f 20 6e 75 6d 62 65 |ter has no numbe| 00000510 72 20 61 66 74 65 72 20 69 74 2c 61 6e 64 20 74 |r after it,and t| 00000520 68 65 0a 65 72 72 6f 72 20 27 4d 69 73 73 69 6e |he.error 'Missin| 00000530 67 20 2c 22 20 6f 72 20 22 4e 6f 20 73 75 63 68 |g ," or "No such| 00000540 20 76 61 72 69 61 62 6c 65 22 20 74 65 6c 6c 73 | variable" tells| 00000550 20 79 6f 75 20 74 68 61 74 20 61 6e 20 69 6e 73 | you that an ins| 00000560 74 72 75 63 74 69 6f 6e 20 69 73 20 73 68 6f 72 |truction is shor| 00000570 74 0a 6f 66 20 73 6f 6d 65 20 6f 66 20 69 74 73 |t.of some of its| 00000580 20 70 61 72 61 6d 65 74 65 72 73 2e 0a 0a 54 68 | parameters...Th| 00000590 65 20 6f 62 6a 65 63 74 20 63 6f 64 65 20 69 73 |e object code is| 000005a0 20 6e 6f 77 20 73 68 6f 77 6e 20 74 6f 6f 20 77 | now shown too w| 000005b0 68 65 6e 20 61 73 73 65 6d 62 6c 69 6e 67 20 77 |hen assembling w| 000005c0 69 74 68 20 4f 50 54 20 62 69 74 20 30 20 73 65 |ith OPT bit 0 se| 000005d0 74 2c 61 6e 64 20 0a 63 6f 6d 6d 65 6e 74 73 20 |t,and .comments | 000005e0 68 61 76 65 20 62 65 65 6e 20 73 65 70 61 72 61 |have been separa| 000005f0 74 65 64 20 6f 6e 20 6e 65 77 20 6c 69 6e 65 73 |ted on new lines| 00000600 2e 41 6c 73 6f 2c 74 68 65 20 6c 69 6e 65 20 6c |.Also,the line l| 00000610 61 62 65 6c 73 20 61 72 65 20 73 68 6f 77 6e 20 |abels are shown | 00000620 74 6f 6f 0a 69 66 20 4f 50 54 20 62 69 74 20 30 |too.if OPT bit 0| 00000630 20 69 73 20 73 65 74 2e 0a 0a 54 68 65 20 53 54 | is set...The ST| 00000640 45 50 20 69 6e 20 61 20 46 4f 52 2e 2e 2e 4e 45 |EP in a FOR...NE| 00000650 58 54 20 6c 6f 6f 70 20 77 69 6c 6c 20 6e 6f 77 |XT loop will now| 00000660 20 62 65 20 61 73 73 75 6d 65 64 20 74 6f 20 62 | be assumed to b| 00000670 65 20 31 20 69 66 20 69 74 20 69 73 20 6d 69 73 |e 1 if it is mis| 00000680 73 65 64 20 6f 66 66 2c 0a 61 6e 64 20 74 68 65 |sed off,.and the| 00000690 20 63 6f 6e 74 72 6f 6c 20 76 61 72 69 61 62 6c | control variabl| 000006a0 65 73 20 65 69 74 68 65 72 20 73 69 64 65 20 6f |es either side o| 000006b0 66 20 74 68 65 20 27 54 4f 27 20 73 74 61 74 65 |f the 'TO' state| 000006c0 6d 65 6e 74 20 6d 61 79 20 6e 6f 77 20 62 65 20 |ment may now be | 000006d0 69 6e 0a 74 65 72 6d 73 20 6f 66 20 6f 74 68 65 |in.terms of othe| 000006e0 72 20 76 61 72 69 61 62 6c 65 73 2c 69 65 2e 62 |r variables,ie.b| 000006f0 65 66 6f 72 65 3a 0a 46 4f 52 20 6c 6f 6f 70 20 |efore:.FOR loop | 00000700 3d 20 68 65 72 65 20 54 4f 20 74 68 65 72 65 20 |= here TO there | 00000710 53 54 45 50 20 74 68 69 73 6d 75 63 68 20 20 20 |STEP thismuch | 00000720 20 20 20 20 20 57 41 53 20 55 4e 41 43 43 45 50 | WAS UNACCEP| 00000730 54 41 42 4c 45 0a 46 4f 52 20 6c 6f 6f 70 20 3d |TABLE.FOR loop =| 00000740 20 68 65 72 65 20 54 4f 20 74 68 65 72 65 20 20 | here TO there | 00000750 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000760 20 20 20 20 57 41 53 20 55 4e 41 43 43 45 50 54 | WAS UNACCEPT| 00000770 41 42 4c 45 0a 46 4f 52 20 6c 6f 6f 70 20 3d 20 |ABLE.FOR loop = | 00000780 37 2a 38 20 54 4f 20 26 46 46 20 53 54 45 50 20 |7*8 TO &FF STEP | 00000790 74 68 69 73 6d 75 63 68 20 20 20 20 20 20 20 20 |thismuch | 000007a0 20 20 20 57 41 53 20 55 4e 41 43 43 45 50 54 41 | WAS UNACCEPTA| 000007b0 42 4c 45 0a 4e 6f 77 20 61 6c 6c 20 33 20 76 61 |BLE.Now all 3 va| 000007c0 72 69 61 6e 74 73 20 61 72 65 20 61 6c 6c 6f 77 |riants are allow| 000007d0 65 64 2e 0a 0a 54 68 65 20 4c 49 53 54 20 63 6f |ed...The LIST co| 000007e0 6d 6d 61 6e 64 20 68 61 73 20 62 65 65 6e 20 65 |mmand has been e| 000007f0 78 74 65 6e 64 65 64 20 74 6f 20 73 75 70 70 6f |xtended to suppo| 00000800 72 74 20 22 4c 49 53 54 20 2c 22 20 61 6e 64 20 |rt "LIST ," and | 00000810 4c 49 53 54 69 6e 67 20 69 6e 20 67 65 6e 65 72 |LISTing in gener| 00000820 61 6c 0a 68 61 73 20 62 65 65 6e 20 73 70 65 64 |al.has been sped| 00000830 20 75 70 2e 0a 0a 4f 70 74 69 6f 6e 61 6c 20 70 | up...Optional p| 00000840 61 72 61 6d 65 74 65 72 73 20 61 66 74 65 72 20 |arameters after | 00000850 61 20 27 4e 45 58 54 27 20 63 6f 6d 6d 61 6e 64 |a 'NEXT' command| 00000860 20 61 72 65 20 6e 6f 20 6c 6f 6e 67 65 72 20 69 | are no longer i| 00000870 67 6e 6f 72 65 64 2e 53 6f 20 6e 6f 77 0a 4e 45 |gnored.So now.NE| 00000880 58 54 20 3c 76 61 72 69 61 62 6c 65 3e 0a 4e 45 |XT <variable>.NE| 00000890 58 54 2c 0a 61 72 65 20 62 6f 74 68 20 6e 6f 74 |XT,.are both not| 000008a0 69 63 65 64 2c 61 6e 64 20 67 65 6e 65 72 61 74 |iced,and generat| 000008b0 65 20 61 70 70 72 6f 70 72 69 61 74 65 20 65 72 |e appropriate er| 000008c0 72 6f 72 73 20 69 66 20 6e 6f 74 20 75 73 65 64 |rors if not used| 000008d0 20 70 72 6f 70 65 72 6c 79 0a 0a 4b 65 79 77 6f | properly..Keywo| 000008e0 72 64 73 20 53 54 4f 50 20 61 6e 64 20 43 4c 53 |rds STOP and CLS| 000008f0 20 61 72 65 20 6e 6f 77 20 75 6e 64 65 72 73 74 | are now underst| 00000900 6f 6f 64 20 69 6e 73 69 64 65 20 61 20 70 72 6f |ood inside a pro| 00000910 67 72 61 6d 20 61 6e 64 20 61 74 20 74 68 65 20 |gram and at the | 00000920 63 6f 6d 6d 61 6e 64 20 0a 6c 69 6e 65 20 69 6e |command .line in| 00000930 20 64 69 72 65 63 74 20 6d 6f 64 65 2e 54 68 65 | direct mode.The| 00000940 20 6b 65 79 77 6f 72 64 20 45 4e 44 20 69 73 20 | keyword END is | 00000950 6e 6f 77 20 75 6e 64 65 72 73 74 6f 6f 64 20 69 |now understood i| 00000960 6e 73 69 64 65 20 61 20 70 72 6f 67 72 61 6d 20 |nside a program | 00000970 6f 6e 6c 79 2e 0a 0a 41 74 74 65 6d 70 74 69 6e |only...Attemptin| 00000980 67 20 74 6f 20 6e 65 73 74 20 46 4f 52 2e 2e 2e |g to nest FOR...| 00000990 4e 45 58 54 20 6c 6f 6f 70 73 20 6e 6f 77 20 72 |NEXT loops now r| 000009a0 65 73 75 6c 74 73 20 69 6e 20 74 68 65 20 27 54 |esults in the 'T| 000009b0 6f 6f 20 6d 61 6e 79 20 46 4f 52 73 27 20 65 72 |oo many FORs' er| 000009c0 72 6f 72 2e |ror.| 000009c4