Right, that should be "if you want only zero with no carry, use JZ."
Zero with carry would be JH (BH on S/370). -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Assembler List [ASSEMBLER-LIST@LISTSERV.UGA.EDU] on behalf of Robin Vowels [robi...@dodo.com.au] Sent: Thursday, April 21, 2022 9:48 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Test for zero after Add Logical From: "Seymour J Metz" <sme...@gmu.edu> To: <ASSEMBLER-LIST@LISTSERV.UGA.EDU> Sent: Friday, April 22, 2022 7:19 AM Subject: Re: Test for zero after Add Logical > That depends on whether you want wrap-around. The BC 10 will branch on > either zero with no carry > or zero with carry; > if you want only zero with carry, use JZ. JZ will jump on zero with NO carry. ________________________________________ From: IBM Mainframe Assembler List [ASSEMBLER-LIST@LISTSERV.UGA.EDU] on behalf of Paul Gilmartin [00000014e0e4a59b-dmarc-requ...@listserv.uga.edu] Sent: Thursday, April 21, 2022 1:38 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Test for zero after Add Logical I believe the Reference Summary Page 35 tells me that the instruction to test for a zero result after Add Logial is AL BC 10,addr There's no extended mnemonic for this. For clarity, its it preferable too code: AL LTR BZ add ??? --- This email has been checked for viruses by Avast antivirus software. https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avast.com%2Fantivirus&data=05%7C01%7Csmetz3%40gmu.edu%7C94f42066426b44c6615808da24021e06%7C9e857255df574c47a0c00546460380cb%7C0%7C0%7C637861888762122197%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=wP2ncDprToifCYuzRaDHfiwF7yhDPyLuTQcmE%2F%2BaAJk%3D&reserved=0