Commit eb09548
committed
TinySetPatch: Add backward compatibility for Kickstart 1.x
Save command line arguments (D0=length, A0=pointer) immediately at
program entry before any operations can destroy these registers. This
replaces the use of GetArgStr() which requires dos.library V36+.
Add version checks before calling CacheClearU() in Install060Vectors
and FixVector7Align, as this function requires exec V37+. On older
Kickstart versions, the cache clear is simply skipped.
These changes allow TinySetPatch to run on Kickstart 1.2/1.3 systems,
making it useful for creating bootable system disks targeting older
Amiga configurations.
Changes:
- Save D0/A0 to ArgLength/ArgPointer at Start before register clobber
- Guard CacheClearU calls with LIB_VERSION >= 37 checks
- Rewrite ParseArgs to use saved arguments instead of GetArgStr
- Remove a6 from ParseArgs register save (no longer needed)1 parent ce3542f commit eb09548
1 file changed
+24
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
86 | 93 | | |
87 | 94 | | |
88 | 95 | | |
| |||
603 | 610 | | |
604 | 611 | | |
605 | 612 | | |
606 | | - | |
| 613 | + | |
607 | 614 | | |
| 615 | + | |
| 616 | + | |
608 | 617 | | |
| 618 | + | |
609 | 619 | | |
610 | 620 | | |
611 | 621 | | |
| |||
825 | 835 | | |
826 | 836 | | |
827 | 837 | | |
| 838 | + | |
828 | 839 | | |
| 840 | + | |
| 841 | + | |
829 | 842 | | |
| 843 | + | |
830 | 844 | | |
831 | 845 | | |
832 | 846 | | |
| |||
1047 | 1061 | | |
1048 | 1062 | | |
1049 | 1063 | | |
| 1064 | + | |
1050 | 1065 | | |
1051 | 1066 | | |
1052 | | - | |
| 1067 | + | |
1053 | 1068 | | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
1060 | 1073 | | |
1061 | 1074 | | |
1062 | 1075 | | |
| |||
1109 | 1122 | | |
1110 | 1123 | | |
1111 | 1124 | | |
1112 | | - | |
| 1125 | + | |
1113 | 1126 | | |
1114 | 1127 | | |
1115 | 1128 | | |
| |||
1120 | 1133 | | |
1121 | 1134 | | |
1122 | 1135 | | |
| 1136 | + | |
| 1137 | + | |
1123 | 1138 | | |
1124 | 1139 | | |
1125 | 1140 | | |
| |||
0 commit comments