Page 1 of 1
Conditions Calls
Posted: Fri Jun 25, 2021 5:18 pm
by madaxe
Hi there;
In 8086 assembly is there something like Conditions Calls like the good old Z80? Something like call nc, call nz, etc?
Re: Conditions Calls
Posted: Mon Jun 28, 2021 3:29 am
by akuyou
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:
Re: Conditions Calls
Posted: Tue Jun 29, 2021 1:46 pm
by madaxe
akuyou 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:
Thank you, Keith! I thought that was something like that
Just ordered your book from Amazon UK. Hope Brexit doesn't bring me many troubles, lol!
Best regards,
José Mário aka MadAxe