home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / compiler / fasbin21 / fas_src / as1805 / as1805.doc < prev    next >
Text File  |  1990-12-11  |  5KB  |  362 lines

  1. .HM A 1 1 1 1 1 1
  2. .H 1 "Appendix for as1805 Frankenstein Assembler"
  3. .H 2 "Pseudo Operations"
  4. .H 3 "Standard Pseudo Operation Mnemonics"
  5. .VL 40 5 1
  6. .LI "End"
  7. END
  8. .LI "File Inclusion"
  9. INCL
  10. INCLUDE
  11. .LI "If"
  12. IF
  13. .LI "Else"
  14. ELSE
  15. .LI "End If"
  16. ENDI
  17. .LI "Equate"
  18. EQU
  19. .LI "Set"
  20. SET
  21. .LI "Org"
  22. ORG
  23. .LI "Reserve Memory"
  24. RESERVE
  25. RMB
  26. .LI "Define Byte Data"
  27. BYTE
  28. DB
  29. FCB
  30. .LI "Define Word Data"
  31. DW
  32. FDB
  33. WORD
  34. .LI "Define String Data"
  35. FCC
  36. STRING
  37. .LI "Define Character Set Translation"
  38. CHARSET
  39. .LI "Define Character Value"
  40. CHARDEF
  41. CHD
  42. .LI "Use Character Translation"
  43. CHARUSE
  44. .LE
  45. .H 2 "Instructions"
  46. .H 3 "Instruction List"
  47. .TS H
  48. ;
  49. l l l.
  50. Opcode    Syntax    Selection Criteria
  51. .sp
  52. .TH
  53. .sp
  54. ADC    
  55. .sp
  56. ADCI     '#' expr
  57. .sp
  58. ADD    
  59. .sp
  60. ADI     '#' expr
  61. .sp
  62. AND    
  63. .sp
  64. ANI     '#' expr
  65. .sp
  66. B1     expr
  67. .sp
  68. B2     expr
  69. .sp
  70. B3     expr
  71. .sp
  72. B4     expr
  73. .sp
  74. BCI     expr    TS1805
  75. .sp
  76. BDF     expr
  77. .sp
  78. BGE     expr
  79. .sp
  80. BL     expr
  81. .sp
  82. BM     expr
  83. .sp
  84. BN1     expr
  85. .sp
  86. BN2     expr
  87. .sp
  88. BN3     expr
  89. .sp
  90. BN4     expr
  91. .sp
  92. BNF     expr
  93. .sp
  94. BNQ     expr
  95. .sp
  96. BNZ     expr
  97. .sp
  98. BPZ     expr
  99. .sp
  100. BQ     expr
  101. .sp
  102. BR     expr
  103. .sp
  104. BXI     expr    TS1805
  105. .sp
  106. BZ     expr
  107. .sp
  108. CID        TS1805
  109. .sp
  110. CIE        TS1805
  111. .sp
  112. DACI     '#' expr    TS1805
  113. .sp
  114. DADC        TS1805
  115. .sp
  116. DADD        TS1805
  117. .sp
  118. DADI     '#' expr    TS1805
  119. .sp
  120. DBNZ     expr ',' expr    TS1805
  121. .sp
  122. DEC     expr
  123. .sp
  124. DIS    
  125. .sp
  126. DSAV        TS1805
  127. .sp
  128. DSBI     '#' expr    TS1805
  129. .sp
  130. DSM        TS1805
  131. .sp
  132. DSMB        TS1805
  133. .sp
  134. DSMI     '#' expr    TS1805
  135. .sp
  136. DTC        TS1805
  137. .sp
  138. ETQ        TS1805
  139. .sp
  140. GEC        TS1805
  141. .sp
  142. GHI     expr
  143. .sp
  144. GLO     expr
  145. .sp
  146. IDL    
  147. .sp
  148. INC     expr
  149. .sp
  150. INP     expr
  151. .sp
  152. IRX    
  153. .sp
  154. LBDF     expr
  155. .sp
  156. LBNF     expr
  157. .sp
  158. LBNQ     expr
  159. .sp
  160. LBNZ     expr
  161. .sp
  162. LBQ     expr
  163. .sp
  164. LBR     expr
  165. .sp
  166. LBZ     expr
  167. .sp
  168. LDA     expr
  169. .sp
  170. LDC        TS1805
  171. .sp
  172. LDI     '#' expr
  173. .sp
  174. LDN     expr
  175. .sp
  176. LDX    
  177. .sp
  178. LDXA    
  179. .sp
  180. LSDF    
  181. .sp
  182. LSIE    
  183. .sp
  184. LSKP    
  185. .sp
  186. LSNF    
  187. .sp
  188. LSNQ    
  189. .sp
  190. LSNZ    
  191. .sp
  192. LSQ    
  193. .sp
  194. LSZ    
  195. .sp
  196. MARK    
  197. .sp
  198. NBR    expr
  199. .sp
  200. NLBR    expr
  201. .sp
  202. NOP    
  203. .sp
  204. OR    
  205. .sp
  206. ORI     '#' expr
  207. .sp
  208. OUT     expr
  209. .sp
  210. PHI     expr
  211. .sp
  212. PLO     expr
  213. .sp
  214. REQ    
  215. .sp
  216. RET    
  217. .sp
  218. RLDI     expr ',' '#' expr    TS1805
  219. .sp
  220. RLXA     expr    TS1805
  221. .sp
  222. RNX     expr    TS1805
  223. .sp
  224. RSHL    
  225. .sp
  226. RSHR    
  227. .sp
  228. RSXD     expr    TS1805
  229. .sp
  230. SAV    
  231. .sp
  232. SCAL     expr ',' expr    TS1805
  233. .sp
  234. SCM1        TS1805
  235. .sp
  236. SCM2        TS1805
  237. .sp
  238. SD    
  239. .sp
  240. SDB    
  241. .sp
  242. SDBI     '#' expr
  243. .sp
  244. SDI     '#' expr
  245. .sp
  246. SEP     expr
  247. .sp
  248. SEQ    
  249. .sp
  250. SEX     expr
  251. .sp
  252. SHL    
  253. .sp
  254. SHLC    
  255. .sp
  256. SHR    
  257. .sp
  258. SHRC    
  259. .sp
  260. SKP    
  261. .sp
  262. SM    
  263. .sp
  264. SMB    
  265. .sp
  266. SMBI     '#' expr
  267. .sp
  268. SMI     '#' expr
  269. .sp
  270. SPM1        TS1805
  271. .sp
  272. SPM2        TS1805
  273. .sp
  274. SRET     expr    TS1805
  275. .sp
  276. STM        TS1805
  277. .sp
  278. STPC        TS1805
  279. .sp
  280. STR     expr
  281. .sp
  282. STXD    
  283. .sp
  284. XID        TS1805
  285. .sp
  286. XIE        TS1805
  287. .sp
  288. XOR    
  289. .sp
  290. XRI     '#' expr
  291. .TE
  292. .H 3 "Selection Criteria Keywords"
  293. .VL 25 5 
  294. .LI TS1805
  295. Instruction is only valid for the 1804A/1805A/1806A instruction sets.
  296. .LE
  297. .H 3 "Apostrophes"
  298. The apostrophes in the syntax field are a notation used for the
  299. parser generator and are not put in the assembler source statement.
  300. .H 2 "Notes"
  301. .H 3 "Instruction Set Selection"
  302. The default is the 1805 instruction set. 
  303. To restrict the instruction set, use the -p 1802 optional arguement on
  304. the command line, or rename or link the program file with a name containing
  305. the string 1802 (or just "02").
  306. .H 3 "Register and Port expressions"
  307. The register and port numbers are specified as expressions.
  308. For registers, the value must be between 0 and 15 (1 and 15 for the LDN 
  309. instruction).
  310. For input/output ports, the value must be between 1 and 7.
  311. The value must be computable when processed in the first pass.
  312. The SET and EQU statements can be used to setup symbols for registers and
  313. ports.
  314. It is recomended that a standard include file be setup to assign 
  315. a set of symbols (like R0 to R15) for registers.
  316. .H 3 "Branch Target Expression Validity"
  317. The "expression fails validity test" error message can occur if the
  318. destination of a short branch is not on the same page as the the last
  319. byte of the instruction.
  320. The "expression exceeds available field width" can also occur for this
  321. case.
  322. Usually the validity message occurs when the destination is at a lower
  323. page, and the width message occurs when the destination is at a higher page. 
  324. .H 3 "Immediate Data"
  325. The immediate data expressions for the RLDI (as well as the arithmetic and
  326. logic operations) are required to be on same line as the opcode.
  327. .H 3 "Reserved Symbols"
  328. .H 4 "Standard Reserved Symbols"
  329. AND
  330. DEFINED
  331. EQ
  332. GE
  333. GT
  334. HIGH
  335. LE
  336. LOW
  337. LT
  338. MOD
  339. NE
  340. NOT
  341. OR
  342. SHL
  343. SHR
  344. XOR
  345. and
  346. defined
  347. eq
  348. ge
  349. gt
  350. high
  351. le
  352. low
  353. lt
  354. mod
  355. ne
  356. not
  357. or
  358. shl
  359. shr
  360. xor
  361. .TC 1 1 7
  362.