Commit graph

1623 commits

Author SHA1 Message Date
keie 6c9e4c84f0 The definition if the symbols, end, endbss etc, is moved
from a library to a file. This to avoid 2 libraries in this
directory.
1984-12-20 14:13:48 +00:00
keie 37d01caabd 1 - signal did not clear the stack properly.
2 - lseek did not return correct.
1984-12-18 17:12:12 +00:00
keie 7b39ce2cfa Traps now work as documented. 1984-12-18 17:11:35 +00:00
keie 53a88ccd69 1 - Human readable profile and count.
2 - Length of last table is now 64.
1984-12-18 17:09:36 +00:00
keie 2d4614ca5a Profile, count, flow in non-local goto corrected. 1984-12-18 17:08:54 +00:00
keie 246f45c867 1 - Improved line number updating when returning from library routines.
2 - Line 234, 0xD must be #0x1C, crashed at error handling for
    incorrect return size.
1984-12-18 17:07:23 +00:00
keie b544d3b401 Replaced clr by the faster mov #0, (for d registers). 1984-12-18 17:06:36 +00:00
keie 5f41dcd958 1 - Indexed addressing mode gave unwanted sign extends.
They are replaced by additions.
2 - Added pointer checks.
3 - Completed parametrization of addresses of locals.

1984-12-18 17:04:24 +00:00
keie 9ea83d0838 Finishing profile tables. 1984-12-18 16:59:51 +00:00
keie 45e2eea414 1 - length of last table
2 - human readable profile and count output.
1984-12-18 16:58:30 +00:00
keie 8b60227186 Added pointer checks. 1984-12-18 16:58:11 +00:00
keie f0a6c2fbcf Altered 1980 in 1984. 1984-12-18 16:57:56 +00:00
keie eb15231cf4 Don't rely on cpp to be in the $PATH, call it from em/lib. 1984-12-18 13:12:30 +00:00
keie cf947cedd3 Added Ack distribution Makefile names. 1984-12-18 13:12:03 +00:00
keie 3b3d3f16b4 Adapted to new library. 1984-12-17 11:21:11 +00:00
keie 4f071008c8 *** empty log message *** 1984-12-17 11:11:37 +00:00
keie d77b2081c0 Now using LIST. 1984-12-17 11:06:48 +00:00
keie b097fe72a7 *** empty log message *** 1984-12-17 11:03:13 +00:00
keie 66d68121c8 Added F_DUM(Author of change-- Henry Bal). 1984-12-17 10:45:27 +00:00
keie 5060a9fcd6 *** empty log message *** 1984-12-17 10:44:08 +00:00
bal 523457f6ee Initial revision 1984-12-14 15:57:39 +00:00
bal 6babe9fccd Initial revision 1984-12-14 15:52:15 +00:00
bal ad815f1061 Initial revision 1984-12-14 15:41:14 +00:00
keie aa0f76a6cd Removed entries for pmds. 1984-12-14 13:45:42 +00:00
keie 0b9b183085 *** empty log message *** 1984-12-08 00:50:27 +00:00
keie 4cc2986757 This makefile was copied from ../../m68k2/dl.
The now irrelevant entries are removed.
1984-12-08 00:45:55 +00:00
keie 9f850cbb2d Comparing shouldn't stop when one compare fails. 1984-12-08 00:40:04 +00:00
keie 24204bca9f Added entries for pr and opr. 1984-12-08 00:28:16 +00:00
keie 1e651a534a Adapted to new install + compare, added anties for cmp, clean, opr and pr. 1984-12-08 00:17:39 +00:00
keie 1b210a8104 *** empty log message *** 1984-12-07 17:32:33 +00:00
keie a0f184e3d1 Improved "make pr". 1984-12-07 17:14:43 +00:00
keie 9b6c26ad14 An efficiency change only. 1984-12-07 16:52:09 +00:00
keie 89a757d6f9 Added cmp entry. 1984-12-07 16:45:26 +00:00
keie 518e817345 This one works, the previous one didn't. 1984-12-07 16:42:59 +00:00
keie f9fa5df654 install now allows a source and destination name. 1984-12-07 16:38:13 +00:00
keie 9e4b9fddab Now use prototype makefile from ../../proto. 1984-12-07 15:22:22 +00:00
keie af75a28622 Changed access path of em h directory. 1984-12-07 14:01:33 +00:00
keie c744b44b48 Changed access path of en h directory. 1984-12-07 14:01:11 +00:00
keie 80d4c7ca2f Initial revision 1984-12-07 13:41:58 +00:00
keie c2d3d6ce4a Initial revision 1984-12-07 10:42:27 +00:00
keie 695a914eb3 Added tail_m and tail_ln. 1984-12-04 13:31:03 +00:00
sater 0a00b80726 Added support for the fmt_id and fmt_ilb macros 1984-11-26 10:50:46 +00:00
sater 6a4dc794a2 In the RREMOVE section of this file, the field e_con of the
expression union was used in stead of e_reg.
Fixed. Checked all other occurrances, are correct.
1984-11-20 16:56:26 +00:00
sater 7c07f91e1c The constant 512 slipped in instead of BUFSIZ.
Changed.
1984-11-20 10:22:12 +00:00
bal d07b17ca5c The routine con_float now generates a dummy floating point constant
and gives a warning, instead of generating a fatal error + abort.
1984-11-06 12:50:21 +00:00
bal 58c679c94c Patterns for floating point instruction and for LFR 8 and RET 8 added.
Each such instruction now results in a call to a library routine.
At present, all these routines generate an Illegal EM Instruction trap,
but anyone wishing to implement floating point for the 6502 can
do so without changing the back end table.
1984-11-06 12:47:26 +00:00
em e2e78ccd0a The line with the user message for failure missed the call to echo. 1984-11-06 10:02:25 +00:00
bal 0d5a4693a7 make install also make a tail_mon now. 1984-11-05 15:58:11 +00:00
keie b6cfa32faa *** empty log message *** 1984-11-05 15:11:19 +00:00
bal b9ebdc1a07 em_head renamed head_em; em_tail renamed tail_em
installs tail_em rather than comparing it
1984-11-05 15:06:49 +00:00
em 3e7b7990f2 *** empty log message *** 1984-11-05 12:05:46 +00:00
em 9c66801439 *** empty log message *** 1984-11-05 11:55:15 +00:00
keie 2976b590af The flag -LIB was missing in the call to the shell-procedure
compmodule. Thus the generated libraries could not be effectively
used by our assembler/linker.
1984-11-05 11:37:23 +00:00
bal a837112d99 Negation of negative operand with inc/dec added in certain cases.
Don't know effect for sure, author has left.
Added rcsid.
1984-11-02 11:09:46 +00:00
bal 13685d4bc0 Initial revision 1984-11-02 10:13:29 +00:00
keie fedaa3267a Adapted to make use of ../../compare and ../../install. 1984-10-26 12:58:15 +00:00
keie 3d4feae541 Initial revision 1984-10-26 12:54:35 +00:00
keie 88b487cd7b Adapted to make use of ../../compare and ../../install. 1984-10-26 11:48:51 +00:00
keie 90a899316e Initial revision 1984-10-26 11:48:13 +00:00
keie 08632dc7bd *** empty log message *** 1984-10-26 11:47:56 +00:00
keie ae27a86236 Adapted to make use of ../../compare and ../../install. 1984-10-26 11:04:10 +00:00
keie fd0066f3a6 *** empty log message *** 1984-10-26 11:01:40 +00:00
keie 1092994a09 Initial revision 1984-10-26 11:00:08 +00:00
keie 9d8dd3f989 Adapted to use ../../install and ../../compare and hide knowledge
about final destination of libraries.
1984-10-26 10:25:32 +00:00
keie fd23647c1c Adapted to make use of ../../compare. 1984-10-26 10:21:18 +00:00
keie 4724e96474 Adapted to make use of ../../install and ../../compare. 1984-10-26 10:20:29 +00:00
keie 8df0cf17d6 Initial revision 1984-10-26 10:20:28 +00:00
keie 37730ff9ca *** empty log message *** 1984-10-26 10:19:56 +00:00
keie a1e7cc26f4 *** empty log message *** 1984-10-26 10:12:57 +00:00
keie 137fa9ebce Adapted to use install in ../.. 1984-10-25 14:28:56 +00:00
keie 0cacc96ed8 Now using the compare script in ../.. 1984-10-25 14:28:19 +00:00
keie 4a20e17a9b Initial revision 1984-10-25 14:28:18 +00:00
keie 3bfc57ecd0 *** empty log message *** 1984-10-25 14:24:43 +00:00
keie 86d96452a3 Altered the installation procedure.
The libraries etc. are now installed in lib/m68k2 using install in ../..
1984-10-25 14:22:53 +00:00
keie e88028dcb9 Altered to make use of ../../install and ../../compare. 1984-10-25 14:19:58 +00:00
keie 1e1fc36653 Initial revision 1984-10-25 14:19:57 +00:00
keie cdebe97db8 *** empty log message *** 1984-10-25 14:15:27 +00:00
keie 08545984f4 Now making use of ../../install and ../../compare. 1984-10-25 14:10:00 +00:00
keie b8e156100f Adapted to make use of compare in ../.. 1984-10-25 11:40:16 +00:00
keie 9109aaaada Adapted to make use of install and compare in ../.. 1984-10-25 11:39:39 +00:00
keie b51fa518be *** empty log message *** 1984-10-25 11:39:38 +00:00
keie c2b1975015 Adapted to make use of install and compare in ../.. 1984-10-25 11:27:08 +00:00
keie ca89e47aa4 *** empty log message *** 1984-10-25 11:25:22 +00:00
keie 26ba8cc8fd Removed the definition of LIBDIR, it is superfluous. 1984-10-25 11:16:31 +00:00
keie c94c590501 Adapted to make use of install and compare in ../.. 1984-10-25 11:16:30 +00:00
keie 38a943d27a Initial revision 1984-10-25 11:15:20 +00:00
keie a72cc54578 Adapted to use compare in ../.. 1984-10-25 10:46:32 +00:00
keie 9b6418c324 Adapted to compare in ../.. 1984-10-25 10:45:22 +00:00
keie e03e8c7607 Initial revision 1984-10-25 10:45:21 +00:00
keie 2cb8aae438 *** empty log message *** 1984-10-23 15:29:53 +00:00
keie 533d2bb940 Initial revision 1984-10-23 15:29:30 +00:00
keie 828b4d62c9 We have only one copy of the script for compare and install now
they are present in ../..
1984-10-23 15:14:17 +00:00
sater 7e31dee840 changed EM_WSIZE to TEM_WSIZE 1984-10-23 15:10:15 +00:00
sater a4a5fc4bfa changed references to EM_?SIZE to TEM_?SIZE 1984-10-23 15:04:24 +00:00
sater 62f42d18f7 changed EM_WSIZE to TEM_WSIZE 1984-10-23 15:02:03 +00:00
sater 79ea4bdea3 Changed to use -h flag to cgg and better way of preserving old tables.h
if not changed. Nice huh, Andy?
1984-10-23 13:29:41 +00:00
sater ab0db1c5fb added rcsid(again). Who took that away? 1984-10-16 13:45:16 +00:00
sater 5d5a09a5d0 added code to generate code for ACK assembler.
Works if ACK_ASS is defined.
1984-10-16 13:31:44 +00:00
em 94e069fde1 Initial revision 1984-10-09 10:36:29 +00:00
keie 6cbb37051b Initial revision 1984-10-08 14:11:42 +00:00
keie 550d1fa79e New installation procedure:
1 - New place for binaries and libraries in the ACK tree.
2 - The ranlib action is moved to ../../install which tries it at
    every action.
