comp.lang.ada
 help / color / mirror / Atom feed
From: "Hyman Rosen" <hyman.rosen@gmail.com>
Subject: Re: ICFP Programming Contest virtual machine in Ada
Date: 1 Aug 2006 13:33:34 -0700
Date: 2006-08-01T13:33:34-07:00	[thread overview]
Message-ID: <1154464414.687174.209230@75g2000cwc.googlegroups.com> (raw)
In-Reply-To: 87vepcb849.fsf@willow.rfc1149.net

Samuel Tardieu wrote:
> As you can see in the code, I used Stream_IO, which only considers raw
> bytes, so this is not an issue.

I don't know Ada, so pardon me if I'm saying something
obviously wrong. Your code has
    when 10 => Put (Character'Val (Regs (C))); Flush;

Is this Stream_IO or regular text IO? The contest has you
download a binary file called codex.umz. When you register,
you receive a "decompression key". When you run the machine
against codex.umz, it eventually asks you for the key, then it
goes into interactive mode. In that mode, you are asked to enter
'p', and when you do, the machine spits out the "decompressed"
form of the codex using these opcode 10 put operands. This output
needs to be captured and slightly edited to remove a header, and
then the machine needs to be rerun on this output. If your Put is
text and not binary, the output will be garbled, assuming that Ada's
text Put does the usual LF => CR LF mapping.




  reply	other threads:[~2006-08-01 20:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-01  9:59 ICFP Programming Contest virtual machine in Ada Samuel Tardieu
2006-08-01 16:14 ` Hyman Rosen
2006-08-01 18:53   ` Samuel Tardieu
2006-08-01 20:33     ` Hyman Rosen [this message]
2006-08-01 23:29       ` Samuel Tardieu
2006-08-01 20:43 ` Georg Bauhaus
2006-08-01 21:22   ` Alex Buell
2006-08-01 23:28   ` Javier Miranda
2006-08-02  9:13     ` Georg Bauhaus
2006-08-02 10:29       ` Javier Miranda
     [not found]       ` <2BEFF609-48F1-4420-8A24-ECFCB5BAD1E3@iuma.ulpgc.es>
2006-08-02 12:39         ` Javier Miranda
2006-08-02 13:57           ` Georg Bauhaus
2006-08-01 23:47   ` Samuel Tardieu
2006-08-02  5:13   ` Gautier
2006-08-02  9:36     ` Samuel Tardieu
2006-08-02 20:39       ` tmoran
2006-08-03  7:30       ` gautier_niouzes
2006-08-03 13:36         ` Samuel Tardieu
2006-08-03 22:58     ` Keith Thompson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox