Home » Archimedes archive » Acorn User » AU 1997-10 A.adf » Regulars » RTR/!Asm84/!Help
RTR/!Asm84/!Help
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 » Regulars |
Filename: | RTR/!Asm84/!Help |
Read OK: | ✔ |
File size: | 1034 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
PIC 16C84 Cross Assembler V1.2 Copyright Mike Cook 1997 - Musbury Consultants - all rights reserved 01706 216701 5 Helmshore Rd, Haslingden, Rossendale, Lancs. BB4 4BG Thanks to Matthew Rowe for the cblock code. The PIC16C84 is a programmable micro controller. This application takes a text file contaning PIC16C84 assembler and produces an object code file (hex format) and a text listing file. The hex file is only generated when no errors are detected. Drag the file to be assembled into the winow or onto the icon bar, or:- type its full path name in the 'Input File' space (very likely!) and press return. The file names for the list file and hex file will be generated. You can alter these by typing but don't press return or the default names will be regenerated. When the default names generated are longer than permitted they will be truncated from the right. When a typed in name is longer it is truncted from the left. The Hex format file may be used to feed the !Blower application from the same author. Assembler syntax:- Don't leave blank lines use a ; comment at the start of the line. Lables must start in the first coloum and may end with a colon : Otherwise the first column must be a SPACE. *** This is important espcially for 'equ' operations. *** Space NameOfConstant EQU VlaueOfConstant There must be at least TWO spaces between a label and a mnemonic. Mnemonics can be in either upper or lower case. All operations that require a destination need a 0/1 or an f/w, there is NO default. Note f and w are predefined. Resgister files and constants can be specified in decimal or in hex. When using hex, prefix a 0 and postfix a letter h as in:- 0dh. Note a hex value must begin with a number 0 - 9 If it begins A - F the assembler will think it is a label. Alternitavly values may be inside single quotes:- 'A' - Will return the ASCII value b'0101' - Will return the Binary value o'17' - Will return the Octal value d'41' - Will return the Decimal value h'5A' - Will return the Hex value Finally you can use a C type syntax 0x45 - For a hex value .45 - For a decimal value Constant functions:- Some logical/arithmetic operations may be carried out on labels and constants. There should be no space between the operands and the operation, for example:- Label^8h is OK but:- Label ^ 8h is not. Operations supported are:- + -> OR . -> AND ^ -> Exclusive OR ! -> Plus ( you see the + is definitely an OR) - -> Minus A comment starts with a ; and continues until the end of the line. A file must end with an "end" instruction. Pseudo OP codes:- equb - Puts a constant data byte in the memory, usefull for the config byte at &2007 equs - Stores an ASCII string into the memory, the string is delinated by single quote ' rets - Like equs but uses the RETLW and the string charactors, very handy for look ups org - Sets the address of the assembler, defaults to 0 Addresses 0 to 3FFh - Program instructions Addresses 2000h to 2003h - ID bytes Address 2007h - Configuration fuse Addresses 2100h to 213Fh - Data Memory Anything outside this results in an error being flagged. LIST P=16C84 - Does nothing, for compatibility only. cblock - define a block of constants, usefull for naming storage locations endc - ends the defining of a block of constants SYNTAX cblock <expr> endc DESCRIPTION Define a list of named constants. Each is assigned a value one higher than the last one. The purpose of this directive is to assign address offsets to many labels. The list of names end when an ENDC is encountered. <expr> indicates the starting value for the first name in the block. EXAMPLE cblock 0x20 ; name_1 will be assigned 20 name_1, name_2 ; name_2, 21 and so on name_3, name_4 ; name_4 is assigned 23 endb Note:- due to the processor architecture 'equb' and 'equs' should not be needed in the program memory space. Configuration fuse:- to set this up use the following ORG 2007h equb H'FC'&H'FB' ; LP oscilator and Watch dog off equb H'3F' ; Most significant nibble of fuse
00000000 50 49 43 20 31 36 43 38 34 20 43 72 6f 73 73 20 |PIC 16C84 Cross | 00000010 41 73 73 65 6d 62 6c 65 72 20 56 31 2e 32 0a 43 |Assembler V1.2.C| 00000020 6f 70 79 72 69 67 68 74 20 4d 69 6b 65 20 43 6f |opyright Mike Co| 00000030 6f 6b 20 31 39 39 37 20 2d 20 4d 75 73 62 75 72 |ok 1997 - Musbur| 00000040 79 20 43 6f 6e 73 75 6c 74 61 6e 74 73 20 2d 20 |y Consultants - | 00000050 61 6c 6c 20 72 69 67 68 74 73 20 72 65 73 65 72 |all rights reser| 00000060 76 65 64 0a 30 31 37 30 36 20 32 31 36 37 30 31 |ved.01706 216701| 00000070 0a 35 20 48 65 6c 6d 73 68 6f 72 65 20 52 64 2c |.5 Helmshore Rd,| 00000080 0a 48 61 73 6c 69 6e 67 64 65 6e 2c 0a 52 6f 73 |.Haslingden,.Ros| 00000090 73 65 6e 64 61 6c 65 2c 0a 4c 61 6e 63 73 2e 0a |sendale,.Lancs..| 000000a0 42 42 34 20 34 42 47 0a 0a 54 68 61 6e 6b 73 20 |BB4 4BG..Thanks | 000000b0 74 6f 20 4d 61 74 74 68 65 77 20 52 6f 77 65 20 |to Matthew Rowe | 000000c0 66 6f 72 20 74 68 65 20 63 62 6c 6f 63 6b 20 63 |for the cblock c| 000000d0 6f 64 65 2e 0a 0a 54 68 65 20 50 49 43 31 36 43 |ode...The PIC16C| 000000e0 38 34 20 69 73 20 61 20 70 72 6f 67 72 61 6d 6d |84 is a programm| 000000f0 61 62 6c 65 20 6d 69 63 72 6f 20 63 6f 6e 74 72 |able micro contr| 00000100 6f 6c 6c 65 72 2e 0a 54 68 69 73 20 61 70 70 6c |oller..This appl| 00000110 69 63 61 74 69 6f 6e 20 74 61 6b 65 73 20 61 20 |ication takes a | 00000120 74 65 78 74 20 66 69 6c 65 20 63 6f 6e 74 61 6e |text file contan| 00000130 69 6e 67 20 50 49 43 31 36 43 38 34 20 61 73 73 |ing PIC16C84 ass| 00000140 65 6d 62 6c 65 72 20 61 6e 64 20 70 72 6f 64 75 |embler and produ| 00000150 63 65 73 0a 61 6e 20 6f 62 6a 65 63 74 20 63 6f |ces.an object co| 00000160 64 65 20 66 69 6c 65 20 28 68 65 78 20 66 6f 72 |de file (hex for| 00000170 6d 61 74 29 20 61 6e 64 20 61 20 74 65 78 74 20 |mat) and a text | 00000180 6c 69 73 74 69 6e 67 20 66 69 6c 65 2e 20 54 68 |listing file. Th| 00000190 65 20 68 65 78 20 66 69 6c 65 20 69 73 0a 6f 6e |e hex file is.on| 000001a0 6c 79 20 67 65 6e 65 72 61 74 65 64 20 77 68 65 |ly generated whe| 000001b0 6e 20 6e 6f 20 65 72 72 6f 72 73 20 61 72 65 20 |n no errors are | 000001c0 64 65 74 65 63 74 65 64 2e 0a 0a 44 72 61 67 20 |detected...Drag | 000001d0 74 68 65 20 66 69 6c 65 20 74 6f 20 62 65 20 61 |the file to be a| 000001e0 73 73 65 6d 62 6c 65 64 20 69 6e 74 6f 20 74 68 |ssembled into th| 000001f0 65 20 77 69 6e 6f 77 20 6f 72 20 6f 6e 74 6f 20 |e winow or onto | 00000200 74 68 65 20 69 63 6f 6e 20 62 61 72 2c 20 6f 72 |the icon bar, or| 00000210 3a 2d 0a 74 79 70 65 20 69 74 73 20 66 75 6c 6c |:-.type its full| 00000220 20 70 61 74 68 20 6e 61 6d 65 20 69 6e 20 74 68 | path name in th| 00000230 65 20 27 49 6e 70 75 74 20 46 69 6c 65 27 20 73 |e 'Input File' s| 00000240 70 61 63 65 20 28 76 65 72 79 20 6c 69 6b 65 6c |pace (very likel| 00000250 79 21 29 20 61 6e 64 20 70 72 65 73 73 20 72 65 |y!) and press re| 00000260 74 75 72 6e 2e 0a 54 68 65 20 66 69 6c 65 20 6e |turn..The file n| 00000270 61 6d 65 73 20 66 6f 72 20 74 68 65 20 6c 69 73 |ames for the lis| 00000280 74 20 66 69 6c 65 20 61 6e 64 20 68 65 78 20 66 |t file and hex f| 00000290 69 6c 65 20 77 69 6c 6c 20 62 65 20 67 65 6e 65 |ile will be gene| 000002a0 72 61 74 65 64 2e 20 59 6f 75 20 63 61 6e 20 61 |rated. You can a| 000002b0 6c 74 65 72 20 74 68 65 73 65 0a 62 79 20 74 79 |lter these.by ty| 000002c0 70 69 6e 67 20 62 75 74 20 64 6f 6e 27 74 20 70 |ping but don't p| 000002d0 72 65 73 73 20 72 65 74 75 72 6e 20 6f 72 20 74 |ress return or t| 000002e0 68 65 20 64 65 66 61 75 6c 74 20 6e 61 6d 65 73 |he default names| 000002f0 20 77 69 6c 6c 20 62 65 20 72 65 67 65 6e 65 72 | will be regener| 00000300 61 74 65 64 2e 0a 57 68 65 6e 20 74 68 65 20 64 |ated..When the d| 00000310 65 66 61 75 6c 74 20 6e 61 6d 65 73 20 67 65 6e |efault names gen| 00000320 65 72 61 74 65 64 20 61 72 65 20 6c 6f 6e 67 65 |erated are longe| 00000330 72 20 74 68 61 6e 20 70 65 72 6d 69 74 74 65 64 |r than permitted| 00000340 20 74 68 65 79 20 77 69 6c 6c 20 62 65 20 74 72 | they will be tr| 00000350 75 6e 63 61 74 65 64 0a 66 72 6f 6d 20 74 68 65 |uncated.from the| 00000360 20 72 69 67 68 74 2e 20 57 68 65 6e 20 61 20 74 | right. When a t| 00000370 79 70 65 64 20 69 6e 20 6e 61 6d 65 20 69 73 20 |yped in name is | 00000380 6c 6f 6e 67 65 72 20 69 74 20 69 73 20 74 72 75 |longer it is tru| 00000390 6e 63 74 65 64 20 66 72 6f 6d 20 74 68 65 20 6c |ncted from the l| 000003a0 65 66 74 2e 0a 0a 54 68 65 20 48 65 78 20 66 6f |eft...The Hex fo| 000003b0 72 6d 61 74 20 66 69 6c 65 20 6d 61 79 20 62 65 |rmat file may be| 000003c0 20 75 73 65 64 20 74 6f 20 66 65 65 64 20 74 68 | used to feed th| 000003d0 65 20 21 42 6c 6f 77 65 72 20 61 70 70 6c 69 63 |e !Blower applic| 000003e0 61 74 69 6f 6e 0a 66 72 6f 6d 20 74 68 65 20 73 |ation.from the s| 000003f0 61 6d 65 20 61 75 74 68 6f 72 2e 0a 0a 41 73 73 |ame author...Ass| 00000400 65 6d 62 6c 65 72 20 73 79 6e 74 61 78 3a 2d 0a |embler syntax:-.| 00000410 0a 44 6f 6e 27 74 20 6c 65 61 76 65 20 62 6c 61 |.Don't leave bla| 00000420 6e 6b 20 6c 69 6e 65 73 20 75 73 65 20 61 20 3b |nk lines use a ;| 00000430 20 63 6f 6d 6d 65 6e 74 20 61 74 20 74 68 65 20 | comment at the | 00000440 73 74 61 72 74 20 6f 66 20 74 68 65 20 6c 69 6e |start of the lin| 00000450 65 2e 0a 4c 61 62 6c 65 73 20 6d 75 73 74 20 73 |e..Lables must s| 00000460 74 61 72 74 20 69 6e 20 74 68 65 20 66 69 72 73 |tart in the firs| 00000470 74 20 63 6f 6c 6f 75 6d 20 61 6e 64 20 6d 61 79 |t coloum and may| 00000480 20 65 6e 64 20 77 69 74 68 20 61 20 63 6f 6c 6f | end with a colo| 00000490 6e 20 3a 0a 4f 74 68 65 72 77 69 73 65 20 74 68 |n :.Otherwise th| 000004a0 65 20 66 69 72 73 74 20 63 6f 6c 75 6d 6e 20 6d |e first column m| 000004b0 75 73 74 20 62 65 20 61 20 53 50 41 43 45 2e 20 |ust be a SPACE. | 000004c0 0a 2a 2a 2a 20 20 54 68 69 73 20 69 73 20 69 6d |.*** This is im| 000004d0 70 6f 72 74 61 6e 74 20 65 73 70 63 69 61 6c 6c |portant espciall| 000004e0 79 20 66 6f 72 20 27 65 71 75 27 20 6f 70 65 72 |y for 'equ' oper| 000004f0 61 74 69 6f 6e 73 2e 20 20 2a 2a 2a 0a 20 20 20 |ations. ***. | 00000500 20 20 53 70 61 63 65 20 4e 61 6d 65 4f 66 43 6f | Space NameOfCo| 00000510 6e 73 74 61 6e 74 20 20 45 51 55 20 20 20 56 6c |nstant EQU Vl| 00000520 61 75 65 4f 66 43 6f 6e 73 74 61 6e 74 0a 0a 54 |aueOfConstant..T| 00000530 68 65 72 65 20 6d 75 73 74 20 62 65 20 61 74 20 |here must be at | 00000540 6c 65 61 73 74 20 54 57 4f 20 73 70 61 63 65 73 |least TWO spaces| 00000550 20 62 65 74 77 65 65 6e 20 61 20 6c 61 62 65 6c | between a label| 00000560 20 61 6e 64 20 61 20 6d 6e 65 6d 6f 6e 69 63 2e | and a mnemonic.| 00000570 0a 4d 6e 65 6d 6f 6e 69 63 73 20 63 61 6e 20 62 |.Mnemonics can b| 00000580 65 20 69 6e 20 65 69 74 68 65 72 20 75 70 70 65 |e in either uppe| 00000590 72 20 6f 72 20 6c 6f 77 65 72 20 63 61 73 65 2e |r or lower case.| 000005a0 0a 0a 41 6c 6c 20 6f 70 65 72 61 74 69 6f 6e 73 |..All operations| 000005b0 20 74 68 61 74 20 72 65 71 75 69 72 65 20 61 20 | that require a | 000005c0 64 65 73 74 69 6e 61 74 69 6f 6e 20 6e 65 65 64 |destination need| 000005d0 20 61 20 30 2f 31 20 6f 72 20 61 6e 20 66 2f 77 | a 0/1 or an f/w| 000005e0 2c 20 74 68 65 72 65 0a 69 73 20 4e 4f 20 64 65 |, there.is NO de| 000005f0 66 61 75 6c 74 2e 20 4e 6f 74 65 20 66 20 61 6e |fault. Note f an| 00000600 64 20 77 20 61 72 65 20 70 72 65 64 65 66 69 6e |d w are predefin| 00000610 65 64 2e 0a 0a 52 65 73 67 69 73 74 65 72 20 66 |ed...Resgister f| 00000620 69 6c 65 73 20 61 6e 64 20 63 6f 6e 73 74 61 6e |iles and constan| 00000630 74 73 0a 63 61 6e 20 62 65 20 73 70 65 63 69 66 |ts.can be specif| 00000640 69 65 64 20 69 6e 20 64 65 63 69 6d 61 6c 20 6f |ied in decimal o| 00000650 72 20 69 6e 20 68 65 78 2e 0a 57 68 65 6e 20 75 |r in hex..When u| 00000660 73 69 6e 67 20 68 65 78 2c 20 70 72 65 66 69 78 |sing hex, prefix| 00000670 20 61 20 30 20 61 6e 64 20 70 6f 73 74 66 69 78 | a 0 and postfix| 00000680 20 61 20 6c 65 74 74 65 72 20 68 20 61 73 20 69 | a letter h as i| 00000690 6e 3a 2d 20 30 64 68 2e 0a 4e 6f 74 65 20 61 20 |n:- 0dh..Note a | 000006a0 68 65 78 20 76 61 6c 75 65 20 6d 75 73 74 20 62 |hex value must b| 000006b0 65 67 69 6e 20 77 69 74 68 20 61 20 6e 75 6d 62 |egin with a numb| 000006c0 65 72 20 30 20 2d 20 39 0a 49 66 20 69 74 20 62 |er 0 - 9.If it b| 000006d0 65 67 69 6e 73 20 41 20 2d 20 46 20 74 68 65 20 |egins A - F the | 000006e0 61 73 73 65 6d 62 6c 65 72 20 77 69 6c 6c 20 74 |assembler will t| 000006f0 68 69 6e 6b 20 69 74 20 69 73 20 61 20 6c 61 62 |hink it is a lab| 00000700 65 6c 2e 0a 0a 41 6c 74 65 72 6e 69 74 61 76 6c |el...Alternitavl| 00000710 79 20 76 61 6c 75 65 73 20 6d 61 79 20 62 65 20 |y values may be | 00000720 69 6e 73 69 64 65 20 73 69 6e 67 6c 65 20 71 75 |inside single qu| 00000730 6f 74 65 73 3a 2d 0a 20 27 41 27 20 20 20 20 2d |otes:-. 'A' -| 00000740 20 57 69 6c 6c 20 72 65 74 75 72 6e 20 74 68 65 | Will return the| 00000750 20 41 53 43 49 49 20 76 61 6c 75 65 0a 62 27 30 | ASCII value.b'0| 00000760 31 30 31 27 20 2d 20 57 69 6c 6c 20 72 65 74 75 |101' - Will retu| 00000770 72 6e 20 74 68 65 20 42 69 6e 61 72 79 20 76 61 |rn the Binary va| 00000780 6c 75 65 0a 6f 27 31 37 27 20 20 20 2d 20 57 69 |lue.o'17' - Wi| 00000790 6c 6c 20 72 65 74 75 72 6e 20 74 68 65 20 4f 63 |ll return the Oc| 000007a0 74 61 6c 20 76 61 6c 75 65 0a 64 27 34 31 27 20 |tal value.d'41' | 000007b0 20 20 2d 20 57 69 6c 6c 20 72 65 74 75 72 6e 20 | - Will return | 000007c0 74 68 65 20 44 65 63 69 6d 61 6c 20 76 61 6c 75 |the Decimal valu| 000007d0 65 0a 68 27 35 41 27 20 20 20 2d 20 57 69 6c 6c |e.h'5A' - Will| 000007e0 20 72 65 74 75 72 6e 20 74 68 65 20 48 65 78 20 | return the Hex | 000007f0 76 61 6c 75 65 0a 46 69 6e 61 6c 6c 79 20 79 6f |value.Finally yo| 00000800 75 20 63 61 6e 20 75 73 65 20 61 20 43 20 74 79 |u can use a C ty| 00000810 70 65 20 73 79 6e 74 61 78 0a 30 78 34 35 20 20 |pe syntax.0x45 | 00000820 20 20 2d 20 46 6f 72 20 61 20 68 65 78 20 76 61 | - For a hex va| 00000830 6c 75 65 0a 2e 34 35 20 20 20 20 20 2d 20 46 6f |lue..45 - Fo| 00000840 72 20 61 20 64 65 63 69 6d 61 6c 20 76 61 6c 75 |r a decimal valu| 00000850 65 0a 0a 43 6f 6e 73 74 61 6e 74 20 66 75 6e 63 |e..Constant func| 00000860 74 69 6f 6e 73 3a 2d 0a 53 6f 6d 65 20 6c 6f 67 |tions:-.Some log| 00000870 69 63 61 6c 2f 61 72 69 74 68 6d 65 74 69 63 20 |ical/arithmetic | 00000880 6f 70 65 72 61 74 69 6f 6e 73 20 6d 61 79 20 62 |operations may b| 00000890 65 20 63 61 72 72 69 65 64 20 6f 75 74 20 6f 6e |e carried out on| 000008a0 20 6c 61 62 65 6c 73 20 61 6e 64 20 63 6f 6e 73 | labels and cons| 000008b0 74 61 6e 74 73 2e 0a 54 68 65 72 65 20 73 68 6f |tants..There sho| 000008c0 75 6c 64 20 62 65 20 6e 6f 20 73 70 61 63 65 20 |uld be no space | 000008d0 62 65 74 77 65 65 6e 20 74 68 65 20 6f 70 65 72 |between the oper| 000008e0 61 6e 64 73 20 61 6e 64 20 74 68 65 20 6f 70 65 |ands and the ope| 000008f0 72 61 74 69 6f 6e 2c 20 66 6f 72 20 65 78 61 6d |ration, for exam| 00000900 70 6c 65 3a 2d 0a 4c 61 62 65 6c 5e 38 68 20 69 |ple:-.Label^8h i| 00000910 73 20 4f 4b 20 62 75 74 3a 2d 20 4c 61 62 65 6c |s OK but:- Label| 00000920 20 5e 20 38 68 20 69 73 20 6e 6f 74 2e 0a 4f 70 | ^ 8h is not..Op| 00000930 65 72 61 74 69 6f 6e 73 20 73 75 70 70 6f 72 74 |erations support| 00000940 65 64 20 61 72 65 3a 2d 0a 2b 20 2d 3e 20 4f 52 |ed are:-.+ -> OR| 00000950 0a 2e 20 2d 3e 20 41 4e 44 0a 5e 20 2d 3e 20 45 |.. -> AND.^ -> E| 00000960 78 63 6c 75 73 69 76 65 20 4f 52 0a 21 20 2d 3e |xclusive OR.! ->| 00000970 20 50 6c 75 73 20 28 20 79 6f 75 20 73 65 65 20 | Plus ( you see | 00000980 74 68 65 20 2b 20 69 73 20 64 65 66 69 6e 69 74 |the + is definit| 00000990 65 6c 79 20 61 6e 20 4f 52 29 0a 2d 20 2d 3e 20 |ely an OR).- -> | 000009a0 4d 69 6e 75 73 0a 0a 41 20 63 6f 6d 6d 65 6e 74 |Minus..A comment| 000009b0 20 73 74 61 72 74 73 20 77 69 74 68 20 61 20 3b | starts with a ;| 000009c0 20 61 6e 64 20 63 6f 6e 74 69 6e 75 65 73 20 75 | and continues u| 000009d0 6e 74 69 6c 0a 74 68 65 20 65 6e 64 20 6f 66 20 |ntil.the end of | 000009e0 74 68 65 20 6c 69 6e 65 2e 0a 41 20 66 69 6c 65 |the line..A file| 000009f0 20 6d 75 73 74 20 65 6e 64 20 77 69 74 68 20 61 | must end with a| 00000a00 6e 20 22 65 6e 64 22 20 69 6e 73 74 72 75 63 74 |n "end" instruct| 00000a10 69 6f 6e 2e 0a 0a 50 73 65 75 64 6f 20 4f 50 20 |ion...Pseudo OP | 00000a20 63 6f 64 65 73 3a 2d 0a 65 71 75 62 20 2d 20 50 |codes:-.equb - P| 00000a30 75 74 73 20 61 20 63 6f 6e 73 74 61 6e 74 20 64 |uts a constant d| 00000a40 61 74 61 20 62 79 74 65 20 69 6e 20 74 68 65 20 |ata byte in the | 00000a50 6d 65 6d 6f 72 79 2c 20 75 73 65 66 75 6c 6c 20 |memory, usefull | 00000a60 66 6f 72 20 74 68 65 20 63 6f 6e 66 69 67 20 62 |for the config b| 00000a70 79 74 65 20 61 74 20 26 32 30 30 37 0a 65 71 75 |yte at &2007.equ| 00000a80 73 20 2d 20 53 74 6f 72 65 73 20 61 6e 20 41 53 |s - Stores an AS| 00000a90 43 49 49 20 73 74 72 69 6e 67 20 69 6e 74 6f 20 |CII string into | 00000aa0 74 68 65 20 6d 65 6d 6f 72 79 2c 20 74 68 65 20 |the memory, the | 00000ab0 73 74 72 69 6e 67 20 69 73 20 64 65 6c 69 6e 61 |string is delina| 00000ac0 74 65 64 20 62 79 20 73 69 6e 67 6c 65 20 71 75 |ted by single qu| 00000ad0 6f 74 65 20 27 0a 72 65 74 73 20 2d 20 4c 69 6b |ote '.rets - Lik| 00000ae0 65 20 65 71 75 73 20 62 75 74 20 75 73 65 73 20 |e equs but uses | 00000af0 74 68 65 20 52 45 54 4c 57 20 61 6e 64 20 74 68 |the RETLW and th| 00000b00 65 20 73 74 72 69 6e 67 20 63 68 61 72 61 63 74 |e string charact| 00000b10 6f 72 73 2c 20 76 65 72 79 20 68 61 6e 64 79 20 |ors, very handy | 00000b20 66 6f 72 20 6c 6f 6f 6b 20 75 70 73 0a 6f 72 67 |for look ups.org| 00000b30 20 20 2d 20 53 65 74 73 20 74 68 65 20 61 64 64 | - Sets the add| 00000b40 72 65 73 73 20 6f 66 20 74 68 65 20 61 73 73 65 |ress of the asse| 00000b50 6d 62 6c 65 72 2c 20 64 65 66 61 75 6c 74 73 20 |mbler, defaults | 00000b60 74 6f 20 30 0a 20 20 20 20 20 20 20 20 20 20 20 |to 0. | 00000b70 41 64 64 72 65 73 73 65 73 20 30 20 74 6f 20 33 |Addresses 0 to 3| 00000b80 46 46 68 20 20 20 20 20 20 2d 20 50 72 6f 67 72 |FFh - Progr| 00000b90 61 6d 20 69 6e 73 74 72 75 63 74 69 6f 6e 73 0a |am instructions.| 00000ba0 20 20 20 20 20 20 20 20 20 20 20 41 64 64 72 65 | Addre| 00000bb0 73 73 65 73 20 32 30 30 30 68 20 74 6f 20 32 30 |sses 2000h to 20| 00000bc0 30 33 68 20 2d 20 49 44 20 62 79 74 65 73 0a 20 |03h - ID bytes. | 00000bd0 20 20 20 20 20 20 20 20 20 20 41 64 64 72 65 73 | Addres| 00000be0 73 20 20 20 32 30 30 37 68 20 20 20 20 20 20 20 |s 2007h | 00000bf0 20 20 20 2d 20 43 6f 6e 66 69 67 75 72 61 74 69 | - Configurati| 00000c00 6f 6e 20 66 75 73 65 0a 20 20 20 20 20 20 20 20 |on fuse. | 00000c10 20 20 20 41 64 64 72 65 73 73 65 73 20 32 31 30 | Addresses 210| 00000c20 30 68 20 74 6f 20 32 31 33 46 68 20 2d 20 44 61 |0h to 213Fh - Da| 00000c30 74 61 20 4d 65 6d 6f 72 79 0a 20 20 20 20 20 20 |ta Memory. | 00000c40 20 20 20 20 20 20 20 20 20 20 20 20 41 6e 79 74 | Anyt| 00000c50 68 69 6e 67 20 6f 75 74 73 69 64 65 20 74 68 69 |hing outside thi| 00000c60 73 20 72 65 73 75 6c 74 73 20 69 6e 20 61 6e 20 |s results in an | 00000c70 65 72 72 6f 72 20 62 65 69 6e 67 20 66 6c 61 67 |error being flag| 00000c80 67 65 64 2e 0a 4c 49 53 54 20 50 3d 31 36 43 38 |ged..LIST P=16C8| 00000c90 34 20 2d 20 44 6f 65 73 20 6e 6f 74 68 69 6e 67 |4 - Does nothing| 00000ca0 2c 20 66 6f 72 20 63 6f 6d 70 61 74 69 62 69 6c |, for compatibil| 00000cb0 69 74 79 20 6f 6e 6c 79 2e 0a 0a 63 62 6c 6f 63 |ity only...cbloc| 00000cc0 6b 20 20 20 2d 20 20 20 20 20 64 65 66 69 6e 65 |k - define| 00000cd0 20 61 20 62 6c 6f 63 6b 20 6f 66 20 63 6f 6e 73 | a block of cons| 00000ce0 74 61 6e 74 73 2c 20 75 73 65 66 75 6c 6c 20 66 |tants, usefull f| 00000cf0 6f 72 20 6e 61 6d 69 6e 67 20 73 74 6f 72 61 67 |or naming storag| 00000d00 65 20 6c 6f 63 61 74 69 6f 6e 73 0a 65 6e 64 63 |e locations.endc| 00000d10 20 20 20 20 20 2d 20 20 20 20 20 65 6e 64 73 20 | - ends | 00000d20 74 68 65 20 64 65 66 69 6e 69 6e 67 20 6f 66 20 |the defining of | 00000d30 61 20 62 6c 6f 63 6b 20 6f 66 20 63 6f 6e 73 74 |a block of const| 00000d40 61 6e 74 73 0a 0a 53 59 4e 54 41 58 0a 63 62 6c |ants..SYNTAX.cbl| 00000d50 6f 63 6b 20 3c 65 78 70 72 3e 0a 65 6e 64 63 0a |ock <expr>.endc.| 00000d60 0a 44 45 53 43 52 49 50 54 49 4f 4e 0a 0a 44 65 |.DESCRIPTION..De| 00000d70 66 69 6e 65 20 61 20 6c 69 73 74 20 6f 66 20 6e |fine a list of n| 00000d80 61 6d 65 64 20 63 6f 6e 73 74 61 6e 74 73 2e 20 |amed constants. | 00000d90 45 61 63 68 20 69 73 20 61 73 73 69 67 6e 65 64 |Each is assigned| 00000da0 20 61 20 76 61 6c 75 65 20 6f 6e 65 20 68 69 67 | a value one hig| 00000db0 68 65 72 0a 74 68 61 6e 20 74 68 65 20 6c 61 73 |her.than the las| 00000dc0 74 20 6f 6e 65 2e 20 0a 54 68 65 20 70 75 72 70 |t one. .The purp| 00000dd0 6f 73 65 20 6f 66 20 74 68 69 73 20 64 69 72 65 |ose of this dire| 00000de0 63 74 69 76 65 20 69 73 20 74 6f 20 61 73 73 69 |ctive is to assi| 00000df0 67 6e 20 61 64 64 72 65 73 73 20 6f 66 66 73 65 |gn address offse| 00000e00 74 73 20 74 6f 20 6d 61 6e 79 0a 6c 61 62 65 6c |ts to many.label| 00000e10 73 2e 20 54 68 65 20 6c 69 73 74 20 6f 66 20 6e |s. The list of n| 00000e20 61 6d 65 73 20 65 6e 64 20 77 68 65 6e 20 61 6e |ames end when an| 00000e30 20 45 4e 44 43 20 69 73 20 65 6e 63 6f 75 6e 74 | ENDC is encount| 00000e40 65 72 65 64 2e 0a 0a 3c 65 78 70 72 3e 20 69 6e |ered...<expr> in| 00000e50 64 69 63 61 74 65 73 20 74 68 65 20 73 74 61 72 |dicates the star| 00000e60 74 69 6e 67 20 76 61 6c 75 65 20 66 6f 72 20 74 |ting value for t| 00000e70 68 65 20 66 69 72 73 74 20 6e 61 6d 65 20 69 6e |he first name in| 00000e80 20 74 68 65 20 62 6c 6f 63 6b 2e 0a 0a 45 58 41 | the block...EXA| 00000e90 4d 50 4c 45 0a 0a 63 62 6c 6f 63 6b 20 30 78 32 |MPLE..cblock 0x2| 00000ea0 30 20 20 20 20 3b 20 6e 61 6d 65 5f 31 20 77 69 |0 ; name_1 wi| 00000eb0 6c 6c 20 62 65 20 61 73 73 69 67 6e 65 64 20 32 |ll be assigned 2| 00000ec0 30 0a 0a 6e 61 6d 65 5f 31 2c 20 6e 61 6d 65 5f |0..name_1, name_| 00000ed0 32 20 3b 20 6e 61 6d 65 5f 32 2c 20 32 31 20 61 |2 ; name_2, 21 a| 00000ee0 6e 64 20 73 6f 20 6f 6e 0a 6e 61 6d 65 5f 33 2c |nd so on.name_3,| 00000ef0 20 6e 61 6d 65 5f 34 20 3b 20 6e 61 6d 65 5f 34 | name_4 ; name_4| 00000f00 20 69 73 20 61 73 73 69 67 6e 65 64 20 32 33 0a | is assigned 23.| 00000f10 0a 65 6e 64 62 0a 0a 4e 6f 74 65 3a 2d 20 64 75 |.endb..Note:- du| 00000f20 65 20 74 6f 20 74 68 65 20 70 72 6f 63 65 73 73 |e to the process| 00000f30 6f 72 20 61 72 63 68 69 74 65 63 74 75 72 65 20 |or architecture | 00000f40 27 65 71 75 62 27 20 61 6e 64 20 27 65 71 75 73 |'equb' and 'equs| 00000f50 27 20 73 68 6f 75 6c 64 20 6e 6f 74 20 62 65 20 |' should not be | 00000f60 6e 65 65 64 65 64 0a 69 6e 20 74 68 65 20 70 72 |needed.in the pr| 00000f70 6f 67 72 61 6d 20 6d 65 6d 6f 72 79 20 73 70 61 |ogram memory spa| 00000f80 63 65 2e 0a 0a 43 6f 6e 66 69 67 75 72 61 74 69 |ce...Configurati| 00000f90 6f 6e 20 66 75 73 65 3a 2d 20 74 6f 20 73 65 74 |on fuse:- to set| 00000fa0 20 74 68 69 73 20 75 70 20 75 73 65 20 74 68 65 | this up use the| 00000fb0 20 66 6f 6c 6c 6f 77 69 6e 67 0a 20 20 20 4f 52 | following. OR| 00000fc0 47 20 32 30 30 37 68 0a 20 20 20 65 71 75 62 20 |G 2007h. equb | 00000fd0 48 27 46 43 27 26 48 27 46 42 27 20 20 3b 20 4c |H'FC'&H'FB' ; L| 00000fe0 50 20 6f 73 63 69 6c 61 74 6f 72 20 61 6e 64 20 |P oscilator and | 00000ff0 57 61 74 63 68 20 64 6f 67 20 6f 66 66 0a 20 20 |Watch dog off. | 00001000 20 65 71 75 62 20 48 27 33 46 27 20 20 20 20 20 | equb H'3F' | 00001010 20 20 20 3b 20 4d 6f 73 74 20 73 69 67 6e 69 66 | ; Most signif| 00001020 69 63 61 6e 74 20 6e 69 62 62 6c 65 20 6f 66 20 |icant nibble of | 00001030 66 75 73 65 |fuse| 00001034