flat assembler
Message board for the users of flat assembler.

Index > Main > Emit and other data type problem

Author
Thread Post new topic Reply to topic
17bitlogin



Joined: 30 Jun 2023
Posts: 1
17bitlogin 30 Jun 2023, 09:57
Hi all. I'm new to the fasm world. There is a table in the documentation that describes the types of data you can use:


Table 1 Data directives

Unit (bytes) Generate data Reserve data
1 db, file rb
2 dw rw
4 dd rd
6 dp rp
8 dq rq
10 dt rt
16 ddq rdq
32 dqq rqq
64 ddqq rdqq
* emit

When defining data from db to dq the compilation is successful.

But the compiler generates an error when defining data from dt to emit:

emit 2: 0,1000,2000 ; generate three 16-bit values

processed: emit 2: 0,1000,2000
error: illegal instruction.

Why is this happening and how do I define these data types dt, ddq, dqq, ddqq, emit?
Post 30 Jun 2023, 09:57
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20333
Location: In your JS exploiting you and your system
revolution 30 Jun 2023, 10:17
fasm doesn't have emit

Perhaps you are reading the fasmg documentation?
Post 30 Jun 2023, 10:17
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4332
Location: Now
edfed 30 Jun 2023, 17:57
maybe it can be more convenient to make this
Code:
d16 r16
d32 r32
d64 r64
    

for multibytes datas over ten.

Code:
d11 r11
d12 r12
d13 r13
and so on...
    


or maybe, to don't conflict with future registers
Code:
d128 r128
d256 r256
d512 r512
    


or anything else than ddqq
Post 30 Jun 2023, 17:57
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.