Commit Graph

29 Commits

Author SHA1 Message Date
Kelvin Sherlock
6e97295623 rename 2019-09-01 17:47:33 -04:00
Kelvin Sherlock
0789568d06 update usage 2019-09-01 17:20:08 -04:00
Kelvin Sherlock
b602a82cc6 don't exit on first sytnax error. 2019-09-01 16:45:39 -04:00
Kelvin Sherlock
a0dfbd1291 add a : to the line format. 2019-09-01 16:31:10 -04:00
Kelvin Sherlock
2edc3e4dd2 add -c flag to add implicit 0-terminator (c-string) to input strings.
0-terminator is NOT considered part of the length for -l purposes.
2019-09-01 16:30:53 -04:00
Kelvin Sherlock
c6e494622d add readme 2019-09-01 16:29:30 -04:00
Kelvin Sherlock
3eff95d766 longm/longx properties 2019-08-11 01:13:49 -04:00
Kelvin Sherlock
9b1084f9a3 branch with all branch types. 2019-08-11 01:13:13 -04:00
Kelvin Sherlock
33ac5e0a92 more descriptive variable name 2019-08-11 01:11:39 -04:00
Kelvin Sherlock
d46fae7cf0 move long m/x settings to the block 2019-08-11 00:12:10 -04:00
Kelvin Sherlock
d78d9d51dc tweak longa on/off settings 2019-08-10 23:13:23 -04:00
Kelvin Sherlock
11b3f43205 flag_E global bug 2019-08-10 23:13:08 -04:00
Kelvin Sherlock
1cf9788194 empty block check was missing longa on/off 2019-08-10 23:12:51 -04:00
Kelvin Sherlock
f006bf7f73 typo 2019-08-10 21:49:17 -04:00
Kelvin Sherlock
548761d901 use // comments for cpp compatibility. 2019-08-10 20:35:50 -04:00
Kelvin Sherlock
ecd9d0b6ae allow hex numbers 2019-08-10 20:32:47 -04:00
Kelvin Sherlock
1fe3f297e8 -E flag runs pre-processor on input. 2019-08-10 20:32:36 -04:00
Kelvin Sherlock
ee8c65b4c5 add -l flag to include text length in the value. 2019-08-10 18:39:19 -04:00
Kelvin Sherlock
b7198495a9 support c-style escape sequences in the string. 2019-08-10 18:18:37 -04:00
Kelvin Sherlock
0ec7effda9 optimization - don't cmp #0 2019-08-10 17:05:48 -04:00
Kelvin Sherlock
46d711c4ba flag_ci -> flag_i 2019-08-10 17:02:50 -04:00
Kelvin Sherlock
e0e0bce92d add comment about generation time. 2019-08-10 17:01:51 -04:00
Kelvin Sherlock
67805de910 use y register to save character
tay+tya is  4 cycles/2 bytes.
lda (dp),y is 7 cycles/2 bytes
2019-08-09 22:29:31 -04:00
Kelvin Sherlock
f1b2db8e0b add dummy segment, cleanup label cleanup 2019-08-09 21:52:23 -04:00
Kelvin Sherlock
3101873578 only do masking if case-insensitive 2019-08-09 19:08:29 -04:00
Kelvin Sherlock
ea0ad78225 remove old code 2019-08-09 19:08:14 -04:00
Kelvin Sherlock
cb4c2bc541 include full string as comment with return value. 2019-08-09 18:56:58 -04:00
Kelvin Sherlock
07cad750c9 improved lowercase matching algorithm.
only ora #$20 IF the target character is lowercase.  order the comparisons so accumulator can be successively modified.
worst case, 2 loads are needed per word
"##" -> load, no ora
"A#" -> ora $0020
"#A" -> reload, ora #$2000
"AA" -> ora $#2020
2019-08-09 18:52:20 -04:00
Kelvin Sherlock
67a7107142 v2 2019-08-09 18:28:32 -04:00