PMON在编译之后,生成的二进制文件其实也是可以看懂的。
每32位(4个byte)组成一句mips汇编指令,
比如:3c08bf22 lui t0,0xbf22
用UE(或者linux下的hexedit)打开gzrom.bin,可以看到是反着排列的,即为 22 bf 08 3c。
如果想看往一个地址写的数据的话,如下:
二进制文件数据排布如下:红色为地址,蓝色数据为对应数据。
22 BF 08 3C
C0 00 08 35 C8 00 09 24
00 00 09 AD
关于Starling中的MovieClip反向、倒序播放实现
暂时想到的,修改内容最少的方法了
package com.liyunpeng.xxx { import flash.media.Sound; import starling.animation.IAnimatable; import starling.display.MovieClip; import starling.textures.Texture; public class MMovieClip extends MovieClip implements IAnimatable { private var _isReverse:Boolean = false; public function MMovieClip(textures:Vector.<Texture>, fps:Number=12) { super(textures,fps); } public function set isReverse(value:Boolean):void { if(this._isReverse != value) { var numFrames:int = this.numFrames; var mTextures:Vector.<Texture> = new Vector.<Texture>(); var mSounds:Vector.<Sound> = new Vector.<Sound>(); var mDurations:Vector.<Number> = new Vector.<Number>(); for(var i:int=numFrames-1;i>=0;i--) { mTextures.push(this.getFrameTexture(i)); mSounds.push(this.getFrameSound(i)); mDurations.push(this.getFrameDuration(i)); } for(var j:int=0;j<numFrames;j++) { this.setFrameTexture(j,mTextures[j]); } this.currentFrame = numFrames-1 - this.currentFrame; } this._isReverse = value; } public function get isReverse():Boolean { return this._isReverse; } } }
两个UIView之间的翻转可以用动画效果翻转(上下,左右)
UIViewController之间的切换除了UINavigationController里面的pushViewController和 popViewController与UITalbarController在viewControllers之间的切换外, 我们还可以在其他地方自由的进行ViewController切换:
MyViewController *_myViewController = [[MyViewController alloc] init];
_myViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController: _myViewController Animated: YES];
[_myViewController release];
有四种切换形式(modalTransitionStyle):
UIModalTransitionStyleFlipHorizontal
UIModalTransitionStyleCoverVertical (default)
UIModalTransitionStyleCrossDissolve
UIModalTransitionStylePartialCurl
退回方法:[self dismissModalViewControllerAnimated:YES];
与此对应的是播放视频时:
[self presentMediaPlayerViewController:moviePlayer Animated:YES];
[self dismissMediaPlayerViewControllerAnimated:YES];