Difference between revisions of "Auto Assembler:align"

From Cheat Engine
Jump to navigation Jump to search
 
Line 123: Line 123:
 
* [[Cheat_Engine:Auto Assembler|Auto Assembler]]
 
* [[Cheat_Engine:Auto Assembler|Auto Assembler]]
 
* [[Auto_Assembler:Commands|Auto Assembler Commands]]
 
* [[Auto_Assembler:Commands|Auto Assembler Commands]]
* [http://forum.cheatengine.org/viewtopic.php?p=5735366 forum.cheatengine.org/viewtopic.php?p=5735366]
+
* [http://forum.cheatengine.org/viewtopic.php?p=5735371#5735371 forum.cheatengine.org/viewtopic.php?p=5735366#5735371]

Latest revision as of 00:05, 29 January 2018

Auto Assembler align(AlignByteSize, FillerByte OPTIONAL)

Tells the assembler to align for a given byte size.

Command Parameters[edit]

Parameter Type Description
AlignByteSize string The size in bytes to align with
FillerByte string The byte to use when filling in for align


Examples[edit]

alloc(memTest, 0x400)
registerSymbol(memTest)

memTest:
	nop
	align 2 CC
	nop
	align 4 CC
	nop
	align 8 CC
	nop
	align 10 CC

	nop
	align 2 CC
	nop
	align 4 CC
	nop
	align 8 CC
	nop
	align 10 CC

	nop
	align 2
	nop
	align 4
	nop
	align 8
	nop
	align 10

	nop
	nop
	nop
	nop
	nop
	nop
	nop
	nop
	nop
	nop
	nop
	nop
	nop
	nop
	nop
	nop
Output
memTest       - 90                    - nop 
01720001      - CC                    - int 3 
01720002      - 90                    - nop 
01720003      - CC                    - int 3 
01720004      - 90                    - nop 
01720005      - CC                    - int 3 
01720006      - CC                    - int 3 
01720007      - CC                    - int 3 
01720008      - 90                    - nop 
01720009      - CC                    - int 3 
0172000A      - CC                    - int 3 
0172000B      - CC                    - int 3 
0172000C      - CC                    - int 3 
0172000D      - CC                    - int 3 
0172000E      - CC                    - int 3 
0172000F      - CC                    - int 3 
01720010      - 90                    - nop 
01720011      - CC                    - int 3 
01720012      - 90                    - nop 
01720013      - CC                    - int 3 
01720014      - 90                    - nop 
01720015      - CC                    - int 3 
01720016      - CC                    - int 3 
01720017      - CC                    - int 3 
01720018      - 90                    - nop 
01720019      - CC                    - int 3 
0172001A      - CC                    - int 3 
0172001B      - CC                    - int 3 
0172001C      - CC                    - int 3 
0172001D      - CC                    - int 3 
0172001E      - CC                    - int 3 
0172001F      - CC                    - int 3 
01720020      - 90                    - nop 
01720021      - 00 90 00900000        - add [eax+00009000],dl
01720027      - 00 90 00000000        - add [eax+00000000],dl
0172002D      - 00 00                 - add [eax],al
0172002F      - 00 90 90909090        - add [eax-6F6F6F70],dl
01720035      - 90                    - nop 
01720036      - 90                    - nop 
01720037      - 90                    - nop 
01720038      - 90                    - nop 
01720039      - 90                    - nop 
0172003A      - 90                    - nop 
0172003B      - 90                    - nop 
0172003C      - 90                    - nop 
0172003D      - 90                    - nop 
0172003E      - 90                    - nop 
0172003F      - 90                    - nop 


See also[edit]