Skip to content

Commit af17f95

Browse files
committed
Change internal uses of STRING" to C"
1 parent 0eefc73 commit af17f95

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ Words built with ASSEMBLY should not access the return stack.
166166

167167
Example:
168168
```forth
169-
STRING" move r0, "
169+
c" move r0, "
170170
0x10
171-
STRING" \njump next"
171+
c" \njump next"
172172
3 \ we want to compile the 3 items on the stack
173173
ASSEMBLY MY-EXAMPLE
174174
```

pkg/forth/esp32/10_clock.f

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
\ tell rtc timer to update
88
RTC_CNTL_TIME_UPDATE_REG RTC_CNTL_TIME_UPDATE_S 1 1
99
WRITE_RTC_REG.BUILDER >C
10-
STRING" sub r3, r3, 2\n"
11-
STRING" __RTC_CLOCK.0:\n"
10+
C" sub r3, r3, 2\n"
11+
C" __RTC_CLOCK.0:\n"
1212
\ read to see if updated
1313
RTC_CNTL_TIME_UPDATE_REG RTC_CNTL_TIME_VALID_S 1
1414
READ_RTC_REG.BUILDER >C
1515
\ loop if not
16-
STRING" jumpr __RTC_CLOCK.0, 1, lt\n"
16+
C" jumpr __RTC_CLOCK.0, 1, lt\n"
1717
\ read 0..15
1818
RTC_CNTL_TIME0_REG 0 16
1919
READ_RTC_REG.BUILDER >C
2020
\ store result
21-
STRING" st r0, r3, 1\n"
21+
C" st r0, r3, 1\n"
2222
\ read 16..31
2323
RTC_CNTL_TIME0_REG 16 16
2424
READ_RTC_REG.BUILDER >C
2525
\ store result and exit
26-
STRING" st r0, r3, 0"
26+
C" st r0, r3, 0"
2727
5 C> C> C> C> + + + + \ add up the strings and the built instructions
2828
ASSEMBLY RTC_CLOCK \ create RTC_CLOCK
2929
TOKEN_NEXT_SKIP_LOAD LAST SET-ULP-ASM-NEXT

util/pulse_test.f

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
;
1717

1818
\ create the assembly to toggle a pin as fast as possible
19-
string" reg_wr 257, 28, 28, 1\nreg_wr 258, 28, 28, 1\n"
20-
string" __safe_jump:\n"
19+
c" reg_wr 257, 28, 28, 1\nreg_wr 258, 28, 28, 1\n"
20+
c" __safe_jump:\n"
2121
2 \ number of assembly objects to compile
22-
string" reg_wr 257, 28, 28, 1\nreg_wr 258, 28, 28, 1\n"
23-
string" __safe_jump:\n"
22+
c" reg_wr 257, 28, 28, 1\nreg_wr 258, 28, 28, 1\n"
23+
c" __safe_jump:\n"
2424
2 \ number of assembly objects to compile
2525
assembly-both asm-pulse
2626
token_next_skip_load last set-ulp-asm-next

0 commit comments

Comments
 (0)