flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > db ((val1 shl 4) and val2) |
Author |
|
Tomasz Grysztar 16 Aug 2005, 13:30
Seems to be converted correctly. With what values do you use it, and what result do you expect?
|
|||
16 Aug 2005, 13:30 |
|
rambo 16 Aug 2005, 13:35
values are of course bytes from 0 to 15, and i expect first byte in byte`s hi nibble and second byte in lo nibble.
little example of using it by me: Code: something equ 0x09 .. wval something, 1 and i`m using it inside others macros.. |
|||
16 Aug 2005, 13:35 |
|
Tomasz Grysztar 16 Aug 2005, 13:36
Oh, so you mean |, not &. In fasm it should be:
Code: db val1 shl 4 or val2 (SHL has higher priority than OR/AND, but you can use parenthesis if you feel more comfortable this way). |
|||
16 Aug 2005, 13:36 |
|
rambo 16 Aug 2005, 13:40
oh, yeah : )
i`m ashamed : )) thanks. |
|||
16 Aug 2005, 13:40 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.