<div dir="ltr"><div>If you are looking for C code that generates dvi then the luatex version might be the place to start</div><div><br></div><div>texk/web2c/luatexdir/dvi/dvigen.w</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 16 Jul 2019 at 11:30, Mike Marchywka <<a href="mailto:marchywka@hotmail.com">marchywka@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
I found dviasm and downloaded the source code from ubuntu repo - apparently<br>
it is now a python script bundled with about 1Gb of other tex utilities.<br>
The c code with the same name appears on the internet but may be much<br>
older. I got that as an alternative to the dt2dv related utilities but<br>
they all seem to work on simple test cases. <br>
<br>
I guess my first question is what is the best dvi assembler/dissembler<br>
written in c or c++ or easily converted to it?<br>
<br>
<br>
Also if someone can point me to the dvi generation code in<br>
latex it would help. I have the xdvik code called from<br>
my test program and was debating about altneratives for<br>
testing some modifications. I guess ideally I could write<br>
latex code and compile it into modified dvi<br>
with a modified latex although if that is too involved I can<br>
generate the dvi from my own scripts and worry about the<br>
tex stuff later.<br>
<br>
I was amazed digging into xdvik that the dvi execution code<br>
seems tractable and hoping now the latex code is easy too. <br>
<br>
<br>
<br>
Thanks. <br>
<br>
-- <br>
<br>
mike marchywka<br>
306 charles cox<br>
canton GA 30115<br>
USA, Earth <br>
<a href="mailto:marchywka@hotmail.com" target="_blank">marchywka@hotmail.com</a><br>
404-788-1216<br>
ORCID: 0000-0001-9237-455X<br>
<br>
</blockquote></div>