Commit Graph

399 Commits

Author SHA1 Message Date
marcobaye
8169cf6e06 changed 6510 to nmos6502 internally
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@199 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-29 13:04:28 +00:00
marcobaye
8c8f425559 some renaming/cleanup
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@198 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-29 10:57:01 +00:00
marcobaye
2ad075911b enabled !while and new warning about parentheses
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@197 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-28 18:43:49 +00:00
marcobaye
dddf3f3d10 '&' operator (for un-pseudopc-ing) seems to be finished
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@196 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-28 18:40:40 +00:00
marcobaye
636080ce25 started work on '&' operator
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@195 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-27 20:25:42 +00:00
marcobaye
3c9f21cebd fixed date
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@194 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-27 20:06:11 +00:00
marcobaye
a6eae58032 internal cleanup for next change
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@193 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-27 17:32:48 +00:00
marcobaye
78e7c32507 strings now support "+", "=" and "!=" operators
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@192 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-26 12:55:14 +00:00
marcobaye
bc0cd5b8ea "!warn" and friends now support list and string symbols
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@191 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-25 23:12:19 +00:00
marcobaye
98ae73381d updated error messages
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@190 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-24 21:16:50 +00:00
marcobaye
64a4b336b0 small change so associativity of powerof operator can be made configurable later on
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@189 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-24 20:19:19 +00:00
marcobaye
d407faab1c removed old version of !if/else/!ifdef/!ifndef algo.
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@188 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-24 19:52:10 +00:00
marcobaye
486febcef4 tiny refactoring, preparing to get rid of another fn
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@187 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-23 23:38:13 +00:00
marcobaye
0173eaf777 cleanup, now only output.c accesses CPU_state.pc
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@186 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-22 20:55:36 +00:00
marcobaye
dfca72688b support for m65 should be finished now
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@185 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-21 23:46:11 +00:00
marcobaye
8eddb4f4bc started suuport for MEGA65 cpu (not finished yet)
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@184 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-21 19:36:59 +00:00
marcobaye
c1d8f90fae minor refactoring
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@183 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-20 16:39:19 +00:00
marcobaye
f5e7f23311 fix: values of quoted characters with msb set are now positive
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@182 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-19 21:04:57 +00:00
marcobaye
cd09855098 expression parser now knows about lists, strings, indexing and len().
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@181 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-19 20:41:12 +00:00
marcobaye
ba168a3ea5 added backslash escaping (to try it, use --test --test)
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@180 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-19 17:35:04 +00:00
marcobaye
916bf9cbc8 part 4 of 4 of preparations for backslash escaping
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@179 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-19 16:28:36 +00:00
marcobaye
5b0989ac31 minor refactoring, moved a function
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@178 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-19 14:33:51 +00:00
marcobaye
768c80219b part 3 of 4 of preparations for backslash escaping
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@177 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-19 14:16:13 +00:00
marcobaye
101c04e413 more refactoring to prepare for backslash escaping
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@176 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-19 13:04:39 +00:00
marcobaye
beaf86da5b refactored a bit to prepare for backslash escaping
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@175 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-19 11:09:46 +00:00
marcobaye
3448cda3df bugfix: unterminated strings could cause crashes
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@174 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-19 09:41:54 +00:00
marcobaye
2fbbc0324e added comments for next change
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@173 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-18 23:47:15 +00:00
marcobaye
c64ffcfced fix for previous commit
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@172 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-18 22:50:11 +00:00
marcobaye
688c00f31b changed a bool to an enum
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@171 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-18 22:10:01 +00:00
marcobaye
4eb3ffa149 "Garbage data at end of statement" message now includes the unexpected character.
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@170 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-18 21:51:43 +00:00
marcobaye
c07f373b53 added code for indexing (commented out atm)
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@169 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-15 15:33:00 +00:00
marcobaye
665c579470 more work on special operators
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@168 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-15 13:46:17 +00:00
marcobaye
5ba17ccfc4 added error output for "unsupported operation"
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@167 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-15 11:39:00 +00:00
marcobaye
4e0d82ac69 added "len" operator, still disabled
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@166 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-14 17:36:09 +00:00
marcobaye
ccaf576e8a added text fields to operator and type structs (for better error messages later on), also renamed some stuff
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@165 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-14 14:01:30 +00:00
marcobaye
ff11dec18c tiny cleanup
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@164 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-14 10:35:54 +00:00
marcobaye
7c732fca59 renamed stuff
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@163 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-14 10:19:21 +00:00
marcobaye
c055688355 small fix in docs
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@162 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-14 10:04:39 +00:00
marcobaye
a7ec38bff5 changed operator passing from enum to struct ptr, no change in functionality
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@161 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-14 00:04:20 +00:00
marcobaye
fd2ac55392 new priority values, no change in functionality
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@160 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-13 23:53:03 +00:00
marcobaye
365306428b added warnings about binary/octal/hex numbers without any digits, will be error in future! also renamed a function.
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@159 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-13 23:45:03 +00:00
marcobaye
40afd3311a cleaned up expression handler, it's now able to handle more than just ints/floats
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@158 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-13 23:26:40 +00:00
marcobaye
3300c9d468 added some TODO/FIXME comments
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@157 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-13 16:53:52 +00:00
marcobaye
dac11ba8c7 finished ELSE IF functionality. currently needs "--test", will be enabled in next release.
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@156 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-12 15:08:24 +00:00
marcobaye
16fb63deda planned ELSE IF functionality
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@155 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-12 10:51:37 +00:00
marcobaye
20e04e22bc fix for previous commit: do not complain about () inside []
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@154 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-11 12:42:47 +00:00
marcobaye
4c938480fc added warning about parentheses for mnemonics without indirect addressing. currently needs "--test", will be enabled in next release.
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@153 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-11 11:13:06 +00:00
marcobaye
abdea30e33 fixed behaviour of NOT operator concerning type checking: address refs are now negated.
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@152 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-10 22:01:04 +00:00
marcobaye
e908284773 refactored handler function for "float with dyadic operator"
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@151 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-10 21:35:50 +00:00
marcobaye
f7c52d747c split handler function for dyadic operators into int and float functions. refactored int, still need to do float.
git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@150 4df02467-bbd4-4a76-a152-e7ce94205b78
2020-05-10 12:33:41 +00:00