Recent Posts

Pages: [1] 2 3 ... 10
1
Programming with NASM / Re: How to use __NASM_MAJOR__ and __NASM_MINOR__
« Last post by jmricher on May 25, 2020, 02:31:41 PM »
ok I checked it is working, I was getting some error because I was mispelling the __NASM_MAJOR__ and __NASM_MINOR__
2
Programming with NASM / How to use __NASM_MAJOR__ and __NASM_MINOR__
« Last post by jmricher on May 25, 2020, 02:16:52 PM »
Code: [Select]
Hello everyone,
   How can I use __NASM_MAJOR__ and NASM_MINOR__ inside a conditional %if ?

is it possible to write something like this ?

code]
%if __NASM_MAJOR__ >= 2   and __NASM_MINOR__ >= 14
...
%endif

Thank you for you answers,
JM
3
Using NASM / Missing opcodes ?
« Last post by ldelabre on May 23, 2020, 10:07:53 AM »
Hi,
I'm working on a 8086 emulator (for fun) and I'm using NASM to generate my test-cases.
According to the Intel manual of 1978, the ADD instruction exists as opcode 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x80, 0x81 as well as 0x82 and 0x83 (kinda redudant with 0x80 & 0x81 but anyway).

So good for my test cases :p

What's more of a concern, is that the disassembler seems also to not recognize those opcode : 0x82, 0xc0, 0x00 (add al, 0) is view as a DB sequence whereas Visual Studio disassembly get it right:
0000001B  82                db 0x82
0000001C  C0                db 0xc0
0000001D  00                db 0x00

Is this on purpose ?

Sincerely,
Ludovic.

Ps : https://software.intel.com/en-us/forums/watercooler-catchall/topic/309628
4
Programming with NASM / Re: writefile with NASM
« Last post by assistech on May 16, 2020, 08:43:20 PM »
Hi,

Because like it. And want to write hard code, not easy for someone would like copy my code for my futur software.
5
Programming with NASM / Re: writefile with NASM
« Last post by Frank Kotler on May 16, 2020, 08:23:27 PM »
Why do you want to involve assembly language at all?

Best,
Frank

6
Using NASM / Re: nasm directives
« Last post by ialmiev1 on May 16, 2020, 06:15:56 PM »
Hello, Frank Kotler, and Debs3759,

NASMs for Windows, and for Linux, and, also, MASM32, and MASM 6.11 are different "compilers"-translators.

as i mentioned in the previous message, writing NASM code to create Win64-, or command line executable (application) differs from task to task too - i mean syntaxes.

for this reason, it would be worth for me to concentrate on learning, at present, just one case, namely, NASM for Windows 7 64-bit (syntaxes, commands, instructions, numbers, that are put in registers, etc.).

thank you.
7
Using NASM / Re: nasm directives
« Last post by ialmiev1 on May 16, 2020, 05:05:22 PM »
Hello, Frank Kotler, and Debs3759,

ok, i understand you, in terms of bcc-, and gcc-compilers used for compiling Windows-, and Linux-versions of NASM source codes.

in the near past, i was taught, a little bit, MASM assembler-language based on the use of MASM "compiler"-program, 16-bit for DOS, using the emulator in Windows 7, 64-bit. from that i discovered that, for example, interrupts (int ...) are different, and, also, require different set-ups of the registers (ax, bx, cx, dx), etc.

i managed to install MASM32 32-bit version for Windows 7 (64-bit) either, but i do not know the syntaxes (language itself, and numbers used for interrupts, registers etc) of MASM32 "compiler"-program, because i did not find any books, and comprehensive manuals in MASM32 too.

at present, i am limited with Windows 7 (64-bit), because, unfortunately, i broke the BIOS in my computer, by issuing not-good (wrong) commands to alter the downlaoding boot order that was set-up in BIOS.

this is why, i would appreciate if you could recommend me some comprehensive books, and the manuals to learn, for example, NASM (and/or, if you can, MASM32) language (syntaxes, numbers, commands, instructions) for Windows 7, 64-bit.

thank you.


8
Programming with NASM / Re: writefile with NASM
« Last post by assistech on May 16, 2020, 11:59:27 AM »
Hi,

 I would like to write a string after "_scanf" at my MS-DOS screen and write this string on a file ".txt", i could recovery this information and use it with another langage like C.

Because i don't know how to insert assembler code in a C program with CODELITE, but i find a method to call my assembler code file ".exe", by calling the executable file with system("c:/.......");


Thanks,


9
Programming with NASM / Re: writefile with NASM
« Last post by assistech on May 15, 2020, 09:47:42 PM »
10
Programming with NASM / Re: writefile with NASM
« Last post by Frank Kotler on May 15, 2020, 09:28:03 PM »
What have you tried? Foolish question, I suppose...

https://stackoverflow.com/questions/40003885/win32-assembly-writefile-to-console-dont-s

You might be better off linking with GoLink or some other(?)...

Best,
Frank

Pages: [1] 2 3 ... 10