Carl-Henrik Skårstedt
931eeac653
Merge branch 'master' of https://github.com/Sakrac/x65
2020-04-01 16:19:55 +02:00
Carl-Henrik Skårstedt
2ad124be98
Added a helper switch to show XREFs/XDEFs before linking
2020-04-01 16:19:48 +02:00
dwsJason
6cb5d7a5b1
PEI: allow both addressing styles $dp, and ($dp)
2020-02-22 16:20:52 -05:00
dwsJason
8ea7e1e9e0
Fix address corruption issue with when code segment is pushed beyond 32kb
2020-02-22 14:04:49 -05:00
Carl-Henrik Skårstedt
5bc8a795fd
Fixed a case where addressing mode got confused because a function with multiple parameters was used as the address
2020-01-21 16:49:20 -08:00
Carl-Henrik Skårstedt
5b1ed6343f
User functions first implementation, added a NOT expression operator
2020-01-15 10:51:02 -08:00
Carl-Henrik Skårstedt
0960541a90
progress user functions
2020-01-14 23:41:34 -08:00
Carl-Henrik Skårstedt
0909b2511a
Starting user defined functions
2020-01-14 18:53:02 -08:00
Carl-Henrik Skårstedt
3ab190868c
Label pools are 32 bit, added sizeof directive for structs, destructor for Symbol Stacks
2020-01-10 20:52:02 -08:00
Carl-Henrik Skårstedt
4395b18492
Implementing Eval Functions, complimented by IFCONST, IFBLANK and IFNBLANK
2020-01-10 14:20:00 -08:00
Carl-Henrik Skårstedt
06b925a4f0
Starting assembler functions
2020-01-09 23:10:55 -08:00
Carl-Henrik Skårstedt
a9347175a9
push/pull symbols and strings with directiv
2020-01-09 16:01:16 -08:00
Carl-Henrik Skårstedt
42c45b0fe9
Fixed scoped labels turning into local labels and expiring when endscope is encountered
2020-01-08 18:59:06 -08:00
Carl-Henrik Skårstedt
40512e1b64
ca65 uses import/export instead of xref/xdef, section export is not available in this case
2020-01-08 17:04:42 -08:00
Carl-Henrik Skårstedt
e192c25b62
fixed IFDEF/IFNDEF, added partial support for CA65 style SCOPE, fixed -endm style macro parsing.
2020-01-08 14:38:29 -08:00
Carl-Henrik Skårstedt
0a31631946
Adding an immediate mode version of BRK since the IRQ will treat it as a two byte instruction
2019-11-03 20:34:02 -08:00
Carl-Henrik Skårstedt
155480f71b
changed PEI to zp instead of zp rel
2019-11-03 20:13:28 -08:00
Carl-Henrik Skårstedt
45085d75c5
Fixed various issues with linking sections, seemingly broke macros in some way but common usage is fine.
2019-10-27 18:09:48 -07:00
Carl-Henrik Skårstedt
d646aecafc
Making sure branch out of range error is propagated in late eval
2019-10-18 00:01:19 -07:00
Carl-Henrik Skårstedt
82de8674a2
Fixed macro issue that defines a label ending with :
2019-10-17 15:53:28 -07:00
Carl-Henrik Skårstedt
e7c928359a
more testing and fixing of partial expressions
2019-10-17 00:16:55 -07:00
Carl-Henrik Skårstedt
326e579a90
debug output for partial late eval, seems ok, can integrate with more testing
2019-10-16 18:33:17 -07:00
Carl-Henrik Skårstedt
ed876e0995
Fixing 16 vs 8 bit immediate load issue (again)
2019-09-20 18:20:30 -07:00
Carl-Henrik Skårstedt
4c1a309c31
removing WDC 65816 specific syntax for non-65816 cpus to maintain code.
2019-09-19 22:06:11 -07:00
Carl-Henrik Skårstedt
ed188ea42b
Fixed 16 bit immediate mode, tweaked unit tests, added |/! as WDC syntax for absolute addressing
2019-09-19 21:07:04 -07:00
Carl-Henrik Skårstedt
1cf3546460
Starting WDC syntax support, adding unit test to repo.
2019-09-19 18:50:30 -07:00
Carl-Henrik Skårstedt
ce950ff513
Fix for bug #1
...
Force absolute addressing failed when presented with a known long address.
2019-09-18 12:16:58 -07:00
Carl-Henrik Skårstedt
df820f689a
Missing addressing mode for lax
2019-09-08 00:27:10 -07:00
Carl-Henrik Skårstedt
6ab15d0c24
Adding a structure to hold one unit of source level debugging
2019-09-06 18:02:18 -07:00
Carl-Henrik Skårstedt
627de5a2bd
Adding 64TASS list/labels output files for no reason.
2019-09-03 17:10:48 -07:00
Carl-Henrik Skårstedt
e4a5d142bf
Fix for -DLabel=value option
2019-03-13 12:08:21 -07:00
Carl-Henrik Skårstedt
09ddc2d9fa
Fixed exporting code to addresses below the stack
2018-10-20 18:33:19 -07:00
Carl-Henrik Skårstedt
e718c5bb8f
Can evaluate characters by single quote '?'
2018-10-15 00:16:44 -07:00
Carl-Henrik Skårstedt
edef768c10
fixing import with file offset
2018-02-20 13:30:32 -08:00
Carl-Henrik Skårstedt
d9fa4e96fe
Fixed a couple of linker related bugs
...
did not have any effect, link directive doesn't do what I expect,
probably need to clean up the linker portion.
2017-09-24 22:36:42 -07:00
Carl-Henrik Skårstedt
ac50b46612
Listing file contains sections including merged sections.
2017-08-06 16:13:11 -07:00
Carl-Henrik Skårstedt
2b52ca29e4
Visual Studio Code colorizing extension, Error includes line number of undefined label reference
...
* PrintError has an optional argument for enclosing file
* Visual Studio Code extension
2017-01-28 13:29:42 -08:00
Carl-Henrik Skårstedt
22f9a730ec
MERGE directive, indexed TEXT, Code Style fixes
...
* Added a directive to control merging of SECTIONs: MERGE
* Added an indexed TEXT format that uses a String Symbol for the
indexing order
* General coding style consitencies
2017-01-08 16:30:30 -08:00
Carl-Henrik Skårstedt
304f74cfb4
Label Pool changes
...
Pool are extended to:
* A pool label can be any size by using POOL <label>.<size> where <size>
is a decimal number
* A pool can define a pool within itself <pool> pool <name> <size> where
<pool> is the name of a pool that would fit another pool and <name> is
the name of the new pool and <size> is the size of the new pool
* pool labels are local if they are preceeded by . or ! or $ or @
* pool labels can be global
2016-12-24 13:23:01 -08:00
Carl-Henrik Skårstedt
1d25e40049
Fixing label pools
...
* label pools don't go out of scope so they can be declared in an
include file and used by the includer file
* label pool labels can be either global or local
* code fixes
* updated struse
* updated binaries
2016-12-23 13:56:57 -08:00
Carl-Henrik Skårstedt
703681baa8
struse.h fixes, warning fixes
2016-05-25 22:44:17 -07:00
Carl-Henrik Skårstedt
c22c238f51
Struse was updated and fixing related issues
2016-05-20 22:48:13 -07:00
Carl-Henrik Skårstedt
c01b19a68c
First column in Merlin mode recognizes scope braces ('{' and '}')
2016-03-17 21:33:39 -07:00
Carl-Henrik Skårstedt
955665c91c
Fix
2016-03-17 00:07:15 -07:00
Carl-Henrik Skårstedt
0186386a58
Merlin macro fix
...
- Does not require merlin macro parameters to be listed after the
keyword MAC
- Updated struse.h
2016-03-17 00:05:36 -07:00
Carl-Henrik Skårstedt
27f768d88a
Context scope cleanup and fix for sequential subtraction in expressions
...
- Should clean up Merlin mode macros a bit
- Fixes a numerical error
2016-03-13 18:16:43 -07:00
Carl-Henrik Skårstedt
476d629041
Fix for local labels accessed crossing over a REPT / LUP
...
- Added a scope increment when entering a block of repeated code so only
the local symbols within the block would be destroyed each iteration
- Switched over to inttypes.h to make code a smidgeon more readable
2016-03-12 11:39:53 -08:00
Carl-Henrik Skårstedt
e15650415b
Updating binaries
2016-03-11 17:55:32 -08:00
Carl-Henrik Skårstedt
794ffa70d2
Adding error handling for flushing local labels
...
- Errors were ignored in a couple of places
2016-03-11 17:08:44 -08:00
Carl-Henrik Skårstedt
7ee229442b
Fix for local labels within rept/LUP and force org with command line argument
...
- Flushing local labels after each rept/LUP source segment so local
labels within won't cross over the segment boundary
- The command line argument -org will force fixed address rather than
suggest a location, which in turn makes the -lst command line more
readable.
2016-03-11 16:58:24 -08:00