You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Leads to an almost immediate stack overflow as soon anything is pushed to the stack. The
pushcx
line triggers the issue. Which is reported as:
Stack overflow SS:SP = 101b:199c
Is this the expected behavior? I'm assuming the example program might make it a bit further, at least getting to main() before exiting, but maybe I'm incorrect.
Since the program wasn't run by the ELKS loader, it possible that something wasn't placed in memory correctly, or some register wasn't set before execution.
@cpiker, I develop on macOS, and running ./blink16 banner ELKS works fine. Are you using 'c' to start the emulation, or some other keystroke? What OS are you running on, exactly? It seems there might be some incompatibilities between host OS systems.
Here is a screenshot of my working ./blink16 banner ELKS just before typing 'c' to continue the emulation:
I also tested with the latest ELKS banner and that works too.
Oh, sorry, maybe this is just pilot error. I started debugging using the s command, I take it that's a bad idea?
I randomly used a Rocky Linux 8 system, since that's the current computer occupying the the comfy desk. I do have a mac I could use, but the keyboard is so infuriating to my ingrained typing patterns that I typically don't mess with it unless I happened to be debugging a MacOS specific problem.
I can move over to an Ubuntu24 compatible system if you'd prefer.
The s)tep command also works fine on my system, so I'm not sure what exactly the problem is. I would suggest trying biink16 on macOS to see if it works there, and if so, then trying on Linux. Perhaps there is a Linux compatibility bug, since I have no Linux system easily available to try running this on. Are you compiling the Linux versions in 64- or 32- bit?
Activity
ghaerr commentedon Feb 3, 2026
Hello @cpiker,
Thanks for reporting this, this is not expected behavior. I will look into this and report back!
ghaerr commentedon Feb 3, 2026
@cpiker, I develop on macOS, and running
./blink16 banner ELKSworks fine. Are you using 'c' to start the emulation, or some other keystroke? What OS are you running on, exactly? It seems there might be some incompatibilities between host OS systems.Here is a screenshot of my working

./blink16 banner ELKSjust before typing 'c' to continue the emulation:I also tested with the latest ELKS
bannerand that works too.cpiker commentedon Feb 3, 2026
Oh, sorry, maybe this is just pilot error. I started debugging using the
scommand, I take it that's a bad idea?I randomly used a Rocky Linux 8 system, since that's the current computer occupying the the comfy desk. I do have a mac I could use, but the keyboard is so infuriating to my ingrained typing patterns that I typically don't mess with it unless I happened to be debugging a MacOS specific problem.
I can move over to an Ubuntu24 compatible system if you'd prefer.
ghaerr commentedon Feb 3, 2026
The s)tep command also works fine on my system, so I'm not sure what exactly the problem is. I would suggest trying biink16 on macOS to see if it works there, and if so, then trying on Linux. Perhaps there is a Linux compatibility bug, since I have no Linux system easily available to try running this on. Are you compiling the Linux versions in 64- or 32- bit?
cpiker commentedon Feb 3, 2026
I just ran:
cd blink16 makeafter checkout and didn't pay attention. It's a 64-bit system of course. Is a 32-bit build assumed?