Revision: 45624
http://sourceforge.net/p/vice-emu/code/45624
Author: gpz
Date: 2025-04-05 15:58:18 +0000 (Sat, 05 Apr 2025)
Log Message:
-----------
output a warning when the load address given is 0, eg because of mistyping a hex number without 0x
Modified Paths:
--------------
trunk/vice/src/tools/cartconv/cartconv.c
Modified: trunk/vice/src/tools/cartconv/cartconv.c
===================================================================
--- trunk/vice/src/tools/cartconv/cartconv.c 2025-04-03 01:24:03 UTC (rev 45623)
+++ trunk/vice/src/tools/cartconv/cartconv.c 2025-04-05 15:58:18 UTC (rev 45624)
@@ -1421,6 +1421,9 @@
case 'l':
checkarg(arg);
load_address = (int)strtoul(arg, NULL, 0);
+ if (load_address == 0) {
+ fprintf(stderr, "WARNING: load address is 0, are you sure?\n");
+ }
return 2;
case 's':
checkarg(arg);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|