Deutsch English Français Italiano |
<vppdf8$32jp4$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Mikko <mikko.levanto@iki.fi> Newsgroups: comp.theory Subject: Re: The actual code of HHH Date: Thu, 27 Feb 2025 12:06:32 +0200 Organization: - Lines: 23 Message-ID: <vppdf8$32jp4$1@dont-email.me> References: <f73c3b97590a4d189e33a2cf255ed3337e56d3cf@i2pn2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 27 Feb 2025 11:06:33 +0100 (CET) Injection-Info: dont-email.me; posting-host="e93a1ec835ebc96444b74a3835fd0300"; logging-data="3231524"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18uQX0kTYtgRcJvy5fIvzJJ" User-Agent: Unison/2.2 Cancel-Lock: sha1:8TOGkatF0GdYJaEUidP6hqWklEo= Bytes: 1921 On 2025-02-26 21:52:31 +0000, joes said: > Since there is so much talk around, but not really about it, > let's take a look: > https://github.com/plolcott/x86utm/blob/ > 48b4cbfeb3f486507276a5fc4e9b10875ab24dbf/Halt7.c#L1081 > In line 1137, we compute a flag: > u32 Root = Init_Halts_HH(&Aborted, &execution_trace, &decoded, &code_end, > (u32)P, &master_state, &slave_state, &slave_stack); > In line 918, we find it basically checks for the magic number > **execution_trace==0x90909090. What is this unexplained value? The variable execution_trace is a pointer to a pointer to a 32 bit unsigned int. The function Init_Halts_HH may update the pointer *execution_trace or the number **execution_trace. The special value 0x90909090, when interpreted as a fragment of a program, means four no operation instructions. That many no operation instructions is not used in the compiled code so it can be used as a speial value where otherwise instrunctions generated by the compiler are expected. -- Mikko