Can't you do something like this?
mov ax, A
sub ax, B (or xor, add, whatever)
push ax
ret
Simply choose A and B so it becomes what you wish, without hitting the
problems.
..:::::::::::::::::::::::::::::::::::::::::::::::::..
http://www.11a.nu || http://bluefish.11a.nu
eleventh alliance development & security team