0

This is more curiosity than an actual problem but I feel like this belongs here.

My question is: why did Adobe Flash Player store integers in memory shifted by three bits (times eight) from a byte-aligned perspective?

As can bee seen in the following example (30 seconds):

https://i.imgur.com/DlZYLFx.mp4

There is no explanation about this in the SWF format specification (specifically chapter Integer types and byte order).

Gizmo
  • 1,990
  • 1
  • 24
  • 50
  • Are you sure this is generally the case? Maybe it's just how this game's developers chose to store the number. – a3f Sep 25 '17 at 02:13
  • @a3f You mean the developers of all flash games have standarized that they all store the values times eight? :) Sounds impossible. It's not only this game. Also see: http://cheatengine.org/forum/viewtopic.php?t=451442&sid=73fb231bbf76b37139aaa71dd0a741a7 – Gizmo Sep 26 '17 at 13:15
  • Thanks for the link. I don't know, that why I am asking :) – a3f Sep 26 '17 at 13:22
  • Not exactly the same title, but the accepted answer addresses the question here. – a3f Sep 26 '17 at 13:42
  • Ah so the 3 bits are used to describe the type! Good to know. Thanks for the other question/answer. – Gizmo Sep 26 '17 at 15:35

0 Answers0