flat assembler
Message board for the users of flat assembler.
Index
> Main > Silly or BUG: INC [EBX] vs INC [EBP] ??? |
Author |
|
DOS386 12 Jun 2010, 23:20
Code: INC DWORD [EBX] 2 Byte's Code: INC DWORD [EBP] 3 Byte's No way to encode [EBP] with just 2 Byte's ??? |
|||
12 Jun 2010, 23:20 |
|
score_under 14 Jun 2010, 19:55
MOV EAX,[ESP+4] = 4 bytes.
MOV EAX,[EBP+4] = 3 bytes. It's just one of those cases where there actually *is* a difference between registers on x86 |
|||
14 Jun 2010, 19:55 |
|
bitshifter 14 Jun 2010, 23:50
Also note: DOS386's code assumes use32
|
|||
14 Jun 2010, 23:50 |
|
score_under 20 Jun 2010, 19:37
bitshifter wrote: Also note: DOS386's code assumes use32 Uhh... real men use64 or something? |
|||
20 Jun 2010, 19:37 |
|
baldr 20 Jun 2010, 20:57
score_under,
16/64-bit inc [ebx] requires address-size prefix and can't be 2 bytes long. 32-bit can. |
|||
20 Jun 2010, 20:57 |
|
DOS386 27 Jun 2010, 11:00
Thanks.
> assumes use32 Right. |
|||
27 Jun 2010, 11:00 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.