Commit Graph

52 Commits

Author SHA1 Message Date
Irmen de Jong
90271d0dcd textelite was okay 2021-01-23 19:01:02 +01:00
Irmen de Jong
5731b876ff textelite save bug found 2021-01-20 01:36:46 +01:00
Irmen de Jong
7277c08fa6 added textio.spc(). assem tweaks. 2021-01-14 22:51:09 +01:00
Irmen de Jong
b4d1d545a8 introduced txt.nl() 2021-01-08 16:56:17 +01:00
Irmen de Jong
3d09d605e1 moved memcopy, memset, memsetw builtin functions to sys.* 2021-01-08 01:09:37 +01:00
Irmen de Jong
58f37513e7 removed all string related builtin functions and moved them to separate routines in new 'string' library module 2021-01-07 20:01:11 +01:00
Irmen de Jong
a40b3134f4 fix clobbering of A when restoring X or Y from stack 2020-12-22 04:52:46 +01:00
Irmen de Jong
928611eb20 Got rid of problematic attempts to save status register after function calls. If you really need it (for instance for if_XX instructions) it's probably better to use a short asmsub wrapper.
For function calls, register saves go via stack (to allow nested saves) for simpler cases, registers are saved in a local variable.
Fixed too agressive removal of sta-lda sequence if the lda is followed by a branching instruction.
Insert missing cmp #0 after functioncall if the value of the A register is needed in a comparison expression (could otherwise test wrong status flag)
2020-12-22 03:35:00 +01:00
Irmen de Jong
d22df22f7d fix examples for cx16 register syntax 2020-12-21 23:45:26 +01:00
Irmen de Jong
510ca042c9 stack tested for most example programs 2020-11-22 18:35:43 +01:00
Irmen de Jong
e1dc283d4b byte comparison jumps now without translateExpression() 2020-11-21 23:31:26 +01:00
Irmen de Jong
2ba6c9ccbe textelite 1.1 finalize load/save, add it to examplesd disk 2020-10-20 21:49:06 +02:00
Irmen de Jong
74b5124a42 removed restriction on array indexer expression again from docs and code... :) 2020-10-18 14:05:26 +02:00
Irmen de Jong
fdd91170dc allow simple binary expressions as array indexing too, but not more 2020-10-17 22:43:35 +02:00
Irmen de Jong
c40ddb061b example adjustments 2020-10-17 21:00:59 +02:00
Irmen de Jong
157484d94b adapted p8 code to restricted array indexing 2020-10-17 19:57:55 +02:00
Irmen de Jong
4d68b508a2 proper error if variable name is the same as its subroutine or block (that would create naming problems in the assembly code) 2020-10-15 20:48:18 +02:00
Irmen de Jong
cd825e386d fix invalid address-of error when taking address of struct variable 2020-10-15 20:14:17 +02:00
Irmen de Jong
8b6eb74c58 refactor 2020-10-14 23:43:38 +02:00
Irmen de Jong
aba437e5a2 diskio load and save use kernel routines for load and save, and don't bother with SEQ files 2020-10-14 22:33:49 +02:00
Irmen de Jong
efe3ed499b starting with load/save in textelite 2020-10-14 02:51:00 +02:00
Irmen de Jong
ebf4b50059 reused existing CallGraph to check for recursion, which is now fixed. It's a warning too now. 2020-10-12 23:04:00 +02:00
Irmen de Jong
07cce3b3fc version 4.5 2020-10-11 21:59:38 +02:00
Irmen de Jong
f2c19afd95 version 4.5 2020-10-11 21:47:41 +02:00
Irmen de Jong
d159e70e1c textelite travel commands 2020-10-11 21:38:25 +02:00
Irmen de Jong
ac693a2541 textelite buy and sell commands 2020-10-11 19:29:18 +02:00
Irmen de Jong
ec9e722927 added conv.str2byte and conv.str2ubyte 2020-10-11 18:36:20 +02:00
Irmen de Jong
4cd5e8c378 textelite 2020-10-11 18:19:09 +02:00
Irmen de Jong
c15fd75df7 asmassignment can now use arbitrary source symbols; optimized byte-word sign extesion with this to not use stack anymore 2020-10-11 15:44:08 +02:00
Irmen de Jong
73524e01a6 really fix byte-word sign extension for function args as expression 2020-10-11 03:07:45 +02:00
Irmen de Jong
9e54e11113 fixed string + string/ string * number 2020-10-11 02:34:04 +02:00
Irmen de Jong
67a2241e32 textelite market start 2020-10-11 00:38:38 +02:00
Irmen de Jong
6f5b645995 textelite market start 2020-10-10 23:24:15 +02:00
Irmen de Jong
216f48b7c1 txtelite 2020-10-10 22:45:03 +02:00
Irmen de Jong
e5ee5be9c5 textelite 2020-10-10 04:42:17 +02:00
Irmen de Jong
d31cf766eb added missing doc picture 2020-10-10 02:51:02 +02:00
Irmen de Jong
56d530ff04 txtelite with input loop 2020-10-10 01:46:19 +02:00
Irmen de Jong
0bbb2240f2 txtelite with input loop 2020-10-10 01:35:46 +02:00
Irmen de Jong
4a9956c4a4 txtelite species and planet naming fix 2020-10-10 01:15:26 +02:00
Irmen de Jong
59c0e6ae32 added some more missing assignment codegens (word * byte etc) 2020-10-09 23:48:33 +02:00
Irmen de Jong
94c30fc21e textelite 2020-10-09 22:47:42 +02:00
Irmen de Jong
85e3c2c5a2 textelite 2020-10-09 22:25:12 +02:00
Irmen de Jong
6ff5470cf1 txtelite 2020-10-09 21:01:06 +02:00
Irmen de Jong
5099525e24 added missing register pair assignments. fixed compiler crashes 2020-10-07 03:43:02 +02:00
Irmen de Jong
2b48828179 examples issues 2020-10-07 01:21:41 +02:00
Irmen de Jong
ad75fcbf7e txtelite 2020-10-05 19:49:13 +02:00
Irmen de Jong
d8fcbb78d3 txtelite goatsoup 2020-10-04 21:53:16 +02:00
Irmen de Jong
3e1185658e txtelite goatsoup 2020-10-04 21:35:37 +02:00
Irmen de Jong
eb86b1270d txtelite 2020-10-04 19:23:36 +02:00
Irmen de Jong
a1f0cc878b correct error message for faulty string variable declarations 2020-10-04 19:13:19 +02:00