Commit graph

  • 2c8498cf87 I managed to break the test system... somehow. Fix. David Given 2019-06-17 00:52:09 +0200
  • 402468f6fd Bugfix the CP/M FCB parser, and add a test for it. David Given 2019-06-17 00:41:49 +0200
  • 6531850462 Oops, forgot to turn the other plats on before checking in. David Given 2019-06-17 00:40:01 +0200
  • 97e6d8f66a Update README. David Given 2019-06-16 20:10:13 +0200
  • 2b013c34dc Some byte shaving; lseek returns the offset. David Given 2019-06-16 20:04:07 +0200
  • 01fdfef8c0 Merge from trunk. David Given 2019-06-16 19:50:53 +0200
  • 50dca8b954 First at-least-slightly working version of the CP/M read/write stuff. Not as bad as I expected, but far too big. David Given 2019-06-16 19:04:17 +0200
  • 3131dc9915 Partially working port of stdio to CP/M. I'm not sure this will work; it's getting way too complicated (stdio is horribly subtle). I think I need to rethink things. David Given 2019-06-15 22:22:01 +0200
  • 47660c178a
    Merge pull request #196 from ccodere/carl-ansi-part1 David Given 2019-06-15 22:11:49 +0200
  • 0223069d29 Cleanup of modified code fixing several overflow checking issues. carl 2019-06-16 01:27:49 +0800
  • 3133141a08 Interpreter fixes according to EM testsuit. carl 2019-06-16 01:20:53 +0800
  • 55eb19acf8 * Fix merge conflict issue. carl 2019-06-16 01:19:15 +0800
  • ef246bd8e2 Closes #193 (signed integer shift left does not correctly check overflow in the interpreter when shifting by 0 bits), Closes #192 (integer division overflow is not handled in the interpreter and crashes it) and closes #194 (lar instruction does not accept negative bounds in interpreter when doing array index checking). carl 2019-06-16 00:42:48 +0800
  • 1ec55dfc6e bugfixes to make pascal compiler work. carl 2019-06-15 23:46:18 +0800
  • f2c8e42f95 shift right cannot cause an overflow. carl 2019-06-15 23:45:42 +0800
  • 014c151091 bugfixes to make pascal compiler work. carl 2019-06-15 23:46:18 +0800
  • 9fc3102b4d shift right cannot cause an overflow. carl 2019-06-15 23:45:42 +0800
  • 08b9482ac7 Merge remote-tracking branch 'upstream/default' into default carl 2019-06-15 23:53:35 +0800
  • 1387c8713b Now that printf and scanf contain no FILE*-specific code, we can move them into core (and split them up). David Given 2019-06-15 13:53:20 +0200
  • 9109d7af7f First stage in modularising FILE*. Refactor so that printf/scanf don't rely on FILE* innards; allow plats to replace the entire emulated FILE* system. David Given 2019-06-15 13:07:10 +0200
  • 3798673afe
    Merge pull request #186 from ccodere/carl-ansi-part1 David Given 2019-06-15 12:09:41 +0200
  • 3d877ae3f8
    Merge pull request #195 from davidgiven/dtrg-cpm David Given 2019-06-11 23:38:29 +0200
  • 784fc67596 Alignment issues mean we can't access 16-bit CP/M structure elements directly. David Given 2019-06-11 22:33:25 +0200
  • 0607529df2 Miscellaneous bugfixed and renamings. David Given 2019-06-11 21:33:57 +0200
  • 3fe9a05adc Ignore .vscode directory. David Given 2019-06-11 21:33:23 +0200
  • a804375560 Miscellaneous byte shaving; you can now choose whether or not you want the CCP overwritten or not, and cpm_exit() does the right thing. David Given 2019-06-11 20:32:00 +0200
  • 3feb79ad0c Simplify the .trp API to make it a bit smaller. David Given 2019-06-11 20:02:03 +0200
  • 4e90de00e9 Don't pull in all the trap handlers every time. David Given 2019-06-11 19:47:42 +0200
  • f58d7e7d30 Add missing file. David Given 2019-06-11 19:40:46 +0200
  • 6948e7cbe1 Allow building one plat at a time. David Given 2019-06-11 00:12:10 +0200
  • 48a9c48f56 Generate traps procedurally. For some reason they always keep getting pulled in, though... David Given 2019-06-11 00:12:00 +0200
  • ec2ea1feff Add missing file. David Given 2019-06-10 23:57:43 +0200
  • d0967e683b Extend the CP/M libsys with a full set of (hopefully correct) 2.2 BDOS calls. David Given 2019-06-10 23:54:23 +0200
  • 3f938d651b EM requires 2-alignment in structures, sadly. David Given 2019-06-10 18:33:04 +0200
  • 48480dcae5 Fix a tiny ackbuilder bug where you can't set properties to false. David Given 2019-06-10 16:12:36 +0200
  • b1f6d5d827 ANSI C compilation fixes carl 2019-05-14 23:22:38 +0800
  • 9bb69bbb98 Fix several compiler warnings by adding braces carl 2019-05-14 23:21:19 +0800
  • cb65e6426c Memory overflow bugfix carl 2019-05-14 23:14:59 +0800
  • 53d2894ed1 ANSI C conversion. carl 2019-05-11 01:18:01 +0800
  • 21e15965cc ANSI C conversion and add procedure declarations. carl 2019-05-11 01:17:40 +0800
  • 472654c366 ANSI C conversion and add procedure declarations. carl 2019-05-11 01:17:24 +0800
  • 0301827482 ANSI C conversion. carl 2019-05-11 01:15:51 +0800
  • 970e7da896 Adapt to new object API carl 2019-05-11 01:15:18 +0800
  • 16f89747b1 ANSI C conversion. carl 2019-05-11 01:14:54 +0800
  • fa2859df79 ANSI C conversion. carl 2019-05-11 01:14:01 +0800
  • dfefbcae86 ANSI C conversion. carl 2019-05-11 01:13:43 +0800
  • f9916fb680 Fix call to fwrite with proper parameters. carl 2019-05-11 01:12:48 +0800
  • de45c1036d ANSI C conversion carl 2019-05-11 01:11:54 +0800
  • 708c1ba1b0 ANSI C conversion carl 2019-05-11 01:11:26 +0800
  • e6ba8034f0 ANSI C conversion carl 2019-05-11 01:11:17 +0800
  • cefebdb5db ANSI C conversion carl 2019-05-11 01:11:03 +0800
  • 628dcb3cbf ANSI C conversion carl 2019-05-11 01:10:47 +0800
  • 04cb629159 ANSI C conversion carl 2019-05-11 01:10:12 +0800
  • e8243402be Move to use C structures instead of typedef to align with other ACK compilers and to avoid forward declaration issues with include files. carl 2019-05-11 01:09:03 +0800
  • 72dcbea3c6 Add missing C compiler command line option. carl 2019-05-11 01:07:33 +0800
  • e2d2c11a6e Fix some compiler warnings. carl 2019-05-11 01:07:00 +0800
  • e533626413 - Remove rcsid tag. + ANSI C conversion. carl 2019-05-11 01:06:36 +0800
  • 82fddaab77 Fully working implementation for C compiler front-end. carl 2019-05-11 01:05:34 +0800
  • 7a642d6df3 Fix some groff warnings. adapt mkdispatch to ANSI C. carl 2019-05-11 01:05:02 +0800
  • ccfd8a3e18 rename rd_long/wr_long to rd_int4/wr_int4 for consistency. Align declaration and definition name of parameters and adapt man page accordingly. carl 2019-05-11 01:03:36 +0800
  • bb6540c5f4 Adapt man page with correct prototype information. carl 2019-05-11 01:01:52 +0800
  • 3466e84f46 ANSI C conversion of code, adapt man pages accordingly. Some autodocs added. carl 2019-05-11 01:01:21 +0800
  • 8b290cf68a ANSI C conversion of code, rename some parameters to better names and adapt man page accordingly. carl 2019-05-11 00:57:58 +0800
  • add131b6f9 ANSI C conversion of code, rename some parameters to better names and adapt man page accordingly. carl 2019-05-11 00:56:13 +0800
  • dc269e57d8 ANSI C conversion of code and adapt man page accordingly. carl 2019-05-11 00:53:52 +0800
  • 5bb20bdb9e Add init/free functions and rename parameters. carl 2019-05-11 00:52:40 +0800
  • 7cb2b3de7f Fix syntax mistake in man page. carl 2019-05-11 00:51:42 +0800
  • 2330d35ade * Fix compilation warning. carl 2019-05-11 00:49:10 +0800
  • 8d6cfa7701 Fix possible buffer writer overflow carl 2019-03-31 01:14:49 +0800
  • 715717a4f6 Read beyond buffer bugfix. carl 2019-03-31 00:53:09 +0800
  • 4f2c482416 Buffer overflow memory errors. carl 2019-03-31 00:52:37 +0800
  • 9bc3ffe6ec Buffer overflow memory errors. carl 2019-03-31 00:52:27 +0800
  • 496795f0cf Fix memory overflow error. carl 2019-03-26 00:59:16 +0800
  • a09e40cba3 Fix memory overflow error. carl 2019-03-26 00:58:56 +0800
  • 415ec163a7 Fix tabs. carl 2019-03-26 00:58:36 +0800
  • 7973e87b2f Additional check with NULL or empty string (now same behaviour as POSIX version) carl 2019-03-26 00:58:14 +0800
  • 78899705d5 Bug of fseek and wrong setting of position. carl 2019-03-25 02:20:50 +0800
  • 41fd51eeea Revert change. carl 2019-03-25 01:41:04 +0800
  • efecff78b9 Add function prototypes. carl 2019-03-25 00:14:38 +0800
  • 9979fb37d2 Add function prototypes. carl 2019-03-25 00:14:27 +0800
  • 82cdc096b0 Add function prototypes. carl 2019-03-25 00:14:08 +0800
  • f161a5867d Add function prototypes. carl 2019-03-25 00:13:56 +0800
  • a6120c220e Fix buffer overflow issue. carl 2019-03-25 00:13:42 +0800
  • dcc2be5e8c Add function prototypes. carl 2019-03-25 00:12:21 +0800
  • 5295049b16 Add function prototypes. carl 2019-03-25 00:12:07 +0800
  • 1636b9b52d Add function prototypes. carl 2019-03-25 00:11:55 +0800
  • 180d3388d6 Add function prototypes. carl 2019-03-25 00:11:43 +0800
  • 98c5d1f0ee Add function prototypes. carl 2019-03-25 00:11:31 +0800
  • ef3a6b3cc4 Add function prototypes. carl 2019-03-25 00:11:19 +0800
  • 053c509fc9 Add function prototypes. carl 2019-03-25 00:10:58 +0800
  • 2f84fc92cf Add function prototypes. carl 2019-03-25 00:10:45 +0800
  • 2dd0d0f81b Add function prototypes. carl 2019-03-25 00:10:32 +0800
  • 143da61d13 Add function prototypes. carl 2019-03-25 00:10:20 +0800
  • dac3d0b10c Add function prototypes. carl 2019-03-25 00:10:10 +0800
  • a915b76300 Fix crash upon error. carl 2019-03-25 00:09:42 +0800
  • 98d8505c6e arch.h flag fixing carl 2019-03-25 00:07:43 +0800
  • 8457ec6791 Object module now uses ANSI C I/O carl 2019-03-25 00:07:12 +0800
  • 97cb247b39 Merge remote-tracking branch 'upstream/default' into default carl 2019-03-25 00:04:41 +0800
  • 5ec9de401d * More ANSI C portability fixes. carl 2019-03-24 23:53:13 +0800
  • f7e4fac687 Revert "* Adapt to more ANSI C" carl 2019-03-24 23:39:04 +0800