Bob Andrews
b743b1a8c2
Merge pull request #2081 from bbbradsmith/suppress-size-error
...
ca65: Suppress '.size' error for multiply-defined symbols
2023-05-04 00:36:48 +02:00
Bob Andrews
83ff62d5e2
Merge pull request #2078 from bbbradsmith/line-endings
...
ca65 support for three line ending types: \r, \r\n, \n
2023-05-03 21:19:03 +02:00
bbbradsmith
440c91fad9
braces for 1-line if
2023-05-03 14:11:30 -04:00
Brad Smith
4e6b94de5c
braces
2023-05-03 12:19:05 -04:00
bbbradsmith
016008b6df
ca65: Suppress '.size' error for multiply-defined symbols
2023-05-03 11:57:50 -04:00
bbbradsmith
86e3a640d5
Support for three line ending types: \r, \r\n, \n.
...
#1894
2023-05-03 05:03:11 -04:00
bbbradsmith
65f773f5ee
Explicit z: should suppress "Suspicious address expression" warning #194
2023-05-03 01:01:21 -04:00
Bob Andrews
805e98a7aa
Merge pull request #2027 from bbbradsmith/ca65_jmp_abs_wrap_cpu_filter
...
ca65 jmp (abs) wrap warning only applies to 6502, later CPUs do not have this bug
2023-05-02 12:52:03 +02:00
Bob Andrews
08223360d5
Update instr.c
2023-05-02 12:43:50 +02:00
Ola Söder
2a7533268c
Don't use hardcoded paths on Amiga
...
Hardcoded paths don't make sense on AmigaOS, AROS and MorphOS.
2023-04-07 23:44:30 +02:00
bbbradsmith
016b03e356
ca65 jmp (abs) wrap warning only applies to 6502, later CPUs do not have this bug
2023-03-07 17:00:38 -05:00
Bob Andrews
b9cf6266e7
Merge pull request #2010 from bbbradsmith/ca65_brk_optional_signature
...
optional BRK signature on all 6502 CPUs, not just 65816
2023-03-04 13:21:28 +01:00
Bob Andrews
c0559dd931
Merge pull request #2009 from bbbradsmith/ca65_feature_disable
...
ca65: allow .feature to both enable and disable
2023-03-04 13:08:18 +01:00
mvax
c092f57b73
Consistent case for .endmacro in comments, remove trailing spaces
2023-03-02 17:31:55 -05:00
mvax
90d5f41b37
Consistent case for .endmacro in comments
2023-03-02 17:26:05 -05:00
mvax
0b71d1cfff
Fix .endmacro not at the start of the line. Fix last commit
2023-03-01 21:55:14 -05:00
mvax
1c60bc5009
Fix .endmacro not at the start of the line. Fix style, add doc., add tests
2023-03-01 21:47:50 -05:00
mvax
993054c9d3
Fix .endmacro not at the start of the line. .ENDMACRO error with line number of macro definition start
2023-03-01 11:58:42 -05:00
mvax
7d894fbe04
Fix .endmacro not at the start of the line. Fix comment
2023-02-25 13:52:13 -05:00
mvax
4b29615f2b
Fix .endmacro not at the start of the line. Allow empty macro
2023-02-25 13:49:19 -05:00
mvax
0a05f78d47
Fix .endmacro not at the start of the line.
2023-02-25 13:38:02 -05:00
mvax
429e90dffd
Fix .endmacro in a .define in a macro body
2023-02-25 12:42:26 -05:00
mvax
e87325033d
Fix .endmacro in a .define in a macro body
2023-02-25 12:39:36 -05:00
bbbradsmith
3d41a5b516
allow immedite style syntax variation for BRK signature byte
2023-02-25 08:23:47 -05:00
bbbradsmith
cd8fa39066
optional BRK signature on all 6502 CPUs, not just 65816 (also COP)
2023-02-24 22:40:29 -05:00
bbbradsmith
da150aeeac
allow .feature to both enable and disable
2023-02-24 18:00:58 -05:00
Bob Andrews
12fc59351e
Merge branch 'master' into ca65_long_jsr_jmp_rts
2023-02-24 19:25:32 +01:00
Bob Andrews
e105f6049d
Merge pull request #2003 from bbbradsmith/large_align_false_positive_fix
...
supress spurious "large alignment" warnings
2023-02-24 16:32:41 +01:00
Bob Andrews
d810b12c6d
Merge pull request #1998 from bbbradsmith/ca65_local_scope_error_info
...
ca65 improve error for unclosed scopes
2023-02-24 16:24:05 +01:00
bbbradsmith
13f1d37403
suppress spurious "large alignment" warning when the combined alignment is not larger than any of the explictly requested ones
2023-02-21 06:48:46 -05:00
bbbradsmith
ccf3994e3b
ca65 jsr/jmp/rts will not promote to jsl/jml/rtl by default, but can still be enabled with new feature long_jsr_jmp_rts
2023-02-21 04:00:34 -05:00
bbbradsmith
45d0d60349
--warnings-as-errors for ca65 and ld65
2023-02-20 22:24:26 -05:00
bbbradsmith
f1134cc5f1
ca65 improve error for unclosed scopes
...
See: #1779
2023-02-20 20:49:04 -05:00
Rutger van Bergen
2b07204952
Merge branch 'cc65:master' into kim1
2022-09-19 20:03:23 +02:00
mrdudz
253af1ed07
Force 16bit address for absolute-indirect-x-indexed in 65816 mode.
...
should fix issue #1846 (and hopefully not break anything :))
2022-09-03 18:36:40 +02:00
Marco Aurelio da Costa
71a9ed04a2
Revert: Parse file included inside a macro at definition time
...
The reverted change broke too many use cases where users
where expecting the compiler quirky behavior to be the correct
behavior.
A better solution is needed for the quirk which does not break
current usage.
2022-08-07 11:24:47 -03:00
Dave Plummer
799aec23a6
Add KIM-1 Support
2022-06-04 13:00:48 -07:00
mrdudz
b6ffa4af64
Fix endless loop on expanding a recursive macro, fixed issue #1678 , patch by kugelfuhr
2022-05-09 21:26:45 +02:00
rofl0r
d78672a4b4
rename AddSubSearchPathFromWinBin to AddSubSearchPathFromBin
2022-04-28 18:35:05 +00:00
mrdudz
7c7c5af59f
Merge remote-tracking branch 'upstream/master' into constexpr
2022-04-26 16:43:10 +02:00
rofl0r
bf1ef6157c
build: properly quote strings passed as cpp macros
...
until now, the strings intended to be hardcoded into the binary,
such as directory names and build id, were passed unquoted, which
means they're interpreted by the preprocessor as C tokens, rather
than strings, which can result in all sorts of "interesting"
behaviour such as interpreting paths starting with // as C++-style
comment.
this was then worked around using a stringize macro which turned
the tokens into a string (if they happened to be in a compatible
format).
adresses #1726
2022-04-25 16:52:46 +00:00
mrdudz
23831f08de
const value should never have default size, use 32bit instead
2022-04-21 14:50:48 +02:00
mrdudz
a0280d4917
Also handle the case when the non constant side of the AND expression is
...
known to have a smaller size than the constant side of the expression.
2022-04-20 12:53:34 +02:00
mrdudz
f64bf76ae8
special case for evaluating the AND operator, this should fix the problems
...
described in issue #1538
2022-04-20 00:13:34 +02:00
mrdudz
8d0098b818
more descriptive error message
2022-04-20 00:12:03 +02:00
mrdudz
89fcb0d404
typo
2022-04-20 00:11:24 +02:00
mrdudz
3c1bb85b8e
remove dangling spaces
2022-04-17 16:07:09 +02:00
Karri Kaksonen
3266e70de4
Add target atari7800
2022-03-01 06:44:55 +02:00
Jeff Tranter
2bf8be5b3b
Fix some commonly made spelling errors in comments.
2022-02-21 15:44:31 -05:00
Spiro Trikaliotis
364e72921c
ca65: .constructor after .export fails
...
The actor directives (.constructor, .destructor, .interruptor, and .condes)
can't handle a symbol that's already exported.
The relevant code does the checks in the wrong order.
For example, the following correct snippet does not assemble:
.export C
C: .constructor C, 5
The assembler outputs: test.s:2: Error: Address size mismatch for symbol 'C'
Exchanging both lines makes it work.
This fixes #1647 ; the patch is provided by 'kugelfuhr' and taken from there.
2022-02-15 22:03:47 +01:00