{"id":208,"date":"2006-02-22T21:01:22","date_gmt":"2006-02-23T05:01:22","guid":{"rendered":"http:\/\/multimedia.cx\/eggs\/?p=208"},"modified":"2006-02-22T23:16:56","modified_gmt":"2006-02-23T07:16:56","slug":"sdl-corruption-corrected","status":"publish","type":"post","link":"https:\/\/multimedia.cx\/eggs\/sdl-corruption-corrected\/","title":{"rendered":"SDL Corruption Corrected"},"content":{"rendered":"<p>When I do presentations on multimedia technology I make the point that data  is more important than code which is to say that understanding data formats is more useful than being able to run binary code. This little exercise is a good illustration of that. Initially, if someone wanted to see the multimedia, they needed access to an original IBM PC to run it as it was originally intended. It is also apparently possible to run it under <a href=\"http:\/\/dosbox.sourceforge.net\">DOSBox<\/a>. In that case you are still running the original binary code to interpret the data. Now along comes this third solution which throws out the original code and just interprets the data with portable, open code.<\/p>\n<p>Download <a href=\"http:\/\/www.oldskool.org\/pc\/8088_Corruption\">Trixter&#8217;s original 8088 Corruption package<\/a> from his site. Download the sdl_corruption.c program and the CGA_FONT.8X8 font file from <a href=\"http:\/\/multimedia.cx\/sdl-corruption\/\">http:\/\/multimedia.cx\/sdl-corruption\/<\/a>. Make sure you have <a href=\"http:\/\/www.libsdl.org\/\">SDL<\/a>. Compilation is straightforward on Unix. At the very least, it works on x86 and AMD64 machines running Linux. You are on your own for other platforms.<\/p>\n<p><center><br \/>\n<img decoding=\"async\" src=\"\/eggs\/images\/corruption-corrected.png\" alt=\"Corrected Eiffel Breakdancer Image\" \/><br \/>\n<em>There, that looks correct, or as correct as it is supposed to look.<\/em><br \/>\n<\/center><\/p>\n<p>I did not bother to add sound output because I was lazy. Hey, I solved the harder problem of rendering the font vectors. I also added a few spiffy features such as allowing the user to seek and pause the video.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Watch the 8088 Corruption video&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-208","post","type-post","status-publish","format-standard","hentry","category-open-source-multimedia"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/comments?post=208"}],"version-history":[{"count":0,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/208\/revisions"}],"wp:attachment":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/media?parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/categories?post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/tags?post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}