Permalink
Browse files

reversed cl65 2.16 hack that didnt work. minor cleanup

  • Loading branch information...
datajerk committed Sep 27, 2017
1 parent bc7dfe4 commit b2dfc246aa2a09f6942d02645b6732073cbf9586
Showing with 12 additions and 17 deletions.
  1. +4 −4 Makefile
  2. +5 −0 README.md
  3. +1 −12 asm/Makefile
  4. BIN bin/c2t
  5. BIN bin/c2t-96h
  6. BIN bin/c2t-96h.exe
  7. BIN bin/c2t.exe
  8. +2 −1 c2t.c
@@ -12,16 +12,16 @@ clean: testclean
cd asm; make clean

bin/c2t: c2t.c c2t.h
gcc -Wall -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t c2t.c -lm
gcc -Wall -Wno-strict-aliasing -Wno-misleading-indentation -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t c2t.c -lm

bin/c2t-96h: c2t-96h.c c2t.h
gcc -Wall -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t-96h c2t-96h.c -lm
gcc -Wall -Wno-strict-aliasing -Wno-misleading-indentation -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t-96h c2t-96h.c -lm

bin/c2t.exe: c2t.c c2t.h
$(WIN32GCC) -Wall -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t.exe c2t.c
$(WIN32GCC) -Wall -Wno-strict-aliasing -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t.exe c2t.c

bin/c2t-96h.exe: c2t-96h.c c2t.h
$(WIN32GCC) -Wall -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t-96h.exe c2t-96h.c
$(WIN32GCC) -Wall -Wno-strict-aliasing -Wno-unused-value -Wno-unused-function -I. -O3 -o bin/c2t-96h.exe c2t-96h.c

c2t.h: mon/dos33.boot1.mon mon/dos33.boot2.mon asm/autoload.s asm/diskload2.s asm/diskload3.s asm/diskload8000.s asm/diskload9600.s asm/fastload8000.s asm/fastload9600.s asm/fastloadcd.s asm/inflate.s
./makeheader
@@ -58,6 +58,11 @@ sudo chmod 755 /usr/local/bin/c2t

## Build from Source

Prerequisites:

- `cl65` version 2.13.3 (<https://github.com/mrdudz/cc65-old/blob/master/cc65-sources-2.13.3.tar.bz2>)


```
git clone https://github.com/datajerk/c2t.git
```
@@ -1,9 +1,5 @@
CL = cl65
CL_FLAGS = -t none --listing # --list-bytes 100
#CL_FLAGS = -t apple1 -C apple1-16k.cfg --listing --list-bytes 100
CC = cl65
CC_FLAGS = --static-locals -t apple1 -C apple1-16k.cfg
C2T = c2t
CL_FLAGS = -t none --listing --list-bytes 100

ASRC = $(shell echo *.s)
AOBJ = $(ASRC:%.s=%.o)
@@ -18,10 +14,3 @@ clean:

%: %.s
$(CL) $(CL_FLAGS) $<

%: %.c
$(CC) $(CC_FLAGS) $<

%.mon: %
$(C2T) $< $@

BIN +16.7 KB (110%) bin/c2t
Binary file not shown.
BIN +16.7 KB (110%) bin/c2t-96h
Binary file not shown.
BIN -168 KB bin/c2t-96h.exe
Binary file not shown.
BIN -160 KB bin/c2t.exe
Binary file not shown.
3 c2t.c
@@ -468,7 +468,8 @@ int main(int argc, char **argv)

if(outputtype == MONITOR) {
int i, j, saddr;
unsigned long cmp_len;
// unsigned long cmp_len;
size_t cmp_len;
unsigned char *cmp_data;

for(i=0;i<numseg;i++) {

0 comments on commit b2dfc24

Please sign in to comment.