Assembly Language for Beginners
1.32. ARM-SPECIFIC DETAILS C term ARM term C statement how it works Post-increment post-indexed addressing ptr++ useptrvalue, th ...
1.32. ARM-SPECIFIC DETAILS MOV R0, 0x12345678 BX LR ARM64 uint64_t f() { return 0x12345678ABCDEF01; }; Listing 1.408: GCC 4.9.1 ...
1.32. ARM-SPECIFIC DETAILS 1.32.4 Relocs in ARM64 As we know, there are 4-byte instructions in ARM64, so it is impossible to wri ...
1.33 MIPS-specific details. 4005ac: d65f03c0 ret Contents of section .rodata: 400640 01000200 00000000 48656c6c 6f210000 ....... ...
1.33. MIPS-SPECIFIC DETAILS Loading a 32-bit global variable into register unsigned int global_var=0x12345678; unsigned int f2() ...
1.33. MIPS-SPECIFIC DETAILS We can see that address ofglobal_varis to be written right intoLUIandLWinstructions during executabl ...
Chapter 2 2 Important fundamentals ...
2.1 Integral datatypes. 2.1 Integral datatypes Integral datatype is a type for a value which can be converted to number. These a ...
2.1. INTEGRAL DATATYPES cmp al,10 sbb al,69h das This obscure code converts number in 0..15 range intoASCIIcharacter ’0’..’9’, ’ ...
2.1. INTEGRAL DATATYPES 2.1.4 Wide char This is an attempt to support multi-lingual environment by extending byte to 16-bit. Mos ...
2.1. INTEGRAL DATATYPES GDBhas the following terminology:halfwordfor 16-bit,wordfor 32-bit andgiant wordfor 64-bit. 16-bit C/C++ ...
2.1. INTEGRAL DATATYPES 2.1.8 Numbers. What are numbers used for? When you see some number(s) altering in a CPU register, you ma ...
2.2. SIGNED NUMBER REPRESENTATIONS ...so 16-bitintis enough for almost everything? It’s interesting to note: in [Michael Abrash, ...
2.2. SIGNED NUMBER REPRESENTATIONS Here is a table for some byte values: binary hexadecimal unsigned signed 01111111 0x7f 127 12 ...
2.2. SIGNED NUMBER REPRESENTATIONS represented as mark on thermometer, and one need to add a second addend, and it’s positive, w ...
2.3 Integer overflow Getting maximum number of someword Maximum unsigned number is just a number where all bits are set: 0xFF... ...
2.3. INTEGER OVERFLOW } (Thefullsourcecode:https://github.com/DennisYurichev/RE-for-beginners/blob/master/fundamentals/ itoa_KR. ...
2.4 AND From [Brian W. Kernighan, Dennis M. Ritchie,The C Programming Language, 2ed, (1988)]: Exercise 3-4. In a two’s complemen ...
2.5 AND and OR as subtraction and addition Figure 2.1:KOI8-R table Someone may notice that Cyrillic characters are allocated alm ...
2.5. AND AND OR AS SUBTRACTION AND ADDITION Figure 2.2:Part of ZX Spectrum ROM There are present, in fact. Here is excerpt of ZX ...
«
19
20
21
22
23
24
25
26
27
28
»
Free download pdf