<lispmacs[work]>
is there a quick way to clear the data stack, if the clearstack(s) command is not available? reset tos pointer...?
Zarutian_HTC has quit [Remote host closed the connection]
Zarutian_HTC has joined #forth
<MrMobius>
lispmacs[work], DEPTH?
Zarutian_HTC has quit [Remote host closed the connection]
Chobbes has joined #forth
dave0 has joined #forth
dysprosaic has quit [Ping timeout: 265 seconds]
dddddd has quit [Ping timeout: 256 seconds]
dddddd has joined #forth
dddddd has quit [Ping timeout: 256 seconds]
dddddd has joined #forth
dddddd has quit [Ping timeout: 256 seconds]
boru` has joined #forth
boru has quit [Disconnected by services]
boru` is now known as boru
dddddd has joined #forth
<crc>
: clearstack depth 0 ?do drop loop ;
<crc>
should work on ans forths
dysprosaic has joined #forth
dddddd has quit [Ping timeout: 256 seconds]
dysprosaic has quit [Ping timeout: 264 seconds]
dddddd has joined #forth
dysprosaic has joined #forth
dave0 has quit [Quit: dave's not here]
dysprosaic has quit [Ping timeout: 260 seconds]
dysprosaic has joined #forth
dysprosaic has quit [Read error: Connection reset by peer]
dysprosaic has joined #forth
sts-q has quit [Ping timeout: 264 seconds]
dysprosaic has quit [Ping timeout: 256 seconds]
sts-q has joined #forth
dysprosaic has joined #forth
gravicappa has joined #forth
jedb has quit [Ping timeout: 240 seconds]
jedb has joined #forth
dave0 has joined #forth
_whitelogger has joined #forth
crc has quit [Ping timeout: 264 seconds]
crc has joined #forth
phadthai has quit [Ping timeout: 272 seconds]
phadthai has joined #forth
xek_ has joined #forth
gravicappa has quit [Ping timeout: 272 seconds]
gravicappa has joined #forth
X-Scale` has joined #forth
X-Scale has quit [Ping timeout: 260 seconds]
X-Scale` is now known as X-Scale
rpcope- has joined #forth
rpcope has quit [Ping timeout: 260 seconds]
sts-q has quit [Ping timeout: 246 seconds]
sts-q has joined #forth
gravicappa has quit [Ping timeout: 264 seconds]
gravicappa has joined #forth
dysprosaic has quit [Ping timeout: 246 seconds]
<L35M153r4bl35>
lispmacs[work]: IIRC in GForth " [defined] a-name".
X-Scale` has joined #forth
X-Scale has quit [Ping timeout: 272 seconds]
X-Scale` is now known as X-Scale
dysprosaic has joined #forth
jimt[m] has quit [Quit: Bridge terminating on SIGTERM]
siraben has quit [Quit: Bridge terminating on SIGTERM]
patrickg has quit [Quit: Bridge terminating on SIGTERM]
siraben has joined #forth
jimt[m] has joined #forth
patrickg has joined #forth
dysprosaic has quit [Ping timeout: 256 seconds]
dysprosaic has joined #forth
MrMobius has quit [Ping timeout: 240 seconds]
MrMobius has joined #forth
dave0 has quit [Quit: dave's not here]
Vedran has quit [Ping timeout: 272 seconds]
Vedran has joined #forth
dysprosaic has quit [Read error: Connection reset by peer]
dysprosaic has joined #forth
gravicappa has quit [Ping timeout: 264 seconds]
Vedran has quit [Ping timeout: 264 seconds]
<mstevens>
does anyone know any good resources on learning arm assembler (eg for the new raspberry pi pico chip?)
Vedran has joined #forth
<boru>
For a general introduction to the ARM architecture in general, Steve Furber's book is a good start, albeit a bit dated now (doesn't include arm64). After that, ARM's own documentation is a logical next choice, unless you have more details about which version of the ISA you'd like to target specifically.
<boru>
I'm sure there are piles of books written about the raspberry poo, as well everyone and their mother writing blogs and articles about doing stuff with them.
Vedran has quit [Ping timeout: 240 seconds]
<mstevens>
so far nobody seems to have published anything on the assembler side specifically, although I'm sure it'll come.
Vedran has joined #forth
<mstevens>
the poo seems to be cortex m0+
<boru>
Which one? Up to know, they've all been application processors afaik.
<patrickg>
m0 is Thumb1 instruction set with some additions. rather unusual subset compared to most other ARMs
<mstevens>
"RP2040 features a dual-core Arm Cortex-M0+ processor with 264KB internal RAM and support for up to 16MB of off-chip Flash."
<boru>
Ah, so a real microcontroller, then..
<mstevens>
boru: is "ARM System-on-Chip Architecture" the furber book you mean?
<boru>
I was assuming you wanted to learn to program an ARM application processor, as most users who come here do.
<mstevens>
boru: I am in fact also interested in this topic, but I thought this was a way of starting small.
<boru>
Yeah, that's the one. In addition to that, Liu's books I strongly recommend for the cortex-m targets.
<boru>
"The Definitive Guide to the Cortex-M0 and Cortex-M0+ Microcontrollers"
<mstevens>
The reasons I'm asking in here are a) a feeling you guys would tend to know about assembler and b) wondering about doing something with forth with it.
<boru>
It's also thumb 1 _and_ 2, not just thumb 1.
<boru>
Plenty of Forth fans here, also. Myself included.
<mstevens>
well it's #forth, you would expect this.
<boru>
Oh, for some reason I thought I was in ##asm
* boru
kldload coffee.ko
<mstevens>
##asm would be a more logical place to ask this kind of question I admit.
<boru>
FWIW, you'll find an intersection of people who like Forth and know a lot about assembly language for various ISAs there, also.
<boru>
However, those two books, specifically the latter, will set you well on your way to programming the M0+.
<boru>
armv6-m is a somewhat more limited armv7-m, but the former will give you a good foundation for the latter.
<mstevens>
ok a book is on its way to me.
<MrMobius>
mstevens, also check out mecrisp forth which runs on stm32 M0s among other ARMs
<boru>
I'm not sure how much this raspberry pi pico is, but ST's series of STM32 discovery boards cost less than a song these days, and have pretty okay documentation most of the time.
<MrMobius>
hasnt been ported ot pico yet though
<MrMobius>
boru, $4
<boru>
For the chip or the board?
<MrMobius>
board
<boru>
Not bad at all.
<mstevens>
boru: these are like $4. They've published a lot of docs but they seem to be assuming you're working in C at the lowest level.
<mstevens>
Although I am vastly ignorant, this is why I want stuff to read :)
<MrMobius>
mstevens, ya most people dont write asm for ARM unless they have a very specific need. unlike older processors, they are designed to run assembly generated by a compiler not generated by a human
<mstevens>
MrMobius: I want to do it for educational fun,
<MrMobius>
good idea
<boru>
A noble goal.
<mstevens>
we never actually did assembler when I was at uni, I always thought it was a sad gap.
Zarutian_HTC has joined #forth
<mstevens>
The other appeal of the rpi board for me is they put in more ram than dev boards often do.
<mstevens>
It's 264kb when you're often getting 16k or something.
<MrMobius>
true especially for that price point though you can get an stm32 board with 8MB of ram iirc for about $20 if you really need a lot
<mstevens>
And they've got these io state machine things which I'm told are interesting and I hope to learn more about
<boru>
They sure have come a long way. I've owned many desktop computers with less RAM than that.
<mstevens>
boru: I saw an article about someone using the rpi board to emulate a bbc micro and play Exile
<boru>
Heh, neat. I still have my model B.
<boru>
It's not fully functional, but it still boots and will load programs.
<mstevens>
mine died :( I suspect the power supply went pop.
<boru>
Best get out your soldering iron.
<mstevens>
I probably could have recapped it but I wanted the space so I sold it.
<boru>
For shame.
Zarutian_HTC has quit [Remote host closed the connection]
Zarutian_HTC has joined #forth
Zarutian_HTC has quit [Remote host closed the connection]
Vedran has quit [Ping timeout: 264 seconds]
Vedran has joined #forth
Vedran has quit [Ping timeout: 260 seconds]
Vedran has joined #forth
WickedShell has joined #forth
dysprosaic has quit [Remote host closed the connection]
Zarutian_HTC has joined #forth
gravicappa has joined #forth
dysprosaic has joined #forth
Zarutian_HTC has quit [Remote host closed the connection]
dddddd_ has joined #forth
dddddd has quit [Ping timeout: 256 seconds]
Zarutian_HTC has joined #forth
floatcomplex has quit [Ping timeout: 264 seconds]
floatcom1lex has joined #forth
floatcom1lex has quit [Client Quit]
Vedran has quit [Ping timeout: 264 seconds]
Vedran has joined #forth
crc has quit [Read error: Connection reset by peer]
crc has joined #forth
gravicappa has quit [Ping timeout: 240 seconds]
dysprosaic has quit [Ping timeout: 246 seconds]
dysprosaic has joined #forth
xek_ has quit [Ping timeout: 256 seconds]
Vedran has quit [Ping timeout: 264 seconds]
Vedran has joined #forth
Zarutian_HTC has quit [Remote host closed the connection]