Wow. Bubba must have been asleep when he wrote this.Code:__inton proc sti ;enables interrupts ret ;return to caller __inton endp __intoff proc pushf ;push flags onto stack pop ax ;pop ax off stack cli ;disable interrupts ret ;return to caller __intoff endp __intrst proc flag:word mov ax,flag ;place flag(passed value) in ax push ax ;push ax(flag) onto stack popf ;pop flags off of stack ret ;return to caller __intrst endp __nop proc ret ;return to caller __nop endp
Should be:
Sorry, that was really bugging me.Code:__inton proc sti ;enables interrupts ret ;return to caller __inton endp __intoff proc pushf ;push flags onto stack pop ax ;pop VALUE OFF OF STACK INTO AX cli ;disable interrupts ret ;return to caller __intoff endp __intrst proc flag:word mov ax,flag ;place flag(passed value) in ax push ax ;push ax(flag) onto stack popf ;pop flags off of stack ret ;return to caller __intrst endp __nop proc ret ;return to caller __nop endp