Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

trip report: Tiny C Compiler 0.9.27 (Miscellaneous)

posted by tkchia Homepage, 04.02.2026, 17:55
(edited by tkchia on 04.02.2026, 18:18)

Hello bencollver,

For the first attempt: the instructions at cs:eip disassemble to

000009E9  F367A4            rep a32 movsb
000009EC  F7C700FF          test di,0xff00
000009F0  7503              jnz 0x9f5
000009F2  B00D              mov al,0xd
000009F4  AA                stosb


when interpreted as 16-bit code...

Apparently the rep a32 movsb caused an exception because it was trying to write to es:[0x100], and the upper limit of es was 0xff.

My wild guess is that the command line arguments as seen by tcc were too long, and some part(s) of the runtime (maybe the bootstrapping C library, or maybe HXRT, etc. ...) did not handle over-long command line arguments properly. I suppose it might be useful to see where the above code instructions were coming from...

Thank you!

---
https://codeberg.org/tkchia · https://disroot.org/tkchia · 😴 "MOV AX,0D500H+CMOS_REG_D+NMI"

 

Complete thread:

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