Hi there;
In 8086 assembly is there something like Conditions Calls like the good old Z80? Something like call nc, call nz, etc?
Conditions Calls
Re: Conditions Calls
There isn't in 8086, If you want to do a 'conditional call', you should jump over the call statement when the condition is not true
For example if you want to call if Zero:
For example if you want to call if Zero:
Code: Select all
JNZ NoCall
CALL CallIfZero
NoCall:
Chibi Akuma(s) Comedy-Horror 8-bit Bullet Hell shooter! // 「チビ悪魔」可笑しいゴシックSTG ! // Work in Progress: ChibiAliens
Interested in CPU's :Z80,6502,68000,6809,ARM,8086,RISC-V
Learning: 65816,ARM,8086,6809
Interested in CPU's :Z80,6502,68000,6809,ARM,8086,RISC-V
Learning: 65816,ARM,8086,6809
Re: Conditions Calls
Thank you, Keith! I thought that was something like thatakuyou wrote: Mon Jun 28, 2021 3:29 am There isn't in 8086, If you want to do a 'conditional call', you should jump over the call statement when the condition is not true
For example if you want to call if Zero:Code: Select all
JNZ NoCall CALL CallIfZero NoCall:

Just ordered your book from Amazon UK. Hope Brexit doesn't bring me many troubles, lol!
Best regards,
José Mário aka MadAxe