1984-10-08 14:09:28 +00:00
bal 46dc90f366 bug fixed: generate "add.l #65536,a1" rather than "lea 65536(a1),a1".
The latter form is only generated for constants that fit in a word.
1984-10-08 12:45:38 +00:00
sater 13d6e6815e added missing cast at call to regsave, in ms_gto case 1984-10-02 11:17:57 +00:00
sater 92aecb175c changed definition of myalloc to extern 1984-10-02 10:31:06 +00:00
sater a3f62d0255 added external definition for myalloc() 1984-10-02 10:30:44 +00:00
bal ebed9d4804 unlk a6 added to restr(). 1984-09-11 15:44:14 +00:00
keie 4c265a7cc6 Initial revision 1984-09-03 13:49:40 +00:00
sater 2bf16c5b2f Variable nregvars had a name clash with the array nregvar[] in the
file tables.c. That was different in the 8'th character (!"#$%&'()_).
These variables should actually be static.
1984-08-23 17:07:53 +00:00
sater 5689e6ab64 Increased the amount of information passed through error routines
to printf. The routine badassert, running on a 2/4 machine lost it's
last argument on the way.
Anyone know of a better way to solve this problem?
1984-08-17 15:35:28 +00:00
sater ce098c78cb added patterns to prevent stacking in *p++ cases 1984-08-15 16:05:54 +00:00
sater e682a47599 added patterns for inc/dec/adp of local and external offsetted
This makes the getc() macro from C very efficient, among others
1984-08-15 14:31:54 +00:00
sater e41876f32a reworked patterns for autoincrement stores, now that peephole optimizer
rearranged it.
1984-08-07 10:22:49 +00:00
sater 6f8e6faa1f added setcc calls to some incrementing ops
added patterns for indirect local and external increments
added patterns for loe ine and such
1984-08-03 16:33:40 +00:00
sater ff9d23e4ec A move from a nonreg to a reg did not have the effect that all
registers clashing with the destination were erased. Erase added.
1984-08-02 16:31:25 +00:00
bal 6e519cf02b bug fixed: added "fprintf(codefile,""rts\n");" to restr() 1984-07-30 12:47:54 +00:00
bal f2e52892ac bugs fixed (syntax errors, patterns moved to front,
"ldl ldl adp sdl sti" requires DATAREG instead of ANY1 on
fakestack)
1984-07-30 11:16:41 +00:00
bal 233b4aeee4 patterns added to generate autoincrement and to generate
a "move X,d0" instead of a "move X,-(sp)" before storing into X
1984-07-27 16:53:19 +00:00
sater 0b07016f0b added PR* routines 1984-07-26 13:15:21 +00:00
sater 5894adfd67 Changed procedure prolog to use PR* routines. 1984-07-26 13:05:22 +00:00
keie 14a3683f85 *** empty log message *** 1984-07-23 11:49:00 +00:00
sater eebc753306 removed all calls to blm~ from table
duplicated some patterns for in[lc] to deal with de[lc]
extra rule for adi 2 to deal with source1 cleverly
1984-07-23 11:29:59 +00:00
sater 978dd0191a removed blm.s, not used by table anymore 1984-07-20 16:20:54 +00:00
sater 5b20e4fed2 edited to make reentrant, no more globals in use 1984-07-20 16:20:28 +00:00
sater eb823929a1 A sti 8 of a regdef8 token went into panic mode. Fixed. 1984-07-20 10:32:48 +00:00
sater ef248ee65e to check long >= 0 or long < 0 it is enough to test high order word. Added.
anding and oring of long constants is much better now
dvu 2 and rmu 2 by positive constants is now done inline.
1984-07-19 16:50:27 +00:00
sater e20ab23a4b added rcsid 1984-07-19 15:03:30 +00:00
sater 5fb767966b Initial revision 1984-07-19 15:01:43 +00:00
sater 15e9fd8cd5 removed #ifdef UNTESTED around logical instructions without arguments,
seems they were used ( which implicitly means tested ) after all
1984-07-19 14:03:49 +00:00
sater 73d8f05fb5 Initial revision 1984-07-19 13:52:18 +00:00
sater 3ca5d2fcb6 added rcsid 1984-07-19 13:34:12 +00:00
sater b95f4c8bfd Initial revision 1984-07-19 13:20:15 +00:00
sater 801226a45c old code put back, now register handling is different again
actually old code never was removed, due to a misunderstanding
about comment conventions.
1984-07-19 13:12:03 +00:00
sater f16fdf4e7f makefile adapted to new style archive handling, RCS and all that 1984-07-19 13:11:36 +00:00
sater d082a2b0a2 a setl instruction was changed to a setd
setl was just plain wrong
1984-07-19 13:09:53 +00:00
sater d5aa088876 Initial revision 1984-07-19 12:51:00 +00:00
bal 8defe7ce53 rcsid added 1984-07-19 11:50:29 +00:00
bal 69584eb0ca Initial revision 1984-07-19 11:50:28 +00:00
bal da4092cbdf New implementation of GTO (without register save masks)
several optimizations added
1984-07-19 11:15:28 +00:00
bal c1fd560106 New implementation of GTO (without register save masks) 1984-07-19 11:07:15 +00:00
bal 17caf7129e rcsid added
several optimizations added
1984-07-19 11:02:06 +00:00
bal a520ccdbbc rcsid added
clr.w -(sp) generated in prolog if register save mask is 0
1984-07-19 10:57:19 +00:00
bal eeeff10a51 Initial revision 1984-07-19 10:03:10 +00:00
bal c75693c35a Initial revision 1984-07-19 09:37:24 +00:00
sater e1aef765a0 added patterns for ldc adi/ldc sbi with zero high order word
added patterns for *--p with p register
added patterns to generate cmpb to compare two bytes.
added patterns to use regvar to index global array
added patterns for lol inl
added patterns for external pointer increment/decrement
1984-07-18 16:47:24 +00:00
sater ec992b001c added definition of index, to keep compiler happy 1984-07-18 14:14:46 +00:00
sater 8304ce5eae removed recursive comments
removed NC with sti rules
added rule to reverse operands of adi 2
added rule to convert loc sbi to loc adi
added loc slu -> loc sli rule
added local++ rule
added rule for asping xsource2
added rule for csb when nothing on stack
1984-07-18 13:39:24 +00:00
sater 8af636a3c1 added rcsid
changed instruction label format to allow more than 256 procedures
1984-07-18 13:32:11 +00:00
sater 3169067979 changed instruction label format to allow more than 256 procedures 1984-07-18 13:28:01 +00:00
sater a241500a91 added rcsid
converted to recognize and generate new 0%o format
1984-07-18 13:14:18 +00:00
sater e2f49f412d added special patterns for:
1) long compared to constant ( ldc cms 4 zxx )
2) long increments ( ld? ldc adi 4 sd? )
3) autoincrement loads and stores ( lol lol adp stl loi/sti )
1984-07-16 14:39:21 +00:00
sater 267955e114 added missing #endif
added two patterns, big improvement
added patterns for ciu and cui
some cosmetic change
1984-07-13 16:13:56 +00:00
sater da8966a6c8 Removed some patterns that have never been tested.
Now if someone uses them he will hear that it doesn't work.
That must be better then giving him code that probably won't work.
All these patterns had to do with things like adf without an argument
and things like that.
1984-07-13 14:55:37 +00:00
sater caa918f7d9 Initial revision 1984-07-13 11:25:46 +00:00
sater 28960f5d32 Initial revision 1984-07-13 11:12:23 +00:00
sater 3e78acff56 removed REGPATCH define 1984-07-12 11:03:18 +00:00
sater e3acc1a9ed added definition of newplb()
removed a tab from some string
1984-07-12 11:02:44 +00:00
sater 4558cb8836 Replaced call to newilb after pro pseudo to call to newplb,
including retrofit for existing mach.h files
1984-07-12 09:26:24 +00:00
sater 25eef41c3a Initial revision 1984-06-25 16:22:03 +00:00
sater 2ef7ee3efc Initial revision 1984-06-25 11:02:34 +00:00
sater 2d4de6d34e added rcsid
Some constants had survived in the text. They were parametrized.
1984-05-19 12:52:25 +00:00
sater f39171e3c4 added rcsid 1984-05-19 12:52:21 +00:00
sater c58492b45b Initial revision 1984-05-19 12:48:59 +00:00
sater 7d75cf2799 Reworked to work, I think 1984-05-19 12:44:53 +00:00
sater c4826294dc added rcsid
Tried to make machine independent,
machine independent sources now taken from ../../proto/cg
Changed according to suggestion from ceriel to prevent running cgg twice
1984-05-19 12:03:22 +00:00
sater ceeeca40f6 added code to save all registers for ms_gto
changed place of #ifdef to make this null-module compile faster
when no register variables are used.
1984-05-19 11:49:37 +00:00
sater 0cd7d8826e erase(reg) now also erases all register whose contents depend on
the contents of reg.
1984-05-19 11:49:01 +00:00
sater 9dfcd76f4b added code to recognize ms_gto 1984-05-19 11:48:40 +00:00
sater 54e681c6cc added rcsid 1984-05-19 11:42:19 +00:00
sater 445ee4ccb8 added rcsid
added code to check for write errors on codefile
1984-05-19 11:40:08 +00:00
sater f792cb549e added rcsid
removed sign extension bug in large constants
1984-05-19 11:38:48 +00:00
sater 65e35e6d53 added rcsid
added code to insure instructions come out in .text space
1984-05-19 11:38:15 +00:00
sater 18e0859e5d Initial revision 1984-05-19 11:08:27 +00:00
sater 5eeba1c1e0 Initial revision 1984-05-18 21:27:39 +00:00