1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-02 21:54:47 +00:00
cc65/libsrc
Oliver Schmidt 3c1cd0d867 Added cmdline support to exec().
The starting point is the CALL2051:REM <cmdline> approach. It uses the BASIC input buffer at $200. ProDOS stores the name of the loaded program at $280 (which we want for argv[0]) leaving us with 128 char buffer. If we run the program via exec() we don't need the CALL2051 but only the REM token (which is just one char). So have a maximum cmdline length of 126 (plus a terminating zero).

There's no specification for ProDOS BIN file cmdline parameters so exec() just supports the CALL2051:REM <cmdline> approach. In contrast ProDOS SYS files allow for a 'startup filename'. A ProDOS filename is short than 126 chars so having exec() general cut the cmdline after 126 chars seems reasonable. If the SYS file we exec() allows for less we cut the cmdline further.

Our 'loader.system' SYS file however allows for an unusually 126 char long "startup filename" as it is targeted towards cc65 BIN porgrams with their 126 cmdline length.
2015-04-26 14:09:20 +02:00
..
apple2 Added cmdline support to exec(). 2015-04-26 14:09:20 +02:00
atari Refined the comments in the target start-up files. 2014-08-24 10:10:20 -04:00
atari5200 Refined the comments in the target start-up files. 2014-08-24 10:10:20 -04:00
atmos Added more info to a comment. 2015-01-09 22:19:35 -05:00
c16 Refined the comments in the target start-up files. 2014-08-24 10:10:20 -04:00
c64 Changed literal zeroes of the style "#>0" into the style "#>$0000". 2014-09-10 19:15:07 -04:00
c128 Changed literal zeroes of the style "#>0" into the style "#>$0000". 2014-09-10 19:15:07 -04:00
cbm Improved some multiplication code. 2014-07-17 07:11:14 -04:00
cbm510 Changed literal zeroes of the style "#>0" into the style "#>$0000". 2014-09-10 19:15:07 -04:00
cbm610 Changed literal zeroes of the style "#>0" into the style "#>$0000". 2014-09-10 19:15:07 -04:00
common Changed literal zeroes of the style "#>0" into the style "#>$0000". 2014-09-10 19:15:07 -04:00
conio Undo accidental rename of wrong scrsize.s file. 2014-11-30 16:00:55 +01:00
dbg Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
em Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
geos-apple Have src/Makefile and libsrc/Make use disjoint work directories. 2014-03-05 23:24:35 +01:00
geos-cbm Create static drivers directly from source files. 2014-06-04 23:50:18 +02:00
geos-common Refined the comments in the target start-up files. 2014-08-24 10:10:20 -04:00
joystick Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
lynx Refined the comments in the target start-up files. 2014-08-24 10:10:20 -04:00
mouse Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
nes Refined the comments in the target start-up files. 2014-08-24 10:10:20 -04:00
osic1p Macro-based implementation of screen layout configuration modules. 2015-03-23 19:02:45 +01:00
pet Refined the comments in the target start-up files. 2014-08-24 10:10:20 -04:00
plus4 Refined the comments in the target start-up files. 2014-08-24 10:10:20 -04:00
runtime Changed literal zeroes of the style "#>0" into the style "#>$0000". 2014-09-10 19:15:07 -04:00
serial Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
sim6502
supervision Refined the comments in the target start-up files. 2014-08-24 10:10:20 -04:00
tgi Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
vic20 Refined the comments in the target start-up files. 2014-08-24 10:10:20 -04:00
zlib Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
Makefile Rename c1p target to osic1p 2015-02-03 22:42:35 +01:00