flat assembler
Message board for the users of flat assembler.
Index
> Main > structures |
Author |
|
Dunduk 09 Oct 2003, 02:55
Hi
Ralph wrote:
Hmmm, and I get: Code: .NullByte DB ;unused error: invalid argument. I think you have to define so many arguments as many structure members. It works. Or maybe you have to write your own macro struc. How do do this I don't know... But wizard Privalov do, I believe |
|||
09 Oct 2003, 02:55 |
|
Ralph 09 Oct 2003, 03:41
Thanks, that worked. Now I have a second question though. Does fasm have a HIGH/LOW directive similar to tasm? To be more specific, I need to store the high word of a dword address using DW, as in:
Code: Label: ;code Blah DW Label HIGH16 Blah DW Label LOW16 Any ideas? |
|||
09 Oct 2003, 03:41 |
|
Dunduk 09 Oct 2003, 04:43
Ralph wrote: Thanks, that worked. Now I have a second question though. Does fasm have a HIGH/LOW directive similar to tasm? To be more specific, I need to store the high word of a dword address using DW, as in: Maybe you should use "virtual"? Try this: Code: Blah dd ? virtual at Blah LOW16 dw ? HIDH16 dw ? end virtual Something like this if I understand right. It would work I think. It is from fasm documentation... And I didn't work with tasm (shame on me ) |
|||
09 Oct 2003, 04:43 |
|
scientica 09 Oct 2003, 06:20
Dunduk wrote: Hmmm, and I get: Put a ? after the db, and that error should be killing the error. Code: STRUC InterruptDscr ID1,ID2,ID3,ID4 { .Offset0_15 DW ID1 ;low word of int offset .Selector0_15 DW ID2 ;segment selector .NullByte DB ? ;unused .Flags DB ID3 ;flags .Offset16_31 DW ID4 ;high word of int offset } IDTInt00 InterruptDscr 10000,8,0F1h,1 _________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||
09 Oct 2003, 06:20 |
|
Dunduk 09 Oct 2003, 08:09
scientica wrote:
Oh, sure! I must upgrade my brains again... |
|||
09 Oct 2003, 08:09 |
|
Ralph 09 Oct 2003, 23:31
Thanks for the responses. I got working.
|
|||
09 Oct 2003, 23:31 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.