New answers tagged nasm
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 ...
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 ...
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 ...
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 ...
Top 50 recent answers are included
Related Tags
nasm × 5329assembly × 4553
x86 × 1831
x86-64 × 940
linux × 753
c × 407
bootloader × 314
x86-16 × 295
gcc × 243
windows × 186
osdev × 167
macos × 158
64-bit × 125
segmentation-fault × 118
ld × 117
gdb × 114
system-calls × 109
operating-system × 96
arrays × 92
bios × 85
winapi × 80
linker × 80
dos × 79
string × 78
c++ × 77