Serentty / rusty-dos

A Rust skeleton for an MS-DOS program for IBM compatibles and the PC-98, including some PC-98-specific functionality
141 stars 9 forks source link

Convert to Rust RFC2873 asm syntax as rusty-dos no longer works #8

Closed teknoman117 closed 3 years ago

teknoman117 commented 3 years ago

Rust standardized a new inline assembly syntax June 8th, 2020 to replace the, as you said, cumbersome llvm inline assembly syntax. It's a bit different from the rusty_asm syntax, but it's significantly more readable that llvm asm was. rusty-asm doesn't work on current rust nightly releases (at least as of October 2020), it also doesn't appear to have been updated in a few years.

I've put together this PR to make the conversion and tested it in dosbox. I also tested the code without the video component on a 386EX SBC I have that runs General Software DOS-ROM (late 90's hardware).

see: https://blog.rust-lang.org/inside-rust/2020/06/08/new-inline-asm.html see: https://doc.rust-lang.org/beta/unstable-book/library-features/asm.html

Serentty commented 3 years ago

Great!