Masm 'uses' keyword and two return paths
From: flekso (taurus_at_email.hinet.hr)
Date: 04/28/04
- Next message: Ivan Korotkov: "Re: asm"
- Previous message: Randall Hyde: "Re: asm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 28 Apr 2004 15:01:07 +0000 (UTC)
What happens if ax=FFFFh ? If the first return is taken will the
stack/registry unwind happen ?
TestProc proc c uses bx dx ;ax=param
add ax, 1
.if !carry?
mov bx, ax
.else
mov dx, ax
ret ; first ret
.endif
mov dx, bx
ret ;second ret
TestProc endp
- Next message: Ivan Korotkov: "Re: asm"
- Previous message: Randall Hyde: "Re: asm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]