A problem with MASM!
Posted: Sun Sep 07, 2008 10:51 pm
Hello every body!
as i'm not really good in assembly language, the problem may be easy to solve, but hard for me:-p
there is a piece of code which i found from a tutorial, it works well on NASM but does not in MASM!
the code is for handling IRQs! in fact, its called on an interrupt
as i'm not really good in assembly language, the problem may be easy to solve, but hard for me:-p
there is a piece of code which i found from a tutorial, it works well on NASM but does not in MASM!
the code is for handling IRQs! in fact, its called on an interrupt
Code: Select all
pusha
mov ax, ds
push eax
mov ax, 0x10 ; MASM GENERATES AN ERROR FOR THIS LINE:
; error A2206:missing operator in expression
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
isr_handler
pop ebx
mov ds, bx
mov es, bx
mov fs, bx
mov gs, bx
popa
add esp, 8
sti
iret