Commit Graph

12 Commits

Author SHA1 Message Date
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
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
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