Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Watcom 1.9 stack corruption after return from function (Developers)

posted by bencollver Homepage, 05.07.2026, 05:09

> No, that's right, as the retf 0x0c pops the six pushes of the arguments
> (other functions don't have as many arguments, so they're wholly passed in
> registers). If you're getting stack corruption, it's not because of that.

Thanks for the hint, i think it will help.

The awka_insertop() declaration in da.c has 6 arguments:

void
awka_insertop(int op, char *cval, char *carg, int minst, char *file, int line)
{


The awka_insertop() prototype in code.c has 5 arguments:

void awka_insertop(int, char *, char *, int, int);

And dump_code() indeed calls it with 5 arguments instead of 6.

I guess it's GIGO and it's on me to fix it.

 

Complete thread:

Back to the forum
Board view  Mix view
23493 Postings in 2218 Threads, 408 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum