Skip to content

Commit

Permalink
reversed cl65 2.16 hack that didnt work. minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
datajerk committed Sep 27, 2017
1 parent bc7dfe4 commit b2dfc24
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 17 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
13 changes: 1 addition & 12 deletions asm/Makefile
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -18,10 +14,3 @@ clean:

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

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

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

Binary file modified bin/c2t
Binary file not shown.
Binary file modified bin/c2t-96h
Binary file not shown.
Binary file removed bin/c2t-96h.exe
Binary file not shown.
Binary file removed bin/c2t.exe
Binary file not shown.
3 changes: 2 additions & 1 deletion c2t.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit b2dfc24

Please sign in to comment.