History.txt 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277
  1. A 6 8 K M A I N T E N A N C E H I S T O R Y
  2. Version 2.71.F3z (Lionel Debroux, July 29, 2009)
  3. Bugfix: Fix moveq #$FFFFFFFE,dn on 64-bit platforms.
  4. Version 2.71.F3y (Patrick Pelissier, June 27, 2009)
  5. Improved: The maximum length of a line has been raised from 256 to 65536.
  6. Bugfix: Don't compile A68k statically, as it fails on multiple platforms in
  7. their out of the box configuration.
  8. Version 2.71.F3x (Manoel Trapier, December 23, 2008)
  9. Added: OS X Makefile that generate an Universal Binary version.
  10. Version 2.71.F3w (Kevin Kofler, July 27, 2006)
  11. Bugfix: Fixed compilation on *BSD and recent versions of OS X.
  12. Version 2.71.F3v (Kevin Kofler, July 31, 2005)
  13. Bugfix: Don't crash on EQUs doing arithmetic with other EQUs which do
  14. arithmetic with undefined symbols, print an error instead.
  15. Version 2.71.F3u (Kevin Kofler, February 2, 2005)
  16. Bugfix: Fixed compilation with GCC 3.4.
  17. Version 2.71.F3t (Kevin Kofler, January 31, 2005)
  18. Added: NO_UNOPTIMIZABLE_RELOCS compile-time define (disabled by default)
  19. to allow generating AmigaOS-compatible object files again.
  20. Improved: Branches explicitly coded as .w are now marked unoptimizable.
  21. Improved: Label references explicitly coded as .l are now marked
  22. unoptimizable.
  23. Bugfix: Emitting relocations for undefined symbols which are already in
  24. the symbol table due to the forward branch optimization code now
  25. works properly.
  26. Version 2.71.F3s (Kevin Kofler, September 21, 2004)
  27. Added: Support for the "unoptimizable reloc" flag, keeping the linker
  28. from corrupting some instructions when optimizing.
  29. Improved: All platforms now use the same maximum line length and chunk
  30. sizes.
  31. Improved: The line count limit has been raised from 32767 to INT_MAX.
  32. Version 2.71.F3r (Kevin Kofler, July 19, 2004)
  33. Bugfix: Fixed label(PC,Rn) when "label" was in a different section
  34. (again) (reported by Julien Moutinho).
  35. Version 2.71.F3q (Kevin Kofler, December 30, 2003)
  36. Bugfix: Fixed label1-label2(an) in all-relocs mode (reported by hwti).
  37. Added: (In all-relocs mode,) don't emit an address difference when the 2
  38. labels are actually at the same address (or simply the same).
  39. This allows to keep optimizing label1-label1(an) into (an).
  40. Bugfix: Fixed a bug when range-checking branches in all-relocs mode
  41. (reported by hwti).
  42. Bugfix: Fixed a bug when range-checking short branches in all-relocs
  43. mode or to a different section (reported by hwti).
  44. Version 2.71.F3p (Kevin Kofler, December 1, 2003)
  45. Bugfix: Fixed label(PC,Rn) addressing in all-relocs mode or when "label"
  46. was in a different section (reported by Matthieu Gallet).
  47. Version 2.71.F3o (Kevin Kofler, October 5, 2003)
  48. Bugfix: Range checking now works correctly in all-relocs mode. (No more
  49. spurious out-of-range errors.)
  50. Version 2.71.F3n (Kevin Kofler, September 28, 2003)
  51. Bugfix: Local labels now work in all-relocs mode.
  52. Version 2.71.F3m (Kevin Kofler, September 2, 2003)
  53. Bugfix: PC-relative or indexed references to other sections didn't work.
  54. Bugfix: x(PC,Dn) or x(PC,An) didn't work in all-relocs mode.
  55. Version 2.71.F3l (Kevin Kofler, July 15, 2003)
  56. Added: The -u switch now also allows unaligned code, which can be useful
  57. when the code will be copied somewhere else anyway.
  58. Added: Short branches across hunks or object files are now allowed.
  59. Added: -a (All relocs) switch, which tells A68k to emit all relocs, even
  60. PC-relative relocs within a section. It also emits address
  61. differences in a special TIGCC-specific format. This will allow
  62. more aggressive linker-side optimization.
  63. Version 2.71.F3k (Kevin Kofler, May 17, 2003)
  64. Bugfix: Increased the forward reference buffer in order to allow
  65. multiple labels at the same location, as used in PedroM.
  66. Added: -u (Unaligned) switch, which disables automatic alignment of
  67. DC.W, DC.L, DCB.W, DCB.L, DS.W and DS.L.
  68. Version 2.71.F3j (Kevin Kofler, November 15, 2002)
  69. Bugfix: A68k was miscompiled on Darwin / OS X because of an invalid
  70. implicit declaration for lseek. Now including <unistd.h> instead
  71. of declaring lseek implicitly on Darwin / OS X. (Bug reported by
  72. Christian Walther.)
  73. Version 2.71.F3i (Kevin Kofler, February 1, 2002)
  74. Bugfix: Local labels caused a "Pass 1 / Pass 2 phase
  75. error" when preceded by an include file which
  76. contained labels, but was skipped in pass 2
  77. (such as OS.h).
  78. Version 2.71.F3h (Kevin Kofler, January 23, 2002)
  79. Bugfix: The TITLE (or TTL) directive did not work at all.
  80. It now works as it is supposed to.
  81. Bugfix: No longer crashes when trying to generate a
  82. listing file with cross-references (using the -x
  83. switch).
  84. Version 2.71.F3g (Kevin Kofler, January 22, 2002)
  85. Bugfix: The RORG and PUBLIC directives are now recognized
  86. correctly even if the first letter is not
  87. capitalized. Thanks to Brandon Sterner for
  88. reporting the problem with the RORG directive.
  89. Version 2.71.F3f (Kevin Kofler, January 8, 2002)
  90. Now also accepts ";", and for the -v switch also "=", as
  91. separator in command line arguments (wherever "," is
  92. allowed), for compatibility with the "-WA," switch in
  93. TIGCC.EXE.
  94. Version 2.71.F3e (Kevin Kofler, August 3, 2001)
  95. Bugfix: The SUB->LEA optimization did not change the
  96. sign of the immediate value.
  97. Version 2.71.F3d (Kevin Kofler, July 28, 2001)
  98. Bugfix: The ADD(A)/SUB(A)->LEA and LEA->ADDQ/SUBQ
  99. optimizations caused "Pass 1 / Pass 2 phase
  100. errors" if an optimization was known to be
  101. possible only in pass 2 (i.e. if using forward
  102. references to labels in the instruction). A68k
  103. will not try to optimize those anymore. Maybe a
  104. future version will provide support for this kind
  105. of optimization, but it is very difficult to
  106. implement.
  107. Bugfix: A68k did not compile correctly on Visual C++
  108. because I had done a define in an incorrect way.
  109. Version 2.71.F3c (Kevin Kofler, July 20, 2001)
  110. Applied a few patches submitted by Paul Froissart:
  111. * A few more adaptations for compiling with Microsoft
  112. Visual C++. (Note that I still recommend using GCC for
  113. Mingw32.)
  114. * A new command line switch:
  115. -v Allows to set a variable in the command line (like
  116. -d with GCC). The variable will be a SET, not EQU
  117. variable. Syntax: "-v<name>[,<value>]" (without
  118. spaces, and without the quotes). Note that <value>
  119. can only be a NUMBER at the moment. (We might
  120. support symbols as values in a future version.)
  121. The default value of <value> is 1.
  122. * Improved the optimization:
  123. - made optional the optimization which changes MOVEM
  124. with a single register to MOVE
  125. - added an optional optimization which changes ADD(A)
  126. and SUB(A) to LEA when applicable
  127. - added an optional optimization which changes LEA to
  128. ADDQ or SUBQ when applicable
  129. - added a command line switch which allows you to
  130. selectively disable some optimizations:
  131. -r Allows to disable specific optimizations:
  132. -rm Disable the MOVEM -> MOVE optimization
  133. -ra Disable the ADD(A)/SUB(A) -> LEA optimization
  134. -rl Disable the LEA -> ADDQ/SUBQ optimization
  135. You might use more than one -r switch (as in
  136. "-rm -ra") or combine them into a single switch
  137. (as in "-rma").
  138. You can still use -n to disable ALL optimizations
  139. (even those not covered by -r).
  140. * Added 2 more synonyms:
  141. SLO = SCS
  142. SHS = SCC
  143. * The END directive is now optional. If you do not use
  144. it, the assembly will automatically end at the end of
  145. your source file.
  146. Also fixed a bug found by Paul Froissart involving the
  147. reporting of invalid flags with the SECTION directive.
  148. (Not that anyone would use those flags anyway.)
  149. Adapted and applied a very old patch by John Antonishek,
  150. which allows you to define a symbol as XDEF even if it
  151. has been declared as XREF before. This is especially
  152. useful when using a common include file for globals.
  153. Moreover, END is not allowed in macros or include files
  154. anymore since that was causing a few bugs because A68k
  155. simply did not expect anyone to use it there. The
  156. quickest remedy is to simply remove the END instruction,
  157. since it is now optional anyway.
  158. Version 2.71.F3b (Kevin Kofler, July 12, 2001)
  159. Bugfix: Now raises an error if an undefined local label is
  160. used.
  161. Bugfix: Branches coded with an explicit length (.W or .L)
  162. are not optimized (or flagged as optimizable)
  163. anymore.
  164. (In previous versions, .B or .S was not optimized,
  165. but .W or .L could be optimized to a short branch.
  166. Now, only branches without an explicit length will
  167. be optimized.)
  168. Bugfix: Quoted strings can now be passed as macro
  169. arguments without the need for '<' and '>', even
  170. if they contain spaces or separators (',' or ';').
  171. You can still use '<' and '>', for example in
  172. order to pass strings like <129,' version'> (which
  173. will appear as "ß version" on a TI-89/92/92+).
  174. Version 2.71.F3a (Kevin Kofler, July 9, 2001)
  175. Win32 port for the TIGCC project, compiled with GCC for
  176. Mingw32.
  177. Even though we recommend Mingw32, A68k should also compile
  178. with Microsoft Visual C++, thanks to Paul Froissart.
  179. (Please do NOT ask me questions about compiling with
  180. Visual C++. I have just put in Paul Froissart's ifdefs.)
  181. It also compiles with Cygwin, but since the result is
  182. larger than the Mingw32 version, I do not see any benefit
  183. in using it.
  184. Bugfix: My Win32 port of v.2.71.F3 did not support labels
  185. or variable names which contain accented
  186. characters.
  187. Bugfix: Now detects all errors in include files. All
  188. include files will be treated in pass 2 if an
  189. error is detected.
  190. Bugfix by Paul Froissart: fixed a random crash bug due to
  191. a missing initialization
  192. Bugfix by Julien Muchembled: allow odd displacements for
  193. words and longwords if the
  194. resulting address might be
  195. even
  196. The Win32 version is now less greedy with the memory, so
  197. its limitations are less annoying:
  198. * lines can now be 256 bytes long (Paul Froissart)
  199. * filenames (with path) can now be 259 bytes long (the
  200. Win32 maximum)
  201. * the default heap sizes have also been increased (Paul
  202. Froissart)
  203. Added the following synonyms:
  204. BLO = BCS
  205. BHS = BCC
  206. DBLO = DBCS
  207. DBHS = DBCC
  208. ROLX = ROXL
  209. RORX = ROXR
  210. Version 2.71.F3 (David Ellsworth, July 11, 2000)
  211. Fixed a bug introduced by my modifications that prevented
  212. branches from being optimized in Global XRef mode.
  213. Version 2.71.F2 (David Ellsworth, January 22, 1998)
  214. Made A68k properly differentiate between PC-relative and
  215. absolute references to external symbols. Allowed branches
  216. to reference external labels in Global XRef (-g parameter)
  217. mode.
  218. Version 2.71.F1 (David Ellsworth, January 7, 1998)
  219. Made changes so that combinations of EQU, XREF, and XDEF
  220. directives work better together. These changes were made in
  221. order for Fargo II library linking to be easier to do.
  222. The F1 stands for Fargo patchlevel 1.
  223. Version 2.71 (Charlie Gibbs, April 16, 1991)
  224. The following bugs in version 2.62 have been corrected:
  225. - Enforcer checks were being generated if command-line
  226. parameters that took a numeric value had no value or
  227. the value was invalid. CalcValue was attempting to
  228. look up a label in the symbol table, which having not
  229. been allocated yet was causing a null pointer to be
  230. dereferenced. (Patrick Quaid)
  231. The following enhancements have been added:
  232. - Function prototyping has been added. All function
  233. prototypes are in a new include file, protos.h, which
  234. is included by A68kdef.h. Prototyping can be disabled
  235. (for compilers which do not support it) by defining
  236. the symbol __NOPROTO; in this case old-style function
  237. declarations are generated instead.
  238. Version 2.70 (Charlie Gibbs, February 25, 1991)
  239. The following bugs in version 2.62 have been corrected:
  240. - The definition of tempstr in WriteSymTab (24 bytes)
  241. was being overrun in some cases, causing A68k to hang.
  242. Its length has been increased to MAXLINE.
  243. (Paul Gittings, John Antonishek)
  244. - If A7 was in a list of registers in the source operand
  245. of a MOVEM instruction, all registers would be moved
  246. (i.e. the mask was set to 0xFFFF). (Risto Kaivola)
  247. - Octal or binary values that set bit 31 were being
  248. flagged as overflow errors. (Harvey Taylor)
  249. - ORGs were unnecessarily restricted when the -s flag was
  250. specified. Everything should be absolute when S-records
  251. are generated, and any absolute ORG should be allowed.
  252. The following enhancements have been added:
  253. - A new INCBIN directive has been added. It takes a
  254. single operand, a file name whose contents are
  255. included as is at the current position in the
  256. object code file. (Julian Gold, Colin Fox)
  257. - The opcode TTL is now accepted as a synonym for TITLE.
  258. - The file mode in the creat() call in xopen() has been
  259. changed from 1 to 0644; this provides a reasonable file
  260. mode when compiled on a Unix system. (Paul Gittings)
  261. - A new command-line keyword (-g) has been added. It
  262. causes all undefined symbols to be treated as XREF.
  263. (Paul Gittings, Steve Hawtin (who provided the code))
  264. - All initialized fields in opcodes.c have been made global
  265. for compatibilty with more compilers. (Steve Hawtin)
  266. - The register list in a MOVEM instruction can now be an
  267. immediate operand which specifies the actual mask bits.
  268. (Paul Gittings, who provided the code)
  269. - The default value for the -q option has been changed
  270. from 10 to 100.
  271. Version 2.62 (Charlie Gibbs, March 19, 1990)
  272. The following enhancements have been added:
  273. - A new command-line keyword (-m) has been added.
  274. It must be immediately followed by a number which
  275. specifies the offset from the beginning of a small
  276. data section to the base register specified in the
  277. NEAR directive (defaulting to A4). If this parameter
  278. is omitted, the offset defaults to 32768 bytes. This
  279. parameter is meaningful only if the NEAR directive
  280. is used. (Colin Fox)
  281. Version 2.61 (Charlie Gibbs, January 11, 1990)
  282. The following bugs in version 2.6 have been corrected:
  283. - ORG and RORG at the beginning of the program were
  284. being processed incorrectly. (Jukka Jarvinen)
  285. - A branch instruction to its own label, e.g.
  286. lab bra lab
  287. would cause phase errors; the instruction was
  288. being shortened on pass 2 but not on pass 1.
  289. (Kevin Hoare)
  290. The following enhancements have been added:
  291. - Labels may begin with '@' if the next character
  292. is not numeric (to avoid confusion with octal
  293. constants). (Colin Fox)
  294. - Write errors now cause A68k to terminate gracefully
  295. with an appropriate error message.
  296. Version 2.6 (Charlie Gibbs, November 2, 1989)
  297. The following bugs in version 2.5 have been corrected:
  298. - If a space is left between a file keyword and the file name
  299. (e.g. A68k -l foo.lst foo.asm) the source file was scratched.
  300. (E. Lenz)
  301. - All code using post-increment addressing in references to
  302. toupper() has been reworked to avoid post-increment. Such
  303. code does not work correctly if toupper() is a macro.
  304. (John K. Antonishek)
  305. - The spelling of the include files A68kdef.h and A68kglb.h
  306. has been made correct as to case. This simplifies porting
  307. to case-sensitive file systems. (John K. Antonishek)
  308. - If comments immediately follow the operands of an XDEF,
  309. XREF, or PUBLIC statement with no intervening white space
  310. (as in any of the following statements), A68k would hang:
  311. XDEF foo;comments
  312. XREF bar;comments
  313. PUBLIC blah;comments
  314. (Bruce Dawson)
  315. - Numeric values (any radix) which do not fit into 32 bits
  316. were not being flagged. (E. Lenz)
  317. - DC statements with no operands were not being flagged.
  318. (E. Lenz)
  319. - The -f option was suggesting short branches where the
  320. displacement would be zero, which is illegal. (E. Lenz)
  321. - Branches outside the current section had the offset
  322. set to zero. (Matt Dillon, who provided a fix)
  323. - ADDI, ANDI, CMPI, EORI, ORI, and SUBI instructions whose
  324. source operand was not immediate were not being flagged.
  325. (E. Lenz)
  326. - Unary NOT of a byte or word immediate operand whose value
  327. was negative was being flagged as a size error.
  328. (John Aycock)
  329. - All forward branches were rejected when the NEAR
  330. directive was active. (Colin Fox)
  331. The following enhancements have been added:
  332. - Single-byte immediate operands (e.g. MOVE.B #-1,(a0))
  333. are now padded with a high-order byte of zero, rather
  334. than being sign-extended. (E. Lenz)
  335. - The message "Error in operand format." has been changed
  336. to "Addressing mode not allowed here." in places where
  337. the latter message is more appropriate.
  338. - If the -q option species a value of zero (or no value
  339. is given, defaulting to zero), all console output will
  340. be suppressed except for error messages, if any.
  341. (Matt Dillon)
  342. - The 128-byte restriction on constant length no longer
  343. applies to the entire code generated by a single DCB
  344. statement; statements such as
  345. DCB.L 64,0
  346. can now be handled. (Colin Fox)
  347. - Forward branches are now optimized. The occasional
  348. instruction may be missed due to ripple effects, but
  349. this shouldn't happen frequently. The -f switch
  350. will flag any such instructions.
  351. - The -d switch can now be followed by an optional
  352. prefix string (with or without a leading !) which
  353. specifies which symbols should or should not be
  354. included in the symbol table dump. (Lionel Hummel)
  355. Version 2.5 (Charlie Gibbs, June 18, 1989)
  356. The following bugs in version 2.42 have been corrected:
  357. - Upon normal termination, A68k occasionally crashed in
  358. quit_cleanup by trying to free the relocation table twice.
  359. (Jeff Lydiatt and D. McClelland, who worked out a fix)
  360. - MEMF_CHIP and MEMF_FAST bits were being set in the
  361. hunk length, rather than in the hunk type. (Richard Man)
  362. - BCHG.L, BCLR.L, BSET.L, and BTST.L were causing
  363. phase errors. The test to ignore the .L specification
  364. (added in version 1.21) was being skipped in pass 1
  365. by an optimization added in version 2.4. (David Hankins)
  366. - PC-relative offset to a label was calculated as two bytes
  367. too great for MOVEM instructions. (Tony Parkhurst)
  368. The following enhancements have been added:
  369. - If the length code on an opcode is not .B, .W, .L, .S,
  370. or omitted, it will be flagged as an error.
  371. - JMP.S and JSR.S are flagged as errors. (Jim Butterfield)
  372. - Operands of the form (xxxx).W and (xxxx).L are now
  373. supported. This enables absolute short or absolute
  374. long addressing to be explicitly specified.
  375. - All optimization can be disabled by the new -n switch.
  376. (David Hankins)
  377. - The NEAR directive can now take a single operand, which
  378. can be any address register (or equated symbol) except
  379. A7. If omitted, the register defaults to A4.
  380. - Instructions of the form BTST Dn,#nn are no longer
  381. flagged. This obscure variant is nonetheless legal.
  382. Version 2.42 (Charlie Gibbs, January 10, 1989)
  383. The following bugs in version 2.41 have been corrected:
  384. - Small code/data conversion was sometimes taking place
  385. when no NEAR directive was active. (Jeff Lydiatt)
  386. Version 2.41 (Charlie Gibbs, January 6, 1989)
  387. The following bugs in version 2.4 have been corrected:
  388. - The second operand of LINK instructions was
  389. being erroneously flagged.
  390. - If a macro was used before it was defined, it
  391. was being expanded during pass 2 but not during
  392. pass 1, causing severe phase errors. Attempts
  393. to use a macro before it is defined will now
  394. be flagged as invalid opcodes. (Colin Fox)
  395. Version 2.4 (Charlie Gibbs, January 4, 1989)
  396. The following bugs in version 2.31 have been corrected:
  397. - If comments immediately followed the operands of
  398. a DC statement with no intervening white space,
  399. A68k would hang. (Ulf Nordquist)
  400. - In the following command:
  401. a68k -w 15000 myprog.asm
  402. the space between the -w and 15000 would cause A68k
  403. to look for a source file called "15000", and to think
  404. that the object file is to be called "myprog.asm".
  405. When it can't find "15000" it would display an error
  406. message and scratch "myprog.asm". (Jeff Lydiatt)
  407. - If an INCLUDE file that is skipped on pass 2 contains
  408. a macro call, subsequent uses of \@ (macro sequence
  409. number are subsequently flagged. The macro counter
  410. must be bumped along with the line number when
  411. skipping an INCLUDE. (Colin Fox, Harvey Taylor)
  412. The following enhancements have been added:
  413. - ORG and RORG are now fully implemented.
  414. - The SET symbols A68k, a68K, and a68k are defined in the
  415. same way as A68K, making it effectively case-insensitive.
  416. (Colin Fox)
  417. - MOVEM and REG now accept equated register names (EQUR)
  418. in register lists. (Bruce Dawson)
  419. - INCLUDE files will now be skipped on pass 2 even when
  420. a listing file is requested, if the listing has been
  421. turned off by a NOLIST directive before the INCLUDE,
  422. and is not turned on until after the end of the
  423. INCLUDE file has been reached. (Colin Fox)
  424. - A new switch (-f) causes forward branches (Bcc, BRA, BSR)
  425. that could be coded as short branches (Bcc.S etc.) to be
  426. flagged. This flag is not considered to be an error.
  427. - A limited small code / small data model has been provided.
  428. It is activated by a NEAR directive in the source code, and
  429. is de-activated by a FAR directive. External variables
  430. must be declared at the beginning of the program, which
  431. must consist of only two sections (CODE and DATA or BSS).
  432. All forward data references are assumed to be PC-relative
  433. if in the CODE section, A4-relative if in the DATA/BSS
  434. section, and absolute word if absolute values. Any
  435. forward references which cannot be resolved to one of
  436. these three in pass 2 will be flagged as errors, as will
  437. any attempt to define more than two sections. A4 is
  438. assumed to point to the start of the DATA/BSS section
  439. plus 32768 bytes, and must be loaded by a MOVE.L
  440. instruction using immediate mode unless this instruction
  441. is not enclosed within NEAR and FAR directives.
  442. - Miscellaneous optimizations, for speed, including:
  443. Most of the object code generator in pass 1 is bypassed.
  444. If GetValue gets a single term it takes a short cut.
  445. IsOperator now uses a table look-up.
  446. Instructions now only searches that portion of the
  447. opcode table whose opcodes start with the same letter
  448. as the OpCode being searched for.
  449. Version 2.31 (Charlie Gibbs, November 30, 1988)
  450. The following bugs in version 2.3 have been corrected:
  451. - Even though a macro definition was being skipped
  452. by IFxx/ENDC, its ENDM directive was still being
  453. detected, causing spurious diagnostics. (Harvey Taylor)
  454. - NOP was not being recognized. When moving all
  455. directives into the opcode table, NOL and NOLIST
  456. were placed after NOP, rather than before. (Colin Fox)
  457. - Symbols defined in the current module and declared
  458. as PUBLIC were not being written to the object code
  459. file when -d was specified. (Colin Fox)
  460. - Conversion of 0(An) to (An) (implemented in version
  461. 1.2) was causing errors in the MOVEP instruction,
  462. which requires a displacement even if it is zero.
  463. This conversion is now disabled for MOVEP instructions.
  464. - User macros containing invalid opcodes caused A68k
  465. to get lost when returning to the outer source file.
  466. (Colin Fox)
  467. - Large values of -w (over 6000 or so) would cause
  468. a visit from the Guru. The work field in HashIt
  469. was overflowing and going negative. Changing it
  470. to unsigned corrected the problem. (Colin Fox)
  471. - Although user macros are no longer displayed when
  472. -q is a negative number, the calling file's name
  473. was still being displayed at the end of the macro.
  474. Version 2.3 (Charlie Gibbs, November 21, 1988)
  475. The following enhancements have been added:
  476. - All file I/O has been rewritten to use level 1 I/O
  477. (open, creat, close, read, write, and lseek) instead
  478. of level 2 I/O. A68k now does its own buffering and
  479. unbuffering to reduce system overhead and increase speed.
  480. (Bruce Dawson)
  481. - All assembler directives have been incorporated into
  482. the opcode table. Since the opcode search now looks
  483. up directives as well, speed is increased.
  484. - Miscellaneous code optimization for additional speed.
  485. Version 2.2 (Charlie Gibbs, November 4, 1988)
  486. The following bugs in version 2.1 have been corrected:
  487. - Macro definitions within an INCLUDE file were
  488. disabling the test for skipping the file on pass 2.
  489. - Errors encountered in an INCLUDE file on pass 1
  490. were not disabling the skip of the file on pass 2 -
  491. the pertinent error messages could not appear.
  492. - XDEF information and optional symbol table dumps were
  493. not being written to the object code file for any
  494. hunks that did not contain relocatable code or data.
  495. (Colin Fox)
  496. The following enhancements have been added:
  497. - If the -q option is specified as a negative value,
  498. user macros are no longer included in line number
  499. displays, reducing clutter.
  500. - Some source code has been re-arranged to reduce size.
  501. Version 2.1 (Charlie Gibbs, November 1, 1988)
  502. The following bugs in version 2.00 have been corrected:
  503. - Macro definitions that span two chunks of memory
  504. were causing garbage and probably a crash when
  505. the macro was being expanded. Pointers were not
  506. being handled properly when linking the two chunks.
  507. - Statements such as EQU and SET were not being flagged
  508. as illegal forward references if referencing a label
  509. defined on the same line, e.g.
  510. LABEL SET LABEL+1
  511. - The position within macros and INCLUDE files was
  512. sometimes out by one line when reported in error
  513. messages (and the new feature of the -q switch).
  514. The following enhancements have been added:
  515. - If the -q option is specified as a negative value,
  516. line numbers will be displayed as positions within
  517. the current module (whose name is also displayed),
  518. rather than a total statement count. (Bruce Dawson)
  519. - INCLUDE files can be skipped on pass 2 even if they
  520. contain SET statements - the values of all symbols
  521. SET in the INCLUDE file are stored (as at the end
  522. of the file) in a separate table and are patched
  523. when the INCLUDE file is skipped. (Bruce Dawson)
  524. Version 2.00 (Charlie Gibbs, October 26, 1988)
  525. The following bugs in version 1.24 have been corrected:
  526. - The last digit of the statement number display
  527. (lengthened in version 1.24) was not being erased
  528. before displaying error messages.
  529. - A68k would go into a loop if a user macro was
  530. missing an ENDC directive. This error is now
  531. flagged (see below).
  532. The following enhancements have been added:
  533. - The highest statement number displayed at the end of
  534. each pass is now left on the screen. This means that,
  535. at the end of pass 1, you can always see how many lines
  536. A68k will have to process in pass 2, giving an idea of
  537. how how much longer you have to wait. (Colin Fox)
  538. - The symbol table is now built using a hashing algorithm.
  539. This eliminates the slowdown that occurs in pass 1 as
  540. the symbol table grows, due to the old insertion process.
  541. (Bruce Dawson)
  542. - If A68k terminates abnormally for any reason (such as
  543. insufficient memory) the object file is scratched
  544. (unless the -k option is set). (Bruce Dawson)
  545. - Any INCLUDE files which cannot be found are flagged
  546. as errors in pass 1, and the assembly is aborted
  547. at the end of pass 1. (Bruce Dawson)
  548. - Missing ENDC directives are flagged in macro expansions.
  549. Also, missing or unpaired ENDC directives in user macros
  550. are flagged.
  551. - If an INCLUDE file doesn't generate any code and no
  552. listing file is required, it won't be read again in
  553. pass 2. The statement numbers will be bumped to keep
  554. in proper alignment. This can really speed up
  555. assemblies that INCLUDE lots of equates. (Colin Fox)
  556. Version 1.24 (Charlie Gibbs, October 11, 1988)
  557. The following bugs in version 1.23 have been corrected:
  558. - MOVEA to a data register was not being flagged, even
  559. though all other invalid addressing modes were.
  560. - Attempts to ORG out of the current hunk (including
  561. to an absolute address) were not being flagged. (E. Lenz)
  562. - If the size of the bottom of the primary heap (symbols
  563. and macro text) exceeded 32K, any further macro
  564. definitions would expand as endless garbage. (Colin Fox)
  565. - If the size of the bottom of the primary heap (symbols
  566. and macro text) exceeded 64K, any further external
  567. symbols (XDEF) would be flagged as relocatability
  568. errors upon each reference. (Colin Fox)
  569. The following enhancements have been added:
  570. - Where statement numbers are displayed as fixed-length
  571. fields, their maximum length has been increased
  572. from 4 digits to 5. (Colin Fox)
  573. - The PUBLIC directive has been implemented.
  574. As with the Aztec assembler, any labels defined as
  575. PUBLIC will be treated as XDEF if defined within
  576. the current module, and XREF otherwise. (Jeff Lydiatt)
  577. Version 1.23 (Charlie Gibbs, September 20, 1988)
  578. The following bugs in version 1.22 have been corrected:
  579. - The test for a third operand was producing erroneous
  580. error messages on instructions whose second operand
  581. was in immediate mode. The '#' was not being taken
  582. into account, since it is not copied to DestOp.
  583. Version 1.22 (Charlie Gibbs, August 31, 1988)
  584. The following bugs in version 1.21 have been corrected:
  585. - Expressions of the form R-A, where R is a relocatable
  586. term or expression and A is an absolute term or
  587. expression, were being flagged as relocation errors.
  588. This was due to a bug in the routine which should
  589. (but did not) flag expressions of the form A-R.
  590. (David Ashley)
  591. - Instructions with three operands were not being
  592. flagged as errors. This can be caused by an extra
  593. comma being typed in the instruction, as in:
  594. BTST #0,state+3,(a5)
  595. The second comma should not be present. (David Ashley)
  596. The following enhancements have been added:
  597. - Excess spacing has been removed from the listing file.
  598. These changes are similar to those already made to the
  599. console output (probably at about version 1.05).
  600. - If the first statement in the source file is TTL or
  601. PAGE, an empty page is no longer produced at the
  602. start of the listing.
  603. Version 1.21 (Charlie Gibbs, July 29, 1988)
  604. The following bugs in version 1.2 have been corrected:
  605. - The instruction
  606. BTST.L #8,D0
  607. had a long-word value generated for the bit number.
  608. This bug also applies to BSET, BCLR, and BCHG.
  609. The .L specification is now ignored. (Ulf Nordquist)
  610. Version 1.2 (Charlie Gibbs, July 19, 1988)
  611. The following bugs in version 1.12 have been corrected:
  612. - A reference to the label of the current instruction
  613. was being converted to PC-relative on pass 2 but not
  614. on pass 1. This was causing phase errors. The label
  615. hasn't been added to the symbol table at the time the
  616. instruction is processed. Conversion to PC-relative
  617. addressing will now not be attempted in this case,
  618. although references to * can and will be converted.
  619. - All string-type DC statements, regardless of length,
  620. were being treated as DC.B. For example, DC.L 'A'
  621. would generate only one byte of object code.
  622. (Gerald Hull)
  623. - DC.W and DC.B statements were not being checked to
  624. ensure that their values would fit into a word or
  625. a byte respectively.
  626. - If a comment line had white space preceding the
  627. asterisk, A68k would hang. Actually, it was
  628. interpreting the asterisk as an opcode and trying
  629. to open a macro file called "*". Since under
  630. AmigaDOS such a file is the console, A68k was
  631. actually waiting for console input.
  632. - If an instruction with no operands (such as RTS
  633. or NOP) followed MOVE.L #rel,D0 where "rel" was
  634. a relocatable symbol, the RTS (etc.) would have
  635. its nonexistent operands flagged as invalid.
  636. - SECTION names enclosed in quotes were not being
  637. handled correctly.
  638. - Source modules that did not generate any code, data,
  639. or BSS areas, but only defined symbols, such as
  640. label equ 4
  641. xdef label
  642. end
  643. were generating incomplete object modules.
  644. The following enhancements have been added:
  645. - Jeff's experimental hunk code (prefixing hunk names
  646. with a sequence number before adding to the symbol
  647. table) has been permanently incorporated. It seems
  648. to work better with BLink on programs that have
  649. hunks continued farther on in the source code.
  650. (Jeff Lydiatt)
  651. - The macro parameter \0, which is replaced by the
  652. size specification in the macro call (B, W, or L,
  653. defaulting to W) is now supported. (Gerald Hull)
  654. - Operands of the form 0(An) will be treated as (An).
  655. (Bruce Dawson)
  656. Version 1.12 (Charlie Gibbs, May 25, 1988)
  657. The following bugs in version 1.11 have been corrected:
  658. - If an instruction with no operands (e.g. RTS)
  659. followed a MOVE.L #label,D0 the RTS would be
  660. flagged with a relocatability error. Src.Mode
  661. and Dest.Mode were not being cleared. (Colin Fox)
  662. Version 1.11 (Charlie Gibbs, April 6, 1988)
  663. The following bugs in version 1.10 have been corrected:
  664. - A68k would go into a loop while processing the
  665. arguments of a macro call, if these arguments are
  666. followed by comments separated from the arguments
  667. by one or more tab characters, and the -t switch
  668. is specified on the command line. All tests for
  669. blanks have been replaced by calls to isspace().
  670. - The operand alignment checks added in version 1.06
  671. were erroneously testing the following instructions:
  672. BCHG
  673. BCLR
  674. BSET
  675. BTST
  676. NBCD
  677. Scc
  678. TAS
  679. These instructions are now exempt from alignment checking.
  680. The following enhancements have been added:
  681. - A listing file name can now be specified with the
  682. -x switch; it is no longer necessary to specify
  683. both the -l and -x switches to produce a cross-
  684. reference listing with a name other than the default.
  685. - DS statements with more than one operand are
  686. flagged and ignored (in case they should be DC).
  687. - A character string used as a numeric value is
  688. flagged and set to zero if it is more than four
  689. characters long.
  690. Version 1.10 (Charlie Gibbs, March 20, 1988)
  691. The following bugs in version 1.07 have been corrected:
  692. - BSS sections were not being written to the object
  693. code file except for a BSS section at the end of
  694. a program. This is due to a bug in the code added
  695. in version 1.05 to overwrite null sections.
  696. - If a source module contained a mixture of lengths
  697. (8, 16, or 32 bits) in external references (XREF)
  698. to the same label, all references were being treated
  699. as if they has the length of the first reference.
  700. The following enhancements have been added:
  701. - DS operands that are either a forward references
  702. or relocatable are now flagged.
  703. - Short branches (Bcc.S, including BRA and BSR) to
  704. the next instruction (i.e. a displacement of zero)
  705. are illegal - the processor takes the displacement
  706. from the next word. Attempts to generate a short
  707. displacement of zero are now flagged.
  708. Version 1.07 (Charlie Gibbs, March 11, 1988)
  709. The following bugs in version 1.06 have been corrected:
  710. - Instructions that take no operands (such as RTS)
  711. were being flagged if they had comments that were
  712. not preceded by a semicolon.
  713. The following enhancements have been added:
  714. - The following synonyms have been added:
  715. CSEG for CODE (Aztec compatibility)
  716. DSEG for DATA " "
  717. ENDIF for ENDC (Assempro compatibility)
  718. = for EQU " "
  719. | for ! " "
  720. - Strings and character values may be delimited by
  721. either apostrophes (') or quotation marks (").
  722. The character not used as a delimiter can be used
  723. within the string without doubling it. For example,
  724. DC.B "This is Charlie's assembler"
  725. produces the same code as
  726. DC.B 'This is Charlie''s assembler"
  727. - The object code file will be scratched if any errors
  728. were found, unless the -k (keep) flag is set.
  729. (Bruce Dawson)
  730. - The symbol .A68K is automatically defined at the
  731. beginning of each assembly as a SET symbol with an
  732. absolute value of 1. This enables programs to check
  733. whether they're being assembled by this assembler.
  734. (Jeff Lydiatt)
  735. - The symbol table insertion routine has been
  736. greatly speeded up.
  737. Version 1.06 (Charlie Gibbs, March 6, 1988)
  738. The following bugs in version 1.05 have been corrected:
  739. - Lines skipped by IFxx/ENDC were not being counted
  740. in the line number given in error messages.
  741. - DATA and BSS sections may be unnamed, or have names
  742. the same as CODE sections. Honest, I thought section
  743. names had to be unique even across types.
  744. - CHIP and FAST options on the CODE, DATA, and BSS
  745. synonyms for the SECTION directive were not being
  746. handled correctly.
  747. - XDEF records and symbol table records (if desired)
  748. were not being produced for symbols defined ahead
  749. of the first object-code producing instruction.
  750. The following enhancements have been added:
  751. - The CNOP instruction can now force alignment
  752. relative to any boundary up to 128 bytes.
  753. The second operand must still be a power of 2.
  754. - The -q switch has been added to change the frequency
  755. with which progress reports (current line number) are
  756. displayed on the console. The default remains at
  757. every 10 lines (-q10). If you specify -q (no interval)
  758. or -q0 the line number displays will be suppressed.
  759. This will make assemblies run slightly faster due to
  760. reduced console I/O. (Bill Henning)
  761. - The -t switch has been added to keep any tabs in the
  762. source file when producing the listing file, as well as
  763. generating tabs elsewhere whenever possible. This
  764. speeds up assemblies and gives smaller listing files,
  765. but such listing files cannot be displayed on devices
  766. that do not assume a tab stop in every 8th position.
  767. (Bruce Dawson)
  768. - Any single-operand instruction with two operands,
  769. and any no-operand instruction with any operands,
  770. will be flagged.
  771. - Relocatable 8- or 16-bit immediate operands
  772. will be flagged. They blow up BLink.
  773. - Named local labels are now supported. Their names
  774. are formed in the same way as normal labels, but are
  775. then preceded by a backslash. Their scope is the
  776. same as normal local labels (nnn$). (Colin Fox)
  777. - An alignment error will be flagged in the following cases:
  778. Odd displacement on a LINK instruction
  779. Bcc or DBcc to an odd address
  780. In any word or long-word instruction, any operand
  781. using the following addressing modes:
  782. Address register indirect with displacement
  783. Address register indirect with index and displacement
  784. Absolute short
  785. Absolute long
  786. Program counter indirect with displacement
  787. Program counter indirect with index and displacement
  788. LEA and PEA instructions are exempt from these tests.
  789. - If a section is found to contain no data, A68k will
  790. back up to its beginning and overwrite it with the
  791. next section. The result is that null sections
  792. will no longer appear in the object file.
  793. Version 1.05 (Charlie Gibbs, October 30, 1987)
  794. The following bugs in version 1.04 have been corrected:
  795. - If a section was continued later in the program, e.g.
  796. SECTION prog,CODE
  797. <code>
  798. SECTION variables,BSS
  799. <DS statements>
  800. SECTION prog,CODE
  801. <more code>
  802. bad relocation information was being generated for
  803. the continuation of the SECTION. This bug was left
  804. over from version 1.03.
  805. The following enhancements have been added:
  806. - All console output except for error messages is now
  807. sent to stderr - this enables stdout to be redirected,
  808. producing an error file.
  809. - Console (stderr) output has been modified to require
  810. fewer lines on the screen.
  811. - If an error occurs while expanding a macro or INCLUDE
  812. file, the position of the call in each outer file is
  813. given along with the position in the current (innermost)
  814. file. Tracing continues until the outermost file (i.e.
  815. the original source file) is reached.
  816. Version 1.04 (Charlie Gibbs, October 21, 1987)
  817. The following bugs in version 1.03 have been corrected:
  818. - MOVE was being converted to MOVEQ regardless of
  819. operand size - this conversion is legal only
  820. for longword MOVEs.
  821. - Modifications to version 1.03 caused bad relocatable
  822. entries to be generated.
  823. Version 1.03 (Charlie Gibbs, October 14, 1987)
  824. The following bugs in version 1.02 have been corrected:
  825. - The following situation was causing phase errors:
  826. xdef label
  827. bra label
  828. .
  829. <at least 128 bytes of object code>
  830. .
  831. label:
  832. (The XDEF was fooling A68k into thinking that "label"
  833. was defined within 128 bytes of the BRA instruction
  834. on pass 1, although on pass 2 it knew better.
  835. - If the first operand of an two-operand executable
  836. instruction contained a character term containing a
  837. left or right parenthesis, it would generate error
  838. messages and be incorrectly evaluated.
  839. - Labels that don't begin in column 1 (denoted by a
  840. trailing colon) caused a Guru Meditation.
  841. - Certain ADD and SUB instructions using PC-relative
  842. addressing may cause phase errors. If the displacement
  843. is in the range 1 to 8 inclusive, the instruction was
  844. erroneously converted to ADDQ or SUBQ during pass 2.
  845. The following enhancements have been added:
  846. - The -z option has been added to display the
  847. current source program line on stdout as it
  848. is read, optionally over a given range.
  849. This feature is provided for debugging purposes.
  850. - Bcc, BSR, and DBcc to labels in other than the current
  851. section is now supported. A 16-bit relocation entry
  852. will be generated for each such reference.
  853. - PC relative mode will be generated for backward
  854. references to labels within the current CODE section
  855. if legal for the current instruction. Forward
  856. references will not be converted, since there is
  857. no way of telling which section the label is in
  858. during pass 1.
  859. - The cumulative sizes of all sections by type (i.e.
  860. CODE, DATA, and BSS) will be displayed at the end
  861. of the listing file and the console display.
  862. (Bruce Dawson)
  863. - In the symbol table dump, section names will no
  864. longer be indicated just as SECTION, but rather
  865. as CODE, DATA, or BSS, depending on type.
  866. Version 1.02 (Charlie Gibbs, September 9, 1987)
  867. The following bugs in version 1.01 have been corrected:
  868. - Duplicate labels were not being flagged.
  869. - XDEF symbols were not being dumped to the
  870. object code file when the -d option was set.
  871. The following enhancements have been added:
  872. - A header file is now supported. If the parameter
  873. -h<filespec> is included on the command line, the
  874. specified file will be included as if the source
  875. file's first line was " include <filespec>".
  876. The file specification may include a path name,
  877. although the include path names given by the
  878. -i parameter (if any) will also be searched.
  879. - An equate file can now be produced. If the parameter
  880. -e<filespec> is included on the command line, a file
  881. will be written containing EQU statements for any
  882. symbol whose value is absolute. If -e is specified
  883. without <filespec>, the name of the file will be
  884. formed in the same way as the list file, except with
  885. an extension of ".equ". (Bruce Dawson)
  886. The following changes have been made to existing logic:
  887. - No symbol table dump will be produced unless the
  888. -x (cross-reference) switch is set. Formerly a
  889. symbol table dump was always produced, with only
  890. the cross-reference portion optional.
  891. Version 1.01 (Charlie Gibbs, August 20, 1987)
  892. The following bugs in version 1.00 have been corrected:
  893. - Long-word constants and storage areas were being
  894. aligned on a double-word boundary. The only place
  895. where double-word alignment is now forced is at a
  896. break between SECTIONs, since the length of an
  897. AmigaDOS hunk must be a multiple of 4 bytes.
  898. (CNOP 0,4 can still be used if double-word
  899. alignment is desired by the programmer.)
  900. - If a label on an END statement or the first statement
  901. of a SECTION was named in an XDEF statement, it would
  902. not be written to the object code file. The latter
  903. case includes both the label of a SECTION directive
  904. and the label of the first executable instruction in
  905. the absence of any SECTION directives (defaulting to
  906. an unnamed CODE section). In the final case (default
  907. unnamed CODE section), references to XREF symbols
  908. in the first statement would also not be written
  909. to the object code file.
  910. - If the last statement in the source file was not
  911. terminated with a newline character (premature EOF),
  912. it was being ignored altogether.
  913. - A register list as the source operand of a MOVE
  914. instruction was not being flagged as an error.
  915. (MOVE to a register list was being flagged, however.)
  916. - MOVE from USP was generating incorrect code. Also,
  917. MOVE from SR or CCR to an address register was
  918. generating incorrect code rather than being flagged.
  919. Version 1.00 (Charlie Gibbs, June 18, 1987) - initial release