Skip to main content

New answers tagged

3 votes

Is there any way to automatically %undef what was earlier %define'd?

This is a well-known problem of NASM's preprocessor. You can't pass a define name to operate on to an mmacro, if the define is possibly defined already, because the mmacro parameter expansion (%1 and ...
ecm's user avatar
  • 3,087
0 votes

NASM - empty macro with 2 parameters? What register is represented by parameter_m?

len_m, dest1_m, etc. do not represent any register. In NASM, they are just macro arguments/symbols, not predefined names. In your snippet, SLDR and SSTR are empty macros, so those parameters are ...
Kamal Deep Pareek's user avatar
0 votes

Why Bits declare instruction in nasm x86 assembly languages have no effect When I write code to use big unreal mode?

very good answer,I have corrected the code and avoid the question above ; The Unreal Mode testing program ; For testing in the Bochs emulator ; NASM Syntax org 0x7c00 ; BIOS ...
kafka's user avatar
  • 33
3 votes
Accepted

Why Bits declare instruction in nasm x86 assembly languages have no effect When I write code to use big unreal mode?

but when it continue, the CPU should switch to real mode, but I found it still running 32 bits code, which cause the error Indeed it is. Interestingly, it does switch to real mode yet it still runs ...
Andrey Turkin's user avatar

Top 50 recent answers are included