File: pushnosize.asm

package info (click to toggle)
yasm 1.3.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,880 kB
  • sloc: asm: 74,423; ansic: 53,055; python: 9,927; sh: 5,276; xml: 1,617; makefile: 214; pascal: 95; sed: 16
file content (47 lines) | stat: -rw-r--r-- 1,577 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[bits 16]
push 0		; 6A 00 - equivalent to push byte 0
push byte 0	; 6A 00
push word 0	; 6A 00 - optimized
push dword 0	; 66 6A 00 - optimized
push strict byte 0	; 6A 00
push strict word 0	; 68 0000
push strict dword 0	; 66 68 00000000
push 128	; 68 8000 - doesn't fit in byte, equivalent to push word 128
push byte 128	; 6A 80 - warning (signed overflow)
push word 128	; 68 8000
push dword 128	; 66 68 80000000
push strict byte 128	; 6A 80 - warning (signed overflow)
push strict word 128	; 68 8000
push strict dword 128	; 66 68 80000000

[bits 32]
push 0		; 6A 00 - equivalent to push byte 0
push byte 0	; 6A 00
push word 0	; 66 6A 00 - optimized
push dword 0	; 6A 00 - optimized
push strict byte 0	; 6A 00
push strict word 0	; 66 68 0000
push strict dword 0	; 68 00000000
push 128	; 68 80000000 - doesn't fit in byte -> push dword 128
push byte 128	; 6A 80 - warning (signed overflow)
push word 128	; 66 6A 8000
push dword 128	; 6A 80000000
push strict byte 128	; 6A 80 - warning (signed overflow)
push strict word 128	; 66 6A 8000
push strict dword 128	; 6A 80000000

[bits 64]
push 0		; same as bits 32 output
push byte 0	; 6A 00; 64 bits pushed onto stack
push word 0	; 66 6A 00 - 66h prefix, optimized to byte
push dword 0	; 6A 00 - optimized to byte; note 64 bits pushed onto stack
push strict byte 0	; 6A 00; 64 bits pushed onto stack
push strict word 0	; 66 68 0000
push strict dword 0	; 68 00000000; note 64 bits pushed onto stack
push 128
push byte 128	; warning
push word 128
push dword 128
push strict byte 128	; warning
push strict word 128
push strict dword 128