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

  1. .HM A 1 1 1 1 1 1
  2. .H 1 "Appendix for as2650 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. RES
  25. RESERVE
  26. RMB
  27. .LI "Define Byte Data"
  28. BYTE
  29. DATA
  30. DB
  31. FCB
  32. .LI "Define Word Data"
  33. DW
  34. FDB
  35. WORD
  36. .LI "Define String Data"
  37. FCC
  38. STRING
  39. .LI "Define Character Set Translation"
  40. CHARSET
  41. .LI "Define Character Value"
  42. CHARDEF
  43. CHD
  44. .LI "Use Character Translation"
  45. CHARUSE
  46. .LE
  47. .H 3 "Machine Dependent Pseudo Operations"
  48. .H 4 "Define Address Constant"
  49. .DS I N
  50. [Label] ACON expression [, expression] ...
  51. .DE
  52. The acon statement generates a two byte integer for each expression in the
  53. expression list.
  54. Each expression is limited in value from 0 to 32767, values outside this 
  55. range will result in an "expression exceeds available field width" error.
  56. There can be up to 128 expressions on the line, within the line length limit.
  57. The optional label is set to the address of the first expression.
  58. .H 2 "Instructions"
  59. .H 3 "Instruction List"
  60. .TS H
  61. ;
  62. l l l.
  63. Opcode    Syntax    Selection Criteria
  64. .sp
  65. .TH
  66. .sp
  67. ADDA     ',' REG  expr
  68. ADDA     ',' REG '*' expr ',' REG ',' '+' 
  69. ADDA     ',' REG '*' expr ',' REG ',' '-' 
  70. ADDA     ',' REG '*' expr ',' REG
  71. ADDA     ',' REG '*' expr 
  72. ADDA     ',' REG expr ',' REG ',' '+'
  73. ADDA     ',' REG expr ',' REG ',' '-' 
  74. ADDA     ',' REG expr ',' REG
  75. .sp
  76. ADDI     ',' REG expr
  77. .sp
  78. ADDR     ',' REG '*' expr 
  79. ADDR     ',' REG expr
  80. .sp
  81. ADDZ     REG
  82. .sp
  83. ANDA     ',' REG  expr
  84. ANDA     ',' REG '*' expr ',' REG ',' '+' 
  85. ANDA     ',' REG '*' expr ',' REG ',' '-' 
  86. ANDA     ',' REG '*' expr ',' REG
  87. ANDA     ',' REG '*' expr 
  88. ANDA     ',' REG expr ',' REG ',' '+'
  89. ANDA     ',' REG expr ',' REG ',' '-' 
  90. ANDA     ',' REG expr ',' REG
  91. .sp
  92. ANDI     ',' REG expr
  93. .sp
  94. ANDR     ',' REG '*' expr 
  95. ANDR     ',' REG expr
  96. .sp
  97. ANDZ     REG    REG1
  98. ANDZ     REG    REG2
  99. ANDZ     REG    REG3
  100. .sp
  101. BCFA     ',' CONDITION '*' expr     COND0
  102. BCFA     ',' CONDITION '*' expr     COND1
  103. BCFA     ',' CONDITION '*' expr     COND2
  104. BCFA     ',' CONDITION expr    COND0
  105. BCFA     ',' CONDITION expr    COND1
  106. BCFA     ',' CONDITION expr    COND2
  107. .sp
  108. BCFR     ',' CONDITION '*' expr     COND0
  109. BCFR     ',' CONDITION '*' expr     COND1
  110. BCFR     ',' CONDITION '*' expr     COND2
  111. BCFR     ',' CONDITION expr    COND0
  112. BCFR     ',' CONDITION expr    COND1
  113. BCFR     ',' CONDITION expr    COND2
  114. .sp
  115. BCTA     ',' CONDITION '*' expr 
  116. BCTA     ',' CONDITION expr
  117. .sp
  118. BCTR     ',' CONDITION '*' expr 
  119. BCTR     ',' CONDITION expr
  120. .sp
  121. BDRA     ',' REG '*' expr 
  122. BDRA     ',' REG expr
  123. .sp
  124. BDRR     ',' REG '*' expr 
  125. BDRR     ',' REG expr
  126. .sp
  127. BIRA     ',' REG '*' expr 
  128. BIRA     ',' REG expr
  129. .sp
  130. BIRR     ',' REG '*' expr 
  131. BIRR     ',' REG expr
  132. .sp
  133. BRNA     ',' REG '*' expr 
  134. BRNA     ',' REG expr
  135. .sp
  136. BRNR     ',' REG '*' expr 
  137. BRNR     ',' REG expr
  138. .sp
  139. BSFA     ',' CONDITION '*' expr     COND0
  140. BSFA     ',' CONDITION '*' expr     COND1
  141. BSFA     ',' CONDITION '*' expr     COND2
  142. BSFA     ',' CONDITION expr    COND0
  143. BSFA     ',' CONDITION expr    COND1
  144. BSFA     ',' CONDITION expr    COND2
  145. .sp
  146. BSFR     ',' CONDITION '*' expr     COND0
  147. BSFR     ',' CONDITION '*' expr     COND1
  148. BSFR     ',' CONDITION '*' expr     COND2
  149. BSFR     ',' CONDITION expr    COND0
  150. BSFR     ',' CONDITION expr    COND1
  151. BSFR     ',' CONDITION expr    COND2
  152. .sp
  153. BSNA     ',' REG '*' expr 
  154. BSNA     ',' REG expr
  155. .sp
  156. BSNR     ',' REG '*' expr 
  157. BSNR     ',' REG expr
  158. .sp
  159. BSTA     ',' CONDITION '*' expr 
  160. BSTA     ',' CONDITION expr
  161. .sp
  162. BSTR     ',' CONDITION '*' expr 
  163. BSTR     ',' CONDITION expr
  164. .sp
  165. BSXA     '*' expr ',' REG    REG3
  166. BSXA     expr ',' REG    REG3
  167. .sp
  168. BXA     '*' expr ',' REG    REG3
  169. BXA     expr ',' REG    REG3
  170. .sp
  171. COMA     ',' REG  expr
  172. COMA     ',' REG '*' expr ',' REG ',' '+' 
  173. COMA     ',' REG '*' expr ',' REG ',' '-' 
  174. COMA     ',' REG '*' expr ',' REG
  175. COMA     ',' REG '*' expr 
  176. COMA     ',' REG expr ',' REG ',' '+'
  177. COMA     ',' REG expr ',' REG ',' '-' 
  178. COMA     ',' REG expr ',' REG
  179. .sp
  180. COMI     ',' REG expr
  181. .sp
  182. COMR     ',' REG '*' expr 
  183. COMR     ',' REG expr
  184. .sp
  185. COMZ     REG
  186. .sp
  187. CPSL     expr
  188. .sp
  189. CPSU     expr
  190. .sp
  191. DAR     ',' REG
  192. .sp
  193. EORA     ',' REG  expr
  194. EORA     ',' REG '*' expr ',' REG ',' '+' 
  195. EORA     ',' REG '*' expr ',' REG ',' '-' 
  196. EORA     ',' REG '*' expr ',' REG
  197. EORA     ',' REG '*' expr 
  198. EORA     ',' REG expr ',' REG ',' '+'
  199. EORA     ',' REG expr ',' REG ',' '-' 
  200. EORA     ',' REG expr ',' REG
  201. .sp
  202. EORI     ',' REG expr
  203. .sp
  204. EORR     ',' REG '*' expr 
  205. EORR     ',' REG expr
  206. .sp
  207. EORZ     REG
  208. .sp
  209. HALT    
  210. .sp
  211. IORA     ',' REG  expr
  212. IORA     ',' REG '*' expr ',' REG ',' '+' 
  213. IORA     ',' REG '*' expr ',' REG ',' '-' 
  214. IORA     ',' REG '*' expr ',' REG
  215. IORA     ',' REG '*' expr 
  216. IORA     ',' REG expr ',' REG ',' '+'
  217. IORA     ',' REG expr ',' REG ',' '-' 
  218. IORA     ',' REG expr ',' REG
  219. .sp
  220. IORI     ',' REG expr
  221. .sp
  222. IORR     ',' REG '*' expr 
  223. IORR     ',' REG expr
  224. .sp
  225. IORZ     REG
  226. .sp
  227. LODA     ',' REG  expr
  228. LODA     ',' REG '*' expr ',' REG ',' '+' 
  229. LODA     ',' REG '*' expr ',' REG ',' '-' 
  230. LODA     ',' REG '*' expr ',' REG
  231. LODA     ',' REG '*' expr 
  232. LODA     ',' REG expr ',' REG ',' '+'
  233. LODA     ',' REG expr ',' REG ',' '-' 
  234. LODA     ',' REG expr ',' REG
  235. .sp
  236. LODI     ',' REG expr
  237. .sp
  238. LODR     ',' REG '*' expr 
  239. LODR     ',' REG expr
  240. .sp
  241. LODZ     REG    REG0
  242. LODZ     REG    REG1
  243. LODZ     REG    REG2
  244. LODZ     REG    REG3
  245. .sp
  246. LPSL    
  247. .sp
  248. LPSU    
  249. .sp
  250. NOP    
  251. .sp
  252. PPSL     expr
  253. .sp
  254. PPSU     expr
  255. .sp
  256. REDC     ',' REG
  257. .sp
  258. REDD     ',' REG
  259. .sp
  260. REDE     ',' REG expr
  261. .sp
  262. RETC     ',' CONDITION
  263. .sp
  264. RETE     ',' CONDITION
  265. .sp
  266. RRL     ',' REG
  267. .sp
  268. RRR     ',' REG
  269. .sp
  270. SPSL    
  271. .sp
  272. SPSU    
  273. .sp
  274. STRA     ',' REG  expr
  275. STRA     ',' REG '*' expr ',' REG ',' '+' 
  276. STRA     ',' REG '*' expr ',' REG ',' '-' 
  277. STRA     ',' REG '*' expr ',' REG
  278. STRA     ',' REG '*' expr 
  279. STRA     ',' REG expr ',' REG ',' '+'
  280. STRA     ',' REG expr ',' REG ',' '-' 
  281. STRA     ',' REG expr ',' REG
  282. .sp
  283. STRR     ',' REG '*' expr 
  284. STRR     ',' REG expr
  285. .sp
  286. STRZ     REG    REG1
  287. STRZ     REG    REG2
  288. STRZ     REG    REG3
  289. .sp
  290. SUBA     ',' REG  expr
  291. SUBA     ',' REG '*' expr ',' REG ',' '+' 
  292. SUBA     ',' REG '*' expr ',' REG ',' '-' 
  293. SUBA     ',' REG '*' expr ',' REG
  294. SUBA     ',' REG '*' expr 
  295. SUBA     ',' REG expr ',' REG ',' '+'
  296. SUBA     ',' REG expr ',' REG ',' '-' 
  297. SUBA     ',' REG expr ',' REG
  298. .sp
  299. SUBI     ',' REG expr
  300. .sp
  301. SUBR     ',' REG '*' expr 
  302. SUBR     ',' REG expr
  303. .sp
  304. SUBZ     REG
  305. .sp
  306. TMI     ',' REG expr
  307. .sp
  308. TPSL     expr
  309. .sp
  310. TPSU     expr
  311. .sp
  312. WRTC     ',' REG
  313. .sp
  314. WRTD     ',' REG
  315. .sp
  316. WRTE     ',' REG expr
  317. .sp
  318. ZBRR     '*' expr 
  319. ZBRR     expr
  320. .sp
  321. ZBSR     '*' expr 
  322. ZBSR     expr
  323. .TE
  324. .H 3 "Register and Condition Reserved Symbols"
  325. The REG and CONDITION fields in instructions are restricted to only
  326. the values available as reserved symbols. 
  327. These are r0 - r3, or R0 - R3 for registers, and plus, PLUS, minus, MINUS, 
  328. zero, ZERO, gt, GT, lt, LT, eq, EQ, un, UN, always, and ALWAYS for 
  329. conditions.
  330. .H 3 "Destination Register for Indexed Addressing"
  331. If the destination register, the one adjacent to the opcode, is not R0 when
  332. one of the absolute indexed addressing modes is used, an error is issued.
  333. .H 3 "Selection Criteria Keywords"
  334. .VL 10 5 
  335. .LI "REG0 REG1 REG2 REG3"
  336. .SP
  337. Some instructions are restricted to a subset of the registers.
  338. Only those instructions with the specified registers are valid.
  339. .LI "COND0 COND1 COND2 COND3"
  340. .SP
  341. Some instructions are restricted to a subset of the conditions.
  342. Only those instructions with the specified conditions are valid.
  343. .VL 10 0 1
  344. .LI "COND0"
  345. EQ, or ZERO
  346. .LI "COND1
  347. GT, or PLUS
  348. .LI "COND2"
  349. LT, or MINUS
  350. .LI "COND3"
  351. ALWAYS, or UN
  352. .LE
  353. .LE
  354. .H 3 "Apostrophes"
  355. The apostrophes in the syntax field are a notation used for the
  356. parser generator and are not put in the assembler source statement.
  357. .H 2 "Notes"
  358. .H 3 "Location Counter"
  359. The Dollar Sign is used as the location counter symbol in this assembler.
  360. .H 3 "Memory Addressing Error Messages"
  361. .VL 5 0
  362. .LI "ERROR - expression exceeds available field width"
  363. .SP
  364. This message occurs when :
  365. .DL
  366. .LI
  367. The absolute branch address is to an invalid address, one greater than
  368. 32767.
  369. .LI
  370. The absolute or relative address was not in the present memory page.
  371. .LI
  372. The relative offset was outside the range that can be represented in 7 bits.
  373. .LE
  374. .LI "ERROR - instruction crosses page boundary"
  375. .SP
  376. The first and last bytes of an instruction are on different sides of an 8k 
  377. page.
  378. .LI "WARNING - Page Boundary"
  379. .SP
  380. The first byte of an instruction is on a 8k page boundry.
  381. .H 3 "Page Wraparound for Relative Addressing"
  382. The wraparound of an effective address, where a relative address from an
  383. instruction near a page boundary accesses memory at the other side of the 
  384. page, is not supported in this assembler and will result in one or more 
  385. error messages.
  386. .P
  387. This does not apply to the ZBRR and ZBSR instructions.  
  388. Memory destinations for these can range from 0 to $3f and $1fc0 to $1fff.
  389. .H 3 "Relational Operators"
  390. The relational operator keywords GT, LT, and EQ are not available.
  391. The '<', '>', and '==' special character representations must be used.
  392. .H 3 "Reserved Symbols"
  393. .H 4 "Machine Dependent Reserved Symbols"
  394. ALWAYS
  395. AND
  396. DEFINED
  397. EQ
  398. GE
  399. GT
  400. HIGH
  401. LE
  402. LOW
  403. LT
  404. MINUS
  405. MOD
  406. NE
  407. NOT
  408. OR
  409. PLUS
  410. R0
  411. R1
  412. R2
  413. R3
  414. SHL
  415. SHR
  416. UN
  417. XOR
  418. ZERO
  419. always
  420. and
  421. defined
  422. eq
  423. ge
  424. gt
  425. high
  426. le
  427. low
  428. lt
  429. minus
  430. mod
  431. ne
  432. not
  433. or
  434. plus
  435. r0
  436. r1
  437. r2
  438. r3
  439. shl
  440. shr
  441. un
  442. xor
  443. zero
  444. .TC 1 1 7
  445.