Am Mittwoch 07 Juli 2010, 10:12:12 schrieben Sie: > My colleague is porting some assembler code to z Linux (gcc compiler ) > and got some "invalid op code" assembler error for "EPSW" (extract psw)
gcc should handle epsw just fine. And on SLES10 this works indeed: # cat epsw.s .globl main main: epsw %r2,%r3 svc 1 # exit system call. return value in r2 # gcc epsw.s # ./a.out ; echo $? 1 By the way, if you are just interested in the condition code, then IPM + SRL is faster. Christian ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
