diff options
| author | user <user@clank> | 2026-07-17 15:12:11 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-07-17 15:12:11 +0200 |
| commit | f68fc872755189bc287a5f7ca838dbd9f45c8353 (patch) | |
| tree | 4911c8836326d2c8c8431f4bd528a61a5c839f28 /src/kdata.asm | |
| parent | tools: gbhub --daemon + gbjoin - interactive multi-Game-Boy networking (diff) | |
| download | gbos-f68fc872755189bc287a5f7ca838dbd9f45c8353.tar.gz gbos-f68fc872755189bc287a5f7ca838dbd9f45c8353.tar.xz gbos-f68fc872755189bc287a5f7ca838dbd9f45c8353.zip | |
net: pump the network from the console wait (answer pings at the prompt)
A Game Boy sitting at the shell prompt now services the network instead of
being deaf until you run netd: KGetc (the console input wait) pumps net_pump
each poll, so inbound pings are auto-answered while idle. net_pump gained an
in-frame model and routes any non-framed link bytes to a small console-input
ring (con_push/con_pop), so a headless-injected command still reaches the shell
while SLIP frames go to the stack. Removes the old SLIP-skip-in-KGetc hack.
Verified: two Game Boys on the hub, GB0 idle at the prompt (no netd), GB1
`ping 10.0.0.2` -> 4/4 replies, routed GB1->hub->GB0->hub->GB1.
(Separate, pre-existing: gbhub *spawn* mode and windowed gbjoin can drop an idle
link socket - under investigation; daemon mode + headless is solid.)
Diffstat (limited to 'src/kdata.asm')
| -rw-r--r-- | src/kdata.asm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/kdata.asm b/src/kdata.asm index eece708..83ed162 100644 --- a/src/kdata.asm +++ b/src/kdata.asm @@ -56,7 +56,6 @@ wFsPath:: DS 40 ; kernel-side copy of a path argument wFsSlashPtr::DS 2 ; last '/' seen while splitting a path wListDir:: DS 1 ; directory sys_list enumerates wKChar:: DS 1 ; scratch for KPutc -wConInSkip:: DS 1 ; console input: mid-SLIP-frame? (skip net packets) wSleepTarget::DS 1 ; sys_sleep: target in 1/64-second units wSleepAcc:: DS 2 ; sys_sleep: accumulated DIV ticks wSleepLastDiv::DS 1 ; sys_sleep: previous DIV reading |
