spoofer has quit [Quit: Lost terminal]
spoofer has joined #forth
boru` has joined #forth
boru has quit [Disconnected by services]
boru` is now known as boru
jsoft has joined #forth
Zarutian_HTC has joined #forth
Gromboli has quit [Quit: Leaving]
boru` has joined #forth
boru has quit [Disconnected by services]
boru` is now known as boru
hosewiejacke has joined #forth
dave0 has joined #forth
sts-q has quit [Ping timeout: 256 seconds]
sts-q has joined #forth
dave0 has quit [Quit: dave's not here]
hosewiejacke has quit [Ping timeout: 268 seconds]
gravicappa has joined #forth
hosewiejacke has joined #forth
hosewiejacke has quit [Ping timeout: 240 seconds]
hosewiejacke has joined #forth
dave0 has joined #forth
<inode> hosewiejacke: are you using gforth compiled for x86-64?
<hosewiejacke> Yes, it's from the OpenBSD packages.
<inode> ok, i found that the Division by Zero message seems to occur not only for division by zero, but for the error raised by the idiv instruction when the result overflows as boru suggested
<hosewiejacke> I'm just discovered there are snapshots on https://www.complang.tuwien.ac.at/forth/gforth/Snapshots/
<hosewiejacke> Compiling the gforth snapshot from 2020-12-03 seems to require a swig version that has a -forth option. swig 4.0.2 doesn't seem to have this option...
<dave0> inode: the x86 unsigned divide only overflows if the high word of the dividend is greater or equal to the divisor
<dave0> inode: you can check for overflow in advance (rdx:rax / rcx) cmp rdx,rcx ; jae overflow ; div rcx
<dave0> that also catches divide by zero (because if rcx=0, rdx is always >= rcx)
<dave0> don't know about signed divide :-(
<inode> i was going on the operation described in https://www.felixcloutier.com/x86/idiv (probably should be looking at intel's own spec though)
<inode> and some debugging session info @ https://pastebin.com/qvfSwN95
<dave0> inode: oh that looks like it's from the intel spec anyways
<dave0> c is so hard to read when it's in assembly :-p
<inode> heh
<hosewiejacke> Esp. when it's amd64 assembly :)
jsoft has quit [Quit: Leaving]
gravicappa has quit [Ping timeout: 240 seconds]
gravicappa has joined #forth
lispmacs[work] has quit [Ping timeout: 240 seconds]
ggVGc has quit [Quit: WeeChat 1.9.1]
Gromboli has joined #forth
dave0 has quit [Quit: dave's not here]
Zarutian_HTC has quit [Ping timeout: 240 seconds]
Zarutian_HTC has joined #forth
Zarutian_HTC has quit [Remote host closed the connection]
gravicappa has quit [Ping timeout: 240 seconds]
gravicappa has joined #forth
Zarutian_HTC has joined #forth
Zarutian_HTC has quit [Remote host closed the connection]
hosewiejacke has quit [Ping timeout: 256 seconds]
gravicappa has quit [Ping timeout: 260 seconds]
gravicappa has joined #forth
WickedShell has joined #forth
X-Scale` has joined #forth
X-Scale has quit [Ping timeout: 256 seconds]
X-Scale` is now known as X-Scale
lispmacs[work] has joined #forth
jedb has quit [Remote host closed the connection]
dave0 has joined #forth
gravicappa has quit [Ping timeout: 240 seconds]
kieselsteini has joined #forth
kieselsteini has quit [Quit: Palaver https://palaverapp.com]
WickedShell has quit [Remote host closed the connection]
jedb has joined #forth
dave0 has quit [Quit: dave's not here]