From dcbe2e002b14eca04962e8acc42af0b3c6fd54d9 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Wed, 1 Aug 2018 19:27:08 +0200
Subject: [PATCH] Enable register variables.
Nowadays register variables are out-of-style. So if they appear in some source code they can be assumed to be explicitly meant for cc65, so don't ignore them.
---
apps/Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/apps/Makefile b/apps/Makefile
index 176ee8e..6362698 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -90,13 +90,13 @@ ATARI_CFG = atari.cfg
ld65 -o $*.com -C $(ATARI_CFG) -m $*.atr.map -vm $< $(IP65LIB) $(ATRDRIVERLIB) atari.lib
%.prg: %.c $(BUILDS)
- cl65 -o $*.prg -O -t c64 $(CL65FLAGS) -m $*.c64.map -vm $(filter-out $(BUILDS),$^) $(IP65LIB) $(C64_DRIVERLIB)
+ cl65 -o $*.prg -Or -t c64 $(CL65FLAGS) -m $*.c64.map -vm $(filter-out $(BUILDS),$^) $(IP65LIB) $(C64_DRIVERLIB)
%.bin: %.c $(BUILDS)
- cl65 -o $*.bin -O -t apple2enh $(CL65FLAGS) -m $*.a2.map -vm $(filter-out $(BUILDS),$^) $(IP65LIB) $(A2_DRIVERLIB)
+ cl65 -o $*.bin -Or -t apple2enh $(CL65FLAGS) -m $*.a2.map -vm $(filter-out $(BUILDS),$^) $(IP65LIB) $(A2_DRIVERLIB)
%.com: %.c $(BUILDS)
- cl65 -o $*.com -O -t atari $(CL65FLAGS) -m $*.atr.map -vm $(filter-out $(BUILDS),$^) $(IP65LIB) $(ATR_DRIVERLIB)
+ cl65 -o $*.com -Or -t atari $(CL65FLAGS) -m $*.atr.map -vm $(filter-out $(BUILDS),$^) $(IP65LIB) $(ATR_DRIVERLIB)
ip65.d64: prg
$(C1541) -format ip65,00 d64 $@