flat assembler
Message board for the users of flat assembler.
![]() |
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 ??? |
|||
![]() |
|
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 ![]() |
|||
![]() |
|
bitshifter 14 Jun 2010, 23:50
Also note: DOS386's code assumes use32
|
|||
![]() |
|
score_under 20 Jun 2010, 19:37
bitshifter wrote: Also note: DOS386's code assumes use32 Uhh... real men use64 or something? ![]() |
|||
![]() |
|
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. |
|||
![]() |
|
DOS386 27 Jun 2010, 11:00
Thanks.
> assumes use32 Right. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.