flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
sinsi 06 Sep 2015, 04:02
Unaligned memory access makes it slower. Why not use BT?
|
|||
![]() |
|
revolution 06 Sep 2015, 04:14
There are already some existing macros for this (and LEA) optimisations. They are from a few years ago but a bit of searching should be able to find them.
|
|||
![]() |
|
revolution 06 Sep 2015, 07:23
For your viewing convenience I found the old thread:
http://board.flatassembler.net/topic.php?t=1238 Please read the whole thread, there is a lot of thoughts and information presented there. |
|||
![]() |
|
l4m2 06 Sep 2015, 10:47
sinsi wrote: Unaligned memory access makes it slower. Why not use BT? Code: bt dword [ebx], 1 ;4 bytes test byte [ebx], 2 ;3 bytes |
|||
![]() |
|
l4m2 11 Sep 2015, 15:20
It's not a good idea that fasm itself compile TEST [EBX], DWORD 0x20 into TEST [EBX], BYTE 0x20. In a segment 0-18, if EBX is 16, the first one rise a fault while the second one doesn't.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.