Skip to content

Commit 097cf10

Browse files
Added some changes (Should work okay on mac now)
1 parent 39f220b commit 097cf10

File tree

34 files changed

+39
-36
lines changed

34 files changed

+39
-36
lines changed

examples/fileio_detect/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* Shared library headers -- depends on which ones you wish to use */
14-
#include <lib/ce/fileioc.h>
14+
#include <libs/fileioc.h>
1515

1616
/* Function prototypes */
1717
void printText(int8_t xpos, int8_t ypos, const char *text);

examples/fileio_factorize/src/main.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
#include <string.h>
1212

1313
/* Shared library headers - depends on which ones you wish to use */
14-
#include <lib/ce/fileioc.h>
14+
#include <libs/fileioc.h>
1515

16-
void prime_factors(unsigned n);
16+
void prime_factors(unsigned int n);
1717

18-
int primes[24];
18+
int primes[512];
1919
int total_primes = 0;
2020

2121
/* Main Function */
@@ -46,8 +46,8 @@ void main(void) {
4646
}
4747

4848
/* Store to an array all the prime numbers */
49-
void prime_factors(unsigned n) {
50-
unsigned div, end;
49+
void prime_factors(unsigned int n) {
50+
unsigned int div, end;
5151

5252
while (!(n % 2)) {
5353
primes[total_primes++] = 2;

examples/fileio_os_vars/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* Shared library headers - depends on which ones you wish to use */
14-
#include <lib/ce/fileioc.h>
14+
#include <libs/fileioc.h>
1515

1616
/* Some function prototypes. Maybe in the future these functions will become a library */
1717
cplx_t Int24sToCplx(int real, int imag);

examples/fileio_read_write/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* Shared library headers -- depends on which ones you wish to use */
14-
#include <lib/ce/fileioc.h>
14+
#include <libs/fileioc.h>
1515

1616
/* Declare some strings and variables */
1717
const char nameAppVar[] = "AppVar";

examples/fileio_tokens/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* Shared library headers -- depends on which ones you wish to use */
14-
#include <lib/ce/fileioc.h>
14+
#include <libs/fileioc.h>
1515

1616
/* Declare some strings and variables */
1717
const char prgmName[] = "ABC";

examples/gfx_buffered_cube/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* Shared libraries */
14-
#include <lib/ce/graphx.h>
14+
#include <libs/graphx.h>
1515

1616
/* Put function prototypes here */
1717
void rotate(void);

examples/gfx_buffering/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* Shared libraries */
14-
#include <lib/ce/graphx.h>
14+
#include <libs/graphx.h>
1515

1616
/*
1717
* This tutorial is meant to be played around with to get a feeling for how buffering works

examples/gfx_char/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* Shared libraries */
14-
#include <lib/ce/graphx.h>
14+
#include <libs/graphx.h>
1515

1616
/* Use some random color as the transparent one */
1717
#define TRANSPARENT_COLOR 10

examples/gfx_clipping/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* Shared libraries */
14-
#include <lib/ce/graphx.h>
14+
#include <libs/graphx.h>
1515

1616
/* Use some random color as the transparent one */
1717
#define TRANSPARENT_COLOR 10

examples/gfx_hello_world/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* Shared libraries */
14-
#include <lib/ce/graphx.h>
14+
#include <libs/graphx.h>
1515

1616
#define FONT_HEIGHT 8
1717

examples/gfx_light_dark/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* Shared libraries */
14-
#include <lib/ce/graphx.h>
14+
#include <libs/graphx.h>
1515

1616
#define color gfx_RGBTo1555(34, 55, 89)
1717

examples/gfx_shapes_shift/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* Shared libraries */
14-
#include <lib/ce/graphx.h>
14+
#include <libs/graphx.h>
1515

1616
/* Place function prototypes here */
1717

examples/gfx_sprite/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* Shared libraries */
14-
#include <lib/ce/graphx.h>
14+
#include <libs/graphx.h>
1515

1616
/* Include the sprite data */
1717
#include "gfx/logo_gfx.h"

examples/gfx_sprite_compress/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <decompress.h>
1515

1616
/* Shared libraries */
17-
#include <lib/ce/graphx.h>
17+
#include <libs/graphx.h>
1818
#include "gfx/all_gfx.h"
1919

2020
/* Put all your code here */

examples/gfx_sprite_rotate/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* Shared libraries */
14-
#include <lib/ce/graphx.h>
14+
#include <libs/graphx.h>
1515
#include "gfx/logo_gfx.h"
1616

1717
/* Defines used below */

examples/gfx_tilemap/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* Shared libraries */
14-
#include <lib/ce/graphx.h>
14+
#include <libs/graphx.h>
1515
#include "gfx/tiles_gfx.h"
1616

1717
/* Tilemap defines */

examples/gfx_tilemap_compress/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <decompress.h>
1515

1616
/* Shared libraries */
17-
#include <lib/ce/graphx.h>
17+
#include <libs/graphx.h>
1818
#include "gfx/tiles_gfx.h"
1919

2020
/* Tilemap defines */

examples/keypad_interrupt/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <intce.h>
1515

1616
/* CE Keypad C Library */
17-
#include <lib/ce/keypadc.h>
17+
#include <libs/keypadc.h>
1818

1919
/* Function prototypes */
2020
void interrupt isr_on(void);

examples/keypad_interrupt2/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <intce.h>
1515

1616
/* CE Keypad C Library */
17-
#include <lib/ce/keypadc.h>
17+
#include <libs/keypadc.h>
1818

1919
/* Function prototypes */
2020
void interrupt isr_on(void);

examples/keypad_multiple_keys/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <string.h>
1212

1313
/* CE Keypad C Library */
14-
#include <lib/ce/keypadc.h>
14+
#include <libs/keypadc.h>
1515

1616
/* Function prototypes */
1717
void printText(int8_t xpos, int8_t ypos, const char *text);

makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ CPDIR = xcopy
1515
else
1616
NATIVEPATH = $(subst \,/,$(1))
1717
WINPATH = $(shell winepath --windows $(1))
18-
RM = rm --force
18+
RM = rm -f
1919
MKDIR = mkdir -p
2020
RMDIR = rm -rf
2121
PREFIX ?= $(HOME)

src/ce/makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ PREFIX ?= C:
1717
else
1818
NATIVEPATH = $(subst \,/,$(1))
1919
WINPATH = $(subst \,\\,$(shell winepath --windows $(1)))
20-
RM = rm --force
20+
RM = rm -f
2121
ASM = $(call NATIVEPATH,wine $(BIN)/ez80asm.exe)
2222
LIB = $(call NATIVEPATH,wine $(BIN)/ez80lib.exe)
2323
CP = cp

src/example_makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ else
4242
NATIVEPATH = $(subst \,/,$(1))
4343
WINPATH = $(subst \,\\,$(shell winepath --windows $(1)))
4444
WINRELPATH = $(subst /,\,$(1))
45-
RM = rm --force
45+
RM = rm -f
4646
CEDEV ?= $(call NATIVEPATH,$(realpath ..\..))
4747
BIN ?= $(call NATIVEPATH,$(CEDEV)/bin)
4848
AS = $(call NATIVEPATH,wine $(BIN)/ez80asm.exe)
@@ -240,7 +240,7 @@ $(BINDIR)/$(TARGET8XP): $(BINDIR)/$(TARGETHEX)
240240

241241
$(BINDIR)/$(TARGETHEX): $(CSTARTUPOBJ) $(LIBHOBJ) $(OBJECTS)
242242
echo C CE SDK Version $(VERSION)
243-
$(LD) $(LDFLAGS) $@ = "$(subst $(space),$(comma),$(strip $(call WINRELPATH,$^) $(LOBJECTS)$(LIBRARIES)))"
243+
$(LD) $(LDFLAGS) $@ = "$(subst $(space),$(comma),$(call WINRELPATH,$^) $(LOBJECTS)$(LIBRARIES))"
244244

245245
#This rule handles conversion of the icon, if it is ever updated
246246
$(OBJDIR)/$(ICON_OBJ): $(ICONPNG)

src/fileioc/makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PREFIX ?= C:
2424
else
2525
NATIVEPATH = $(subst \,/,$(1))
2626
WINPATH = $(subst \,\\,$(shell winepath --windows $(1)))
27-
RM = rm --force
27+
RM = rm -f
2828
MKDIR = mkdir -p
2929
ASM = $(call NATIVEPATH,wine $(BIN)/ez80asm.exe)
3030
LIB = $(call NATIVEPATH,wine $(BIN)/ez80lib.exe)

src/fileioc/relocation_table

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
.dw 132
23
.dw 136
34
.dw 141

src/graphx/makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PREFIX ?= C:
2424
else
2525
NATIVEPATH = $(subst \,/,$(1))
2626
WINPATH = $(subst \,\\,$(shell winepath --windows $(1)))
27-
RM = rm --force
27+
RM = rm -f
2828
MKDIR = mkdir -p
2929
ASM = $(call NATIVEPATH,wine $(BIN)/ez80asm.exe)
3030
LIB = $(call NATIVEPATH,wine $(BIN)/ez80lib.exe)

src/graphx/relocation_table

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
.dw 39
23
.dw 53
34
.dw 61

src/include/relocation.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#define noextname eval(name)
1616

17-
.echo > relocation_table ""
17+
.echo > relocation_table "\n"
1818
.echo > totname " .db 192,\"",noextname,"\",0,"
1919
.echo > asmname " define .",noextname,"_header,space=ram\n define .",noextname,",space=ram\n segment .",noextname,"_header\n .assume adl=1\n db 192,\"",ucname,"\",0,"
2020
.db 192,193

src/keypadc/makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PREFIX ?= C:
2424
else
2525
NATIVEPATH = $(subst \,/,$(1))
2626
WINPATH = $(subst \,\\,$(shell winepath --windows $(1)))
27-
RM = rm --force
27+
RM = rm -f
2828
MKDIR = mkdir -p
2929
ASM = $(call NATIVEPATH,wine $(BIN)/ez80asm.exe)
3030
LIB = $(call NATIVEPATH,wine $(BIN)/ez80lib.exe)

src/keypadc/relocation_table

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src/std/linked/makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ CC = $(call NATIVEPATH,$(BIN)/ez80cc.exe)
1919
else
2020
NATIVEPATH = $(subst \,/,$(1))
2121
WINPATH = $(subst \,\\,$(shell winepath --windows $(1)))
22-
RM = rm --force
22+
RM = rm -f
2323
PREFIX ?= $(HOME)
2424
DEV ?= $(call NATIVEPATH,$(PREFIX)/CEdev)
2525
BIN ?= $(call NATIVEPATH,$(DEV)/bin)

src/std/shared/makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CC = $(call NATIVEPATH,$(BIN)/ez80cc.exe)
1818
else
1919
NATIVEPATH = $(subst \,/,$(1))
2020
WINPATH = $(subst \,\\,$(shell winepath --windows $(1)))
21-
RM = rm --force
21+
RM = rm -f
2222
CEDEV ?= $(HOME)/CEdev
2323
BIN ?= $(CEDEV)/bin
2424
ASM = $(call NATIVEPATH,wine $(BIN)/ez80asm.exe)

src/std/static/makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CC = $(call NATIVEPATH,$(BIN)/ez80cc.exe)
1818
else
1919
NATIVEPATH = $(subst \,/,$(1))
2020
WINPATH = $(subst \,\\,$(shell winepath --windows $(1)))
21-
RM = rm --force
21+
RM = rm -f
2222
CEDEV ?= $(HOME)/CEdev
2323
BIN ?= $(CEDEV)/bin
2424
ASM = $(call NATIVEPATH,wine $(BIN)/ez80asm.exe)

tools/spasm-ng

0 commit comments

Comments
 (0